GPT-5.1-Codex vs o4 Mini High

API pricing, benchmark indices and specs — updated 19 October 2026.

openai · A · API-only
Input / 1M
$1.25
Output / 1M
$10.00
AA index
23.7
proprietary · 400K context
openai · B · API-only
Input / 1M
$1.10
Output / 1M
$4.40
AA index
—
proprietary · 200K context

Specification comparison

Differences are highlighted; identical values are muted.

Specification GPT-5.1-Codex o4 Mini High
Deployment API-only (closed weights) API-only (closed weights)
Parameters n/a — API-only n/a — API-only
Architecture n/a — API-only n/a — API-only
Context length 400,000 200,000
Licence Proprietary Proprietary
Commercial use Per API terms Per API terms
Languages n/a — API-only n/a — API-only
Downloads 30d n/a — API-only n/a — API-only
Downloads all time n/a — API-only n/a — API-only
Quantizations on the Hub n/a — API-only n/a — API-only
Gated n/a — API-only n/a — API-only
First seen on the Hub n/a — API-only n/a — API-only
API input price / 1M tokens $1.25 $1.10
API output price / 1M tokens $10.00 $4.40
Est. cost per 1M input + 1M output tokens $11.25 $5.50
Cached input / 1M tokens $0.13 $0.28
AA Intelligence Index 23.7 —
AA Coding Index — —
AA Agentic Index — —
Max output tokens 128,000 100,000
API providers 1 1
Tool calling Yes Yes
Reasoning mode Yes Yes

API cost

Estimated cost of 1M input + 1M output tokens via OpenRouter

GPT-5.1-Codex $11.25
o4 Mini High $5.50

o4 Mini High is 2.0× cheaper at list price.

Adjacent comparisons