OpenAI: GPT-5.1-Codex-Mini

deprecatedproprietary

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

Intelligence
Reasoning
Speed
Context
400K
Max output
128K
Input price
$0.25/1M tokens
Output price
$2/1M tokens

Capabilities

Reasoning & Interaction
Reasoning
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming

Details

Model IDopenai/gpt-5.1-codex-mini
Provider OpenRouter
Creator OpenAI
Familygpt-5.1
Licenseproprietary
Statusdeprecated
Typechat
Input modalitiesimage, text
Output modalitiestext
Open weightNo
Parameters—
Architecture—
Context window400K tokens
Max input—
Max output128K tokens
Reasoning tokensYes
Knowledge cutoff
Release date
Deprecation date
Sourceofficial

Tools

Function Callingfunction_calling
Call external functions and APIs

Pricing

Input
$0.25
Output
$2
Cache write
—
Cache read
$0.03
Batch in
—
Batch out
—

Family Comparison: gpt-5.1

ModelContextMax outPricing
OpenAI: GPT-5.1-Codex-Mini400K128K$0.25$2
OpenAI: GPT-5.1 (batch)400K128K$0.63$5
OpenAI: GPT-5.1 Chat128K32K$1.25$10
OpenAI: GPT-5.1-Codex-Max400K128K$1.25$10
OpenAI: GPT-5.1-Codex400K128K$1.25$10
OpenAI: GPT-5.1400K128K$1.25$10

API

GET/v1/models/openrouter/openai/gpt-5.1-codex-mini