LLM prices per 1M tokens

264 models · 161 price changes

GPT-5.1-Codex

OpenAI · Reasoning · 400K context · released Nov 13, 2025 · checked 12h ago

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows.

Ways to buy 2

Way to buyIn / out per 1M
OpenAI API
The lab's own API · cached $0.13
$1.25 / $10List price
Azure AI Foundry
Default region · cached $0.13
$1.25 / $10Same as list

USD per 1M tokens. Regions are separate routes.

Through a gateway

Your own numbers

100M input and 20M output tokens a month: $325.00 direct.

A dash: not on that gateway's own model list. No published token fee: Portkey, TrueFoundry AI Gateway.

Related models

In / out per 1M
GPT-6.1 Terra
OpenAI · 1.05MCheapest: $1 on OpenAI (flex)
$1 / $5GPT-6.1 Terra is the mid-tier model in OpenAI's GPT-6.1 series, priced below GPT-6.1 Sol.
GPT-6.1 Terra Pro
OpenAI · 1.05MCheapest: $1 on OpenAI (flex)
$1 / $5GPT-6.1 Terra Pro is the same underlying model as GPT-6.1 Terra, served with reasoning.mode set to pro for higher-quality responses on complex tasks.
GPT-6.1 Sol
OpenAI · 1.05MCheapest: $2 on OpenAI (flex)
$2 / $10GPT-6.1 Sol is an upgrade to GPT-6 Sol from OpenAI, positioned below the flagship GPT-6 Astra in the GPT-6 series.
GPT-6.1 Sol Pro
OpenAI · 1.05MCheapest: $2 on OpenAI (flex)
$2 / $10GPT-6.1 Sol Pro is the same underlying model as GPT-6.1 Sol, served with reasoning.mode set to pro for higher-quality responses on complex tasks.
Gemini 4 Argon
Google · 1MCheapest: $2 on Google Gemini API (flex)
$2 / $10Gemini 4 Argon is Google's flagship reasoning model, built for complex software engineering, deep mathematical and scientific problem solving, and autonomous multi-step agents.
Claude Sonnet 5.5
Anthropic · 1M
$2 / $10Claude Sonnet 5.5 is Anthropic's Sonnet-class model for well-scoped everyday work, succeeding Claude Sonnet 5 as a direct upgrade.
Muse Spark 1.1
Meta · 1M
$1.25 / $4.25Muse Spark 1.1 is a multimodal reasoning model from Meta, built for agentic tasks.
Qwen3.8 Max (0902)
Qwen (Alibaba) · 1M
$2 / $6Qwen3.8 Max 0902 is an updated snapshot of Qwen3.8 Max from Alibaba's Qwen team.

About GPT-5.1-Codex

Takes text, image in and returns text. First listed Nov 14, 2025. Up to 128K output tokens. Blended price $3.44 per 1M tokens at 3 input to 1 output. Model id gpt-5-1-codex.

Price history

$1$3$102026Nov 14, 2025Output $10Input $1.25

List price since Nov 14, 2025, from Internet Archive snapshots of the OpenRouter catalog, then daily reads.

  • Price riseJul 28, 20263 months ago+4%
    GPT-5.1-Codex

    OpenAI raised its API price: cached input $0.125 to $0.13 per 1M tokens.

  • Price cutJul 17, 20263 months ago-4%
    GPT-5.1-Codex

    OpenAI cut its API price: cached input $0.13 to $0.125 per 1M tokens.

  • Price riseMay 29, 20265 months ago+4%
    GPT-5.1-Codex

    OpenAI raised its API price: cached input $0.125 to $0.13 per 1M tokens.

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.