API pricing per million tokens
gpt-5-1-codex ReasoningChecked 7h ago
- Input
- $1.25
- per 1M, list
- Output
- $10
- per 1M tokens
- Cached input
- $0.13
- no batch tier listed
- Context
- 400K
- 128K max output
Where to buy it (2)
Azure AI Foundrydefault region$1.25 / $10cached $0.13
OpenAI (list)the lab's own API$1.25 / $10cached $0.13
Through a gateway
Your own numbers100M input and 20M output tokens a month: $325.00 direct.
Helicone$325.00+0%
Kong AI Gateway$325.00+0%
LiteLLM$325.00+0%
Vercel AI Gateway$325.00+0%
AWS Bedrock$325.00+0%
Azure AI Foundry$325.00+0%
Google Vertex AI$325.00+0%
Databricks Mosaic AI$325.00+0%
Hugging Face Inference$325.00+0%
Cloudflare AI Gateway$341.25+5%
Requesty$341.25+5%
Eden AI$342.88+5.5%
OpenRouter$342.88+5.5%
Snowflake Cortex AI$390.00+20%
Martian Gatewayn/a
Portkeyn/a
TrueFoundry AI Gatewayn/a
IBM watsonx.ain/a
OCI Generative AIn/a
BigQuery MLn/a
Cloudflare Workers AIn/a
NVIDIA NIMn/a
Related models
ModelInputOutputCachedContextReleased
GPT-6 LunaOpenAI · 1.05M$0.1 / $0.5in / out per 1M$0.1$0.5$0.011.05MSep 22, 2026
GPT-6 Luna ProOpenAI · 1.05M$0.1 / $0.5in / out per 1M$0.1$0.5$0.011.05MSep 22, 2026
GPT-6 SolOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MSep 22, 2026
GPT-6 Sol ProOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MSep 22, 2026
Muse Spark 1.3Meta · 1M$1.25 / $4.25in / out per 1M$1.25$4.25$0.151MSep 2, 2026
Gemini 3.1 Pro PreviewGoogle Gemini API · 1M$2 / $12in / out per 1M$2$12$0.21MFeb 19, 2026
Muse Spark 1.1Meta · 1M$1.25 / $4.25in / out per 1M$1.25$4.25$0.151MJul 16, 2026
Qwen3.8 Max (0902)Qwen (Alibaba) · 1M$2 / $6in / out per 1M$2$6$0.251MSep 3, 2026
About GPT-5.1-Codex
GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows.
Takes text, image in and returns text. First listed Nov 14, 2025. Blended price $3.44 per 1M tokens at 3 input to 1 output.
Questions
How much does GPT-5.1-Codex cost?
$1.25 per million input tokens and $10 per million output tokens, with cached input at $0.13.
What is the context window of GPT-5.1-Codex?
400K tokens, with up to 128K tokens of output.
Where is GPT-5.1-Codex cheapest?
Of 2 routes tracked, Azure AI Foundry is cheapest at $1.25 input and $10 output per million tokens.
List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.