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....
Capabilities
Modalities
Quick stats
Performance
Supported parameters
| Parameter | Always | Default |
|---|---|---|
| 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) |
Pricing
| Input price | $0.00 · 1M tokens |
| Output price | $0.00 · 1M tokens |
| Context window | 400K tokens |
| Compatible endpoints | openai |
| Vendor | OpenAI |
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.
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!"}]
}'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.