impulse

GPT-5.1 Codex Mini

Frontier lab

GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

API id gpt-5.1-codex-miniReleased 13 Nov 2025 (Nov 2025)
Azure OpenAI retires it on 15 May 2027 (in 177 days). 1 host keeps serving it.
Input / 1M
$0.25
at OpenAI
Output / 1M
$2.00
at OpenAI
Context window
400K
tokens
Max output
128K
tokens per reply
Hosts
2
7 listings
Released
Nov 2025
13 Nov 2025

Pricing

List prices at OpenAI, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.25$2.00
Cached input
90% off input
$0.025

What it costs a month

At OpenAI list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$205
  • RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$138
  • Coding agent1,000 requests a day, 40K in / 2K out, cached$231
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$1,080
Use your own numbers

Where to run it

2 hosts serve GPT-5.1 Codex Mini. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
OpenAILab API
gpt-5.1-codex-mini
$0.25 / $2.00
gpt-5.1-codex-mini
$0.25 / $2.00
Retires 15 May 2027
ChatGPTSubscription
gpt-5.1-codex-mini
In the subscription
Show 4 more listings: regions, snapshots and variants
Azure OpenAI
global
gpt-5.1-codex-mini
$0.25 / $2.00
Retires 15 May 2027
2025-11-13
gpt-5.1-codex-mini-2025-11-13
$0.25 / $2.00
Retires 15 May 2027
eu
gpt-5.1-codex-mini
$0.275 / $2.20
+10% vs headline
Retires 15 May 2027
us
gpt-5.1-codex-mini
$0.275 / $2.20
+10% vs headline
Retires 15 May 2027

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
ImagesTextPDFs
Produces
Text
Features
Parallel tool callsPDF inputPrompt caching

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than OpenAI.

Smaller OpenAI models

  • GPT-5.4 Nano
    OpenAI · on OpenAI
    $0.20 / $1.25
    Has every key capability
    33% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    71% less
  • GPT-4o Mini
    OpenAI · on OpenAI
    $0.15 / $0.60
    Lacks reasoning
    62% less

Other frontier labs

  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    71% less

Open-weight picks

  • Kimi K2.7 Code
    Moonshot AI · on CLF AI Gateway
    $0.38 / $1.60
    Has every key capability
    0% less
  • Inkling Small
    Independent · on DeepInfra
    $0.45 / $1.20
    Has every key capability
    7% less
  • DeepSeek Flash
    DeepSeek · on DeepSeek
    $0.30 / $1.20
    Has every key capability
    24% less
  • Qwen3.7 Plus
    Alibaba Qwen · on Replicate
    $0.276 / $1.10
    Has every key capability
    30% less

Call it

Using OpenAI's API.

Python
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY

response = client.responses.create(model="gpt-5.1-codex-mini", input="Hello")
print(response.output_text)

Quick answers

How much does GPT-5.1 Codex Mini cost?

On OpenAI, GPT-5.1 Codex Mini costs $0.25 per million input tokens and $2.00 per million output tokens. Cached input costs $0.025 per million tokens.

Which APIs offer GPT-5.1 Codex Mini?

GPT-5.1 Codex Mini runs on 2 APIs: OpenAI and Azure OpenAI.

What is GPT-5.1 Codex Mini's context window?

400K tokens, with up to 128K tokens in one reply.

Is GPT-5.1 Codex Mini being retired?

Azure OpenAI retires it on 15 May 2027. 1 host keeps serving it.

What are cheaper alternatives to GPT-5.1 Codex Mini?

Models that cost less and keep most of what it can do: GPT-5.4 Nano on OpenAI (33% less), Claude Haiku 5.5 on Anthropic (71% less) and Kimi K2.7 Code on CLF AI Gateway (0% less). Savings are on a mix of 3 input tokens to 1 output token.

When was GPT-5.1 Codex Mini released?

OpenAI released it on 13 Nov 2025.

What is GPT-5.1 Codex Mini's API model id?

Use gpt-5.1-codex-mini with OpenAI.

Sources

Raw catalog entry for gpt-5.1-codex-mini on OpenAI
{
  "cache_read_input_token_cost": 2.5e-8,
  "deprecation_date": "2026-07-23",
  "deprecation_source": "https://developers.openai.com/api/docs/deprecations",
  "successor_model": "gpt-5.6-terra",
  "input_cost_per_token": 2.5e-7,
  "litellm_provider": "openai",
  "max_input_tokens": 400000,
  "max_output_tokens": 128000,
  "mode": "responses",
  "output_cost_per_token": 0.000002,
  "fedramp_uplift_multiplier": 1.1,
  "source": "https://developers.openai.com/api/docs/models/gpt-5.1-codex-mini",
  "supported_endpoints": [
    "/v1/responses"
  ],
  "supported_modalities": [
    "text",
    "image"
  ],
  "supported_output_modalities": [
    "text"
  ],
  "supports_function_calling": true,
  "supports_native_streaming": true,
  "supports_parallel_function_calling": true,
  "supports_pdf_input": true,
  "supports_prompt_caching": true,
  "supports_reasoning": true,
  "supports_response_schema": true,
  "supports_tool_choice": true,
  "supports_vision": true
}