OpenAI

GPT-5.1 Codex

Reviewed by the GetInfoUs research teamLast reviewed: October 2026Editorial policy
61
Intelligence Index

The Codex line upgraded to GPT-5.1 for repository edits, code review and real software agents.

Technical Specifications

Provider
OpenAI
Category
flagship
Release Date
2025-11
Knowledge Cutoff
October 2024
Architecture
Code-specialised unified reasoning model
Parameters
Confidential
Context Window
400K tokens
Max Output
128K tokens
Cached Input Price
$0.125 / 1M tokens
Batch API Discount
50% off async batch
Consumer Subscription
$20 / month
Reasoning Mode
Yes (Chain-of-Thought)
Reasoning Effort Control
Configurable (Low / Med / High)
Tool Calling
Yes
Structured Outputs
Yes
Open Weights
No (Proprietary Cloud)
Input Modalities
text, vision
Output Modalities
text
Official Documentation
Visit Official Docs ↗

Data Privacy, Licensing & Deployment Governance

API Data Training Policy
API payloads are excluded from model training by default
Model License & Commercial Rights
Proprietary Commercial API (OpenAI Terms)
Deployment & Cloud Availability
OpenAI Platform API, Microsoft Azure OpenAI Foundry
Output Ownership
Full commercial ownership of generated outputs

Official Provider Release Intelligence, API Quotas & Agentic Specs

Compare Multi-Models Side-by-Side →
Official API Model ID (SDK String)
gpt-5-1-codex
Supported SDK & API Protocol
OpenAI Responses API & Chat Completions v1
Lifecycle & Deprecation Status
Active GA (Guaranteed support through 2027+)
Production Rate Limits (RPM & TPM)
10,000 – 30,000 RPM (Tier 5 Enterprise) · 800,000 – 2,000,000 TPM
Long-Context Pricing Tier (>128K / >200K)
Flat rate ($1.25/1M in) across full 400K window
Prompt Cache Write & TTL Policy
Automatic prefix caching at $0.125/1M (no extra cache-write fee)
Computer Use & Browser GUI Agent
Supported (Screen coordinate grounding, browser & desktop GUI action loops)
MCP & Parallel Tool Calling
Native MCP Client/Server ready · Parallel function calling · 100% Strict JSON Schema
Web Search Grounding & Code Sandbox
Native Web Search tool + Hosted Code Interpreter & File Search RAG
Fine-Tuning & Distillation Support
Supervised Fine-Tuning (SFT), Direct Preference (DPO) & Reinforcement Fine-Tuning (RFT)
Multimodal Tokenization Billing
Text BPE (~4 chars/token) · Vision (~258–765 tokens per image tile)
Weights Precision & Quantization
Cloud-Hosted Proprietary (FP8 / BF16 Tensor Core Cluster)
Minimum GPU VRAM Requirement
Zero Local VRAM Required (100% Serverless Cloud API)
Supported Inference Engines
Managed OpenAI Cloud API
System Card & Safety Framework
OpenAI Preparedness Framework Audited & System Card Published
Enterprise Compliance (SOC2 / HIPAA / ZDR)
SOC2 Type II · GDPR · Zero Data Retention (ZDR) & HIPAA BAA Available on Enterprise Tier
Engineering & Pricing Workbench

GPT-5.1 Codex Cost, Context, Hardware & API Integration

500 / day
4,000 tok
1,000 tok
Conversation Depth (History Re-billing):1 Turn (Single-Shot)
50%
Estimated Monthly API Cost (30 Days)
$191.25$225.00
Monthly Savings: $33.75 (Caching/Batch)
Subscription ($20/mo) vs API

For single-user chat, a $20/mo subscription caps your bill below this API volume.

Break-even point: ~52 requests/day equals $20/month.

Same Monthly Workload Cost Across Popular Reference Models

GPT-5.1 Codex (Active)
$191.25
/ month
Gemini 2.5 Flash
$18.00
/ month
DeepSeek V3
$32.70
/ month
GPT-4o
$300.00
/ month
Claude 3.7 Sonnet
$405.00
/ month

Live Prompt Paste Tokenizer & Cost Counter

