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

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

gpt-5.2 on Vivgrid: a capable general-purpose GPT-5 model with a 400K context window, function calling, and geo-distributed acceleration.

`gpt-5.2` is a strong general-purpose model from the GPT-5 generation, suited to reasoning, writing, and agent workloads on the Chat Completions API. With a **400K-token context window** it handles long documents and multi-turn agent state with ease.

On Vivgrid, `gpt-5.2` is geo-distributed across **AMER and EMEA** and reachable through the same unified API key as the rest of the catalog.

## Specifications

| Field | Value |
| --- | --- |
| Provider | OpenAI |
| Model ID | `gpt-5.2` |
| Best for | General-purpose |
| Available on | Chat Completions |
| Context window | 400,000 tokens |
| Max output | 128,000 tokens |
| Modalities | Text, Image |
| Tool / function calling | Yes |
| Knowledge cutoff | 2025-08 |
| Acceleration | Geo-distributed — AMER, EMEA |

## Pricing

Pricing in USD per 1M tokens.

| Input | Cached input | Output |
| --- | --- | --- |
| $1.75 | $0.175 | $14.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.0630 |
| Warm prompt, 90% of the input served from cache | $0.0347 |


## API surfaces

The Vivgrid Console catalogs `gpt-5.2` 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-5.2` directly.

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


## Ideal use cases

- General-purpose agents and assistants
- Long-form reasoning, analysis, and content generation
- Function-calling workflows on Chat Completions
- Drop-in upgrade path from earlier 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) — the balanced gpt-6 model
- [gpt-6.1-terra](/docs/models/gpt-6.1-terra) — the fast, efficient gpt-6 model for visual reasoning and writing
