# gpt-5.2 — API, Pricing & Context Window

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

|     |     |
| --- | --- |
| **Provider** | OpenAI |
| **Model ID** | `gpt-5.2` |
| **Best for** | General-purpose |
| **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, matching the provider's rates.

| Input | Cached input | Output |
| --- | --- | --- |
| $1.75 | $0.175 | $14.00 |

## Quick start

Call `gpt-5.2` 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 '{\n    "model": "gpt-5.2",\n    "messages": [\
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }\
    ],\n    "stream": true\n  }'\n```

## 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-5.4](/content/docs/models/gpt-5.4) — newer, higher-capability generation
- [gpt-5.1](/content/docs/models/gpt-5.1) — the prior 5.x release
- [gpt-5](/content/docs/models/gpt-5/index.html) — the original GPT-5 model

[gpt-5.4-nano

gpt-5.4-nano on Vivgrid: the smallest, most economical GPT-5.4 model with a 400K context window and image and PDF input for high-scale tasks.](/content/docs/models/gpt-5.4-nano/index.html) [gpt-5.1

gpt-5.1 on Vivgrid: a general-purpose GPT-5 model with a 272K context window, text, image and audio input, and regional acceleration.](/content/docs/models/gpt-5.1)
