Models

gpt-4.1 β€” API, Pricing & Context Window | Vivgrid

gpt-4.1 on Vivgrid: OpenAI's GPT-4.1 with a ~1M-token context window and image input, available through a single unified API.

gpt-4.1 is OpenAI's refined GPT-4-generation model, notable for its very large ~1.05M-token context window and strong instruction following. It remains a dependable choice for long-document workflows and established integrations.

Vivgrid serves gpt-4.1 through its unified, OpenAI-compatible endpoint, so you can keep proven prompts running while routing through one API key and billing surface.

Specifications

ProviderOpenAI
Model IDgpt-4.1
Best forGeneral-purpose
Context window1,047,576 tokens
ModalitiesText, Image
Tool / function callingYes
Knowledge cutoff2024-05
Acceleration🌐 Global (Centralized)

Pricing

Pricing in USD per 1M tokens, matching the provider's rates.

InputCached inputOutput
$2.00$0.50$8.00

Quick start

Call gpt-4.1 through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the Vivgrid Console.

curl https://api.vivgrid.com/v1/chat/completions \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4.1",
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'

Ideal use cases

  • Long-document analysis and summarization
  • Stable production integrations built on GPT-4.x
  • Instruction-following and structured extraction
  • Workloads needing a very large context at GPT-4 pricing
  • gpt-4o β€” multimodal GPT-4-class model
  • gpt-5 β€” the next-generation upgrade
  • gpt-5-mini β€” cheaper modern alternative

On this page