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

gpt-5.2-codex — API, Pricing & Context Window

gpt-5.2-codex on Vivgrid: a Codex-tuned coding model on the Responses API with a 400K context window, function calling, and regional acceleration.

gpt-5.2-codex is a Codex-tuned member of the GPT-5 family, built for agentic coding on OpenAI's Responses API. It is a dependable choice for software-engineering agents that read, edit, and test code in a loop.

Vivgrid serves gpt-5.2-codex with geo-distributed acceleration across AMER and EMEA and a 400K-token context window, so it can hold substantial project context within a single session.

Specifications

Provider OpenAI
Model ID gpt-5.2-codex
Best for Coding
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-codex through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the Vivgrid Console.

curl https://api.vivgrid.com/v1/responses \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.2-codex",
    "input": "Refactor this function and explain the change.",
    "stream": true
  }'

Ideal use cases

Related models