openai/gpt-5.2-codex
Supported APIs
| API Type | Capabilities | Context Window | Input | Output |
|---|---|---|---|---|
| chat_completions | chatstreamingtool_calling | 256K | $5.00 / 1M tokens | $20.00 / 1M tokens |
| responses | chatstreamingtool_callingvision | 250K | $5.00 / 1M tokens | $23.00 / 1M tokens |
curl -X POST \
https://api.router.one/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/gpt-5.2-codex",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'