← All models
OpenAI · Language model
GPT-5.2-Codex
openai/gpt-5.2-codex- Language
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....
Specifications
- Context window
- 400,000 tokens
- Max output
- 128,000 tokens
- Input
- text, image
- Output
- text
- Reasoning effort
- xhigh, high, medium, low (always on)
- Tokenizer
- GPT
Supported parameters
Accepted by the model and forwarded as-is by the gateway.
- max_completion_tokens
- reasoning
- reasoning_effort
- response_format
- seed
- structured_outputs
- tool_choice
- tools
Use it
POST /api/v1/chat/completions · MCP chat · full reference
curl https://omnirail.org/api/v1/chat/completions \
-H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
-d '{"model":"openai/gpt-5.2-codex","messages":[{"role":"user","content":"Hello"}],"max_tokens":300}'