Models

gpt-5.2-codex β€” API, Pricing & Context Window | Vivgrid

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

ProviderOpenAI
Model IDgpt-5.2-codex
Best forCoding
Available onVibe coding
Context window400,000 tokens
Max output128,000 tokens
ModalitiesText, Image
Tool / function callingYes
Knowledge cutoff2025-08
Acceleration⚑ Geo-Distributed β€” AMER, EMEA

Pricing

Pricing in USD per 1M tokens.

InputCached inputOutput
$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.

RequestCost
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-codex on one surface, all behind the same API key. The endpoint shown is the one the Console previews for that surface.

SurfacePrimary endpointUse it for
Vibe coding/responsesCoding CLIs and IDE agents that drive the model themselves β€” point the tool at Vivgrid and keep your own loop.

Quick start

Get an API key from the Vivgrid Console, then call gpt-5.2-codex directly.

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

  • Codex and Responses-API coding assistants
  • Automated refactoring, test generation, and bug fixing
  • Tool-calling agents that orchestrate shell and editor actions
  • Cost-aware coding workloads that don't need the latest Codex release

On this page