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

> Source: https://vivgrid.com/docs/models/gpt-4o

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

| Field | Value |
| --- | --- |
| Provider | OpenAI |
| Model ID | `gpt-4o` |
| Best for | General-purpose |
| Available on | Chat Completions |
| 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.

| Input | Cached input | Output |
| --- | --- | --- |
| $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.

| Request | Cost |
| --- | --- |
| 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.

| Surface | Primary endpoint | Use it for |
| --- | --- | --- |
| Chat Completions | `/chat/completions` | Agent 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 (https://console.vivgrid.com), then call `gpt-4o` directly.

```bash
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-6-astra](/docs/models/gpt-6-astra) — the gpt-6 generation flagship
- [gpt-6.1-sol](/docs/models/gpt-6.1-sol) — balanced current-generation model
- [gpt-5.6-luna](/docs/models/gpt-5.6-luna) — low-cost modern alternative
