Models

gpt-4o — API, Pricing & Context Window | Vivgrid

gpt-4o on Vivgrid: OpenAI's multimodal GPT-4o with a 128K context window and image input, accessible through one unified API key.

gpt-4o is OpenAI's widely adopted multimodal GPT-4-class model, balancing quality, speed, and cost across text and image inputs. With a 128K-token context window, it powers a huge range of production assistants.

On Vivgrid, gpt-4o is available through the same OpenAI-compatible endpoint as newer models, making it easy to keep existing apps running or migrate gradually to GPT-5.

Specifications

ProviderOpenAI
Model IDgpt-4o
Best forGeneral-purpose
Available onChat Completions
Context window128,000 tokens
ModalitiesText, Image
Tool / function callingYes
Knowledge cutoff2023-09
Acceleration🌐 Global (Centralized)

Pricing

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

InputCached inputOutput
$2.50$1.25$10.00

What one request costs

The rates above applied to a 20K-token prompt with a 2K-token reply — a typical single agent turn, small enough that every request is billed at the base rate.

RequestCost
Cold prompt, nothing cached$0.0700
Warm prompt, 90% of the input served from cache$0.0475

API surfaces

The Vivgrid Console catalogs gpt-4o on one surface, all behind the same API key. The endpoint shown is the one the Console previews for that surface.

SurfacePrimary endpointUse it for
Chat Completions/chat/completionsAgent projects, where Vivgrid injects the model, system prompt and tools server-side, and Model API calls that name the model per request.

Quick start

Get an API key from the Vivgrid Console, then call gpt-4o directly.

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

Ideal use cases

  • Established multimodal chat and assistant apps
  • Text and image understanding tasks
  • Broadly compatible production workloads
  • A baseline for comparing against newer GPT-5 models

On this page