Claude Opus 4.5 (latest) vs GPT-5.1 Codex mini: API price and specs
GPT-5.1 Codex mini is 91% cheaper than Claude Opus 4.5 (latest) on input price.
GPT-5.1 Codex mini is 86% cheaper than Claude Opus 4.5 (latest) on output price.
GPT-5.1 Codex mini is 88% cheaper than Claude Opus 4.5 (latest) on a 1M-in / 200k-out workload.
GPT-5.1 Codex mini has a 100% larger context than Claude Opus 4.5 (latest).
| Field | Claude Opus 4.5 (latest) | GPT-5.1 Codex mini |
|---|---|---|
| Lowest input, per 1M | $2.50 +1036.4% | $0.22 |
| Median input, per 1M | $5.00 +1900% | $0.25 |
| Lowest output, per 1M | $12.50 +594.4% | $1.80 |
| Median output, per 1M | $25.00 +1150% | $2.00 |
| Lowest unit price | — | — |
| Cost of 1M in + 200k out | $5.00 +762.1% | $0.58 |
| Context | 200K +50% | 400K |
| Max output | 66K +48.8% | 128K |
| Providers | 30 | 15 +50% |
| Regions | EU, GLOBAL, US | GLOBAL |
| Accepts | application/pdf, file, image, image/gif, image/jpeg, image/png, image/webp, pdf, text | file, image, image/gif, image/jpeg, image/png, image/webp, pdf, text |
| Returns | text | image, text |
| Type | Text models | Text models |
| Free option | no | no |
| Cheapest provider | openrouter | poe |
Your own workload: how many tokens the model gets (input) and gives back (output) - for example, in a month. The "Cost" row of the table above is recalculated for these numbers, for each model.
Computed from current offers each time the page opens; the best value of a row is bold, the percent is how far behind the best.
Providers selling both
aihubmix, aiml, azure, edenai, helicone, impossibl, jiekou, kilo, ofox, opencode, openrouter, orcarouter, poe, vercel, zenmux
Frequently asked questions
Which is cheaper, Claude Opus 4.5 (latest) or GPT-5.1 Codex mini?
GPT-5.1 Codex mini is 91% cheaper than Claude Opus 4.5 (latest) on input price. GPT-5.1 Codex mini is 86% cheaper than Claude Opus 4.5 (latest) on output price. GPT-5.1 Codex mini is 88% cheaper than Claude Opus 4.5 (latest) on a 1M-in / 200k-out workload.
Which has the larger context, Claude Opus 4.5 (latest) or GPT-5.1 Codex mini?
Claude Opus 4.5 (latest): 200K tokens; GPT-5.1 Codex mini: 400K tokens.
Where can I use both Claude Opus 4.5 (latest) and GPT-5.1 Codex mini?
aihubmix, aiml, azure, edenai, helicone, impossibl, jiekou, kilo, ofox, opencode, openrouter, orcarouter, poe, vercel, zenmux