# gpt-4o — API, Pricing & Context Window

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

|     |     |
| --- | --- |
| **Provider** | OpenAI |
| **Model ID** | `gpt-4o` |
| **Best for** | General-purpose |
| **Context window** | 128,000 tokens |
| **Modalities** | Text, Image |
| **Tool / function calling** | Yes |
| **Knowledge cutoff** | 2023-09 |
| **Acceleration** | 🌐 Global (Centralized) |

## Pricing

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

| Input | Cached input | Output |
| --- | --- | --- |
| $2.50 | $1.25 | $10.00 |

## Quick start

Call `gpt-4o` through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the [Vivgrid Console](https://console.vivgrid.com/).

```
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

## Related models

- [gpt-4.1](/content/docs/models/gpt-4.1) — larger context, refined GPT-4 generation
- [gpt-5](/content/docs/models/gpt-5/index.html) — modern upgrade path
- [gpt-5-mini](/content/docs/models/gpt-5-mini/index.html) — low-cost modern alternative
