GPT-5.1 Codex: API pricing, providers and specs
GPT-5.1 Codex is a text model by OpenAI. 15 providers serve it, from $8 to $13 /1M; the lowest price is at APIMart.
A newer version is out: GPT-5.2 Codex · released Dec 18, 2025
How GPT-5.1 Codex compares
Against the 737 text models on the site priced the same way.
- Pricey for its class: at $8 /1M, its lowest price is above 83% of comparable models (median $1.10).
- Its 400K-token context window is larger than 62% of them (median 262K), about 600 pages of text.
- On LMArena's WebDev board it ranks #62 of the 64 comparable models scored there.
- 15 providers serve it; 84% of comparable models have fewer.
GPT-5.1 Codex prices by provider
Every provider's list price, read from its own price page or API. A price marked “from” changes with context length, resolution or mode.
| Provider | Input | Output | Prompt caching | Context |
|---|---|---|---|---|
APIYI | — | $0.02/run | — | — |
| APIMart | $1/1M | $8/1M | — | — |
| OpenCode | $1.07/1M | $8.50/1M | $0.107/1M | — |
Jiekou.AI | $1.19/1M | $9.50/1M | $0.119/1M | — |
| ZenMux | $1.25/1M | $10/1M | $0.125/1M | 400K |
OrcaRouter | $1.25/1M | $10/1M | $0.125/1M | 400K |
| Vercel AI Gateway | $1.25/1M | $10/1M | $0.13/1M | 400K |
| $1.25/1M | From$10/1M | $0.125/1M | — | |
| $1.25/1M | $10/1M | $0.125/1M | 400K | |
Impossibl | $1.25/1M | $10/1M | $0.125/1M | — |
| OpenRouter | $1.25/1M | From$10/1M | $0.13/1M | 400K |
| DevPass (LLM Gateway) | $1.25/1M | From$10/1M | — | — |
CrazyRouter | $1.25/1M | $10/1M | — | — |
| $1.25/1M | From$10/1M | $0.125/1M | — | |
| AI/ML API | $1.63/1M | $13/1M | — | — |
- APIMart$8
- OpenCode$8.50
- Jiekou.AI$9.50
- ZenMux$10
- OrcaRouter$10
- Vercel AI Gateway$10
- AIHubMix$10
- Impossibl$10
- CrazyRouter$10
- HeliconeFrom$10
- OpenRouterFrom$10
- DevPass (LLM Gateway)From$10
Specs
- Type
- Text
- Maker
- OpenAI
- Inputs
- Image, Text
- Outputs
- Text
- Context
- 400K≈ 600 pages of text
- Max output
- 128K
- Capabilities
- Prompt caching, JSON, Reasoning, Tool calling, Vision
- Released
- Nov 12, 2025
- License
- —
- Open weights
- —
- Arena score
- 1337WebDev
Alternatives to GPT-5.1 Codex
Same kind of model from other makers, at a similar price.
| Model | Lowest price | Context | Arena | Providers |
|---|---|---|---|---|
| GPT-5.1 Codexthis model | $8/1M | 400K | 1337 | 15 |
| $8/1M | 1.05M | 1673 | 26 | |
| Kimi K3 | $8.28/1M | 1.05M | 1655 | 47 |
| $16/1M | 1.05M | — | 14 | |
| Claude Opus 5.5 | $16/1M | 1M | 1807 | 33 |
| $4.11/1M | 1M | — | 22 | |
| Grok 4.7 | $4.80/1M | 500K | 1637 | 28 |
| $4.25/1M | 1.05M | 1657 | 11 | |
| Claude Sonnet 5.5 | $8/1M | 1M | 1767 | 32 |
More from OpenAI
GPT-5.1 Codex FAQ
The lowest price for GPT-5.1 Codex is $8 /1M, at APIMart.
APIMart, at $8 /1M. 15 providers serve GPT-5.1 Codex; the table above lists every one with its price.
GPT-5.1 Codex reads up to 400K tokens per request and writes up to 128K.
We have not found GPT-5.1 Codex's weights published by its maker.
15 API providers serve GPT-5.1 Codex. Compare their prices above, or open a provider to see everything it offers.
Can't find what you're looking for? Contact us




