GPT-5.2 Codex is the Codex-environment variant of GPT-5.2, tuned for agentic coding workloads with streaming, function calling, and structured outputs. Available through OpenAI's Responses API.
Upstream Providers
ZDR only
OpenCode Zen
opencode-zen-byok
In$1.75Out$14.00
No ZDRToolsVisionReasoning
API Details
Chat Completions API
/api/v1/chat/completions
OpenAI-compatible endpoint with a messages array. Standard interface for chat-based interactions.
Responses API
/api/v1/responses
Native OpenAI Responses format with a simplified input parameter for single-turn requests.
Uptime & Health
No uptime data yet
These providers haven't been health-probed for this model yet. The router still routes around upstreams that fail live requests — uptime fills in once probe history accrues.
Code samplesall endpoints & SDKs
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2-codex",
"messages": [
{"role": "user", "content": "Say hi in 3 words."}
]
}'No API key yetSet
ANYROUTER_API_KEY — Dashboard → KeysRequest examplereflects the filters above
{
"model": "openai/gpt-5.2-codex",
"messages": [
{
"role": "user",
"content": "Say hi in 3 words."
}
]
}Change sort, ZDR, effort, or pin a provider to add routing params.