gpt-5.1-codex

deprecatedproprietary

- Responses API only. - Text and image processing - Structured outputs. - Functions, tools, and parallel tool calling. - Full summary of capabilities - Optimized for Codex CLI & Codex VS Code extension

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

Capabilities

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

Details

Creator OpenAI
Familygpt-5.1
Licenseproprietary
Statusdeprecated
Typechat
Input modalitiestext, image
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

Text tokensPer 1M tokens
InputCached inputOutput
Standard$1.25$0.125$10

Family Comparison: gpt-5.1

ModelContextMax out
gpt-5.1-chat Preview128K16K
gpt-5.1-codex-max400K128K
gpt-5.1-codex-mini400K128K
gpt-5.1-codex400K128K
GPT-5.1 series400K128K

API

GET/v1/models/azure/gpt-5.1-codex