Paste real system instructions, JSON schemas, or code to measure BPE token counts across tokenizers.

Chars / Words
175 / 24
OpenAI o200k
~46 tok
Claude BPE
~49 tok
Llama / DeepSeek
~51 tok

Hybrid Prompt Routing Cascade Simulator

Route routine queries to a fast lightweight model ($0.15/1M) and escalate only complex reasoning turns to GPT-5.1 Codex:

Cascaded Monthly Bill:$61.31/mo
Saves $129.94/mo (68% cost reduction) vs sending 100% of traffic to GPT-5.1 Codex.

Benchmark Scores & 6-Axis Capability Radar

Benchmark Encyclopedia
Coding (88)Reasoning (90)Knowledge (87)Speed (83)Context (85)Cost Value (72)
GPT-5.1 Codex2026 Frontier Median
SWE-bench Verified
76.1%
GPQA Diamond
78.5%
MMLU-Pro
86.5%
HumanEval
93.9%
Humanity's Last Exam
12.6%
Terminal-Bench
52%
SciCode
46.5%
LiveCodeBench
74%
AIME
91.8%
Long-Context Reasoning
78.5%
Chatbot Arena Elo
1372pts

Strengths

  • Clear improvement over GPT-5-Codex on repository tasks
  • Handles long agentic edit sessions reliably
  • Priced identically to the previous Codex generation
  • Better at cross-file consistency than GPT-5-Codex

Limitations & Trade-offs

  • Premium pricing for non-coding use cases
  • Gains over GPT-5-Codex are incremental rather than dramatic

Editorial Assessment

The default Codex upgrade for teams shipping software with agents.

Best for: Code-centric product teams running agentic development

Frequently Asked Questions about GPT-5.1 Codex

How much does the GPT-5.1 Codex API cost per 1M tokens?+

GPT-5.1 Codex by OpenAI is priced at $1.25 per 1M input tokens and $10 per 1M output tokens. With prompt caching enabled, cached input tokens cost $0.125 per 1M tokens, and asynchronous Batch API requests receive a 50% discount.

Should I use a $20/month subscription or the GPT-5.1 Codex pay-as-you-go API?+

A flat $20/month consumer subscription is predictable for daily interactive chat and manual coding. However, if you are building software, running automated workflows, or sending low-to-moderate volume with prompt caching enabled, the pay-as-you-go API is typically far more cost-effective and offers higher rate limits without manual UI caps.

How many words and pages fit in GPT-5.1 Codex's context window?+

GPT-5.1 Codex features a 400K tokens context window, which equals approximately 300,000 English words or ~800 standard single-spaced pages in a single prompt. Its maximum output generation per turn is 128,000 tokens.

Can I run GPT-5.1 Codex locally on my own GPU (Open Weights)?+

No, GPT-5.1 Codex is a proprietary closed-weights model hosted by OpenAI. It cannot be downloaded for local GPU execution and must be accessed via OpenAI's official API or cloud platform.

Does OpenAI train on data sent to the GPT-5.1 Codex API, and is commercial use allowed?+

API payloads are excluded from model training by default. License tier: Proprietary Commercial API (OpenAI Terms). Full commercial ownership of generated outputs. Supported deployment channels include: OpenAI Platform API, Microsoft Azure OpenAI Foundry.

How does GPT-5.1 Codex perform on coding and reasoning benchmarks?+

GPT-5.1 Codex achieves a composite Intelligence Index of 61/100, scoring 76.1% on SWE-bench Verified, 78.5% on GPQA Diamond, 86.5% on MMLU-Pro, and 1372 pts on Chatbot Arena Elo.

What is GPT-5.1 Codex best used for?+

GPT-5.1 Codex is best suited for: Code-centric product teams running agentic development. Assessment: The default Codex upgrade for teams shipping software with agents.

AI Glossary & Architecture Concepts

View full glossary →

Key machine learning concepts and benchmarks relevant to GPT-5.1 Codex:

Benchmark scores, token prices, and rate limits evolve rapidly as AI labs release model updates. Always verify current specifications and pricing on the official provider documentation.

Sources: OpenAI Official Pricing & Technical Reports (Late 2026)↗