Available now
OpenAI

gpt-5.2-codex

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

TextReasoningToolsFilesVision400KCache
InputFree
OutputFree
Context400K
Endpointsopenai

Capabilities

ReasoningToolsParallel toolsVisionFilesCacheStructuredStreamingSystem msg

Modalities

Input
textimage
Output
text

Quick stats

Context window400K
Max output128K
Moderesponses
TokenizerGPT
ModeratedYes

Performance

Loading performance data...

Supported parameters

ParameterAlwaysDefault
frequency_penalty-(do not send)
include_reasoning-
max_completion_tokens--
max_tokens--
reasoning-
response_format-
seed-
structured_outputs-
temperature-(do not send)
tool_choice-
tools-
top_p-(do not send)
§ 01

Pricing

Input price$0.00 · 1M tokens
Output price$0.00 · 1M tokens
Context window400K tokens
Compatible endpointsopenai
VendorOpenAI
§ 02

Call gpt-5.2-codex from your code

Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.

bash
curl https://api.unorouter.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.2-codex",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Sign in to auto-fill your API key

§ 03

Frequently asked questions

How much does gpt-5.2-codex cost per 1M tokens?

Input is priced at $0.00 per 1M tokens, output at $0.00 per 1M tokens. Billing is per token, no rounding to batch sizes.

How do I access gpt-5.2-codex via API?

Send requests to the UnoRouter /v1/chat/completions endpoint with model=gpt-5.2-codex. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.

What is the context window of gpt-5.2-codex?

gpt-5.2-codex supports a context window of 400K tokens, shared between your prompt and the model's response.

§ 04

Similar models

Try gpt-5.2-codex now

Create an API key and start making requests in under a minute.

View all models