OpenAI

GPT-5.2 Codex

Revisado pela equipe de pesquisa do GetInfoUsÚltima revisão: October 2026Política editorial
Modelo de Raciocínio ProfundoOfficial Source Verified ↗
66
Intelligence Index

O GPT-5.2 Codex da OpenAI é um modelo de inteligência artificial com janela de contexto de 400K tokens e preço de API de $1.75/1M na entrada e $14/1M na saída, projetado para programação, raciocínio e automação empresarial.

Technical Specifications

Provider
OpenAI
Category
flagship
Release Date
2025-12
Knowledge Cutoff
August 2025
Architecture
Code-specialised long-horizon reasoning model
Parameters
Confidential
Context Window
400K tokens
Max Output
128K tokens
Cached Input Price
$0.175 / 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-2-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.75/1M in) across full 400K window
Prompt Cache Write & TTL Policy
Automatic prefix caching at $0.175/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.2 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)
$267.75$315.00
Monthly Savings: $47.25 (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: ~37 requests/day equals $20/month.

Same Monthly Workload Cost Across Popular Reference Models

GPT-5.2 Codex (Active)
$267.75
/ 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.2 Codex:

Cascaded Monthly Bill:$80.44/mo
Saves $187.31/mo (70% cost reduction) vs sending 100% of traffic to GPT-5.2 Codex.

Benchmark Scores & 6-Axis Capability Radar

Benchmark Encyclopedia
Coding (90)Reasoning (90)Knowledge (87)Speed (79)Context (85)Cost Value (58)
GPT-5.2 Codex2026 Frontier Median
SWE-bench Verified
78.1%
GPQA Diamond
78.2%
MMLU-Pro
87.4%
HumanEval
94.6%
Humanity's Last Exam
13.8%
Terminal-Bench
53.5%
SciCode
48.5%
LiveCodeBench
76.5%
AIME
93.8%
Long-Context Reasoning
82%
Chatbot Arena Elo
1398pts

Strengths

  • Arquitetura Code-specialised long-horizon reasoning model avançada da OpenAI com contexto de 400K tokens
  • Excelente relação custo-benefício ($1.75/1M entrada, $14/1M saída) e baixa latência
  • Forte desempenho em benchmarks de código, análise lógica e tarefas multilíngues

Limitations & Trade-offs

  • Cargas de trabalho com contexto máximo exigem monitoramento de custos de tokens
  • Requer engenharia de prompt adequada para fluxos de trabalho altamente específicos

Editorial Assessment

O GPT-5.2 Codex da OpenAI oferece um equilíbrio sólido entre inteligência, velocidade e eficiência de custos.

Best for: Automação corporativa, engenharia de software, agentes autônomos e pipelines de produção com OpenAI

Frequently Asked Questions about GPT-5.2 Codex

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

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

Should I use a $20/month subscription or the GPT-5.2 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.2 Codex's context window?+

GPT-5.2 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.2 Codex locally on my own GPU (Open Weights)?+

No, GPT-5.2 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.2 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.2 Codex perform on coding and reasoning benchmarks?+

GPT-5.2 Codex achieves a composite Intelligence Index of 66/100, scoring 78.1% on SWE-bench Verified, 78.2% on GPQA Diamond, 87.4% on MMLU-Pro, and 1398 pts on Chatbot Arena Elo.

What is GPT-5.2 Codex best used for?+

GPT-5.2 Codex is best suited for: Automação corporativa, engenharia de software, agentes autônomos e pipelines de produção com OpenAI. Assessment: O GPT-5.2 Codex da OpenAI oferece um equilíbrio sólido entre inteligência, velocidade e eficiência de custos.

AI Glossary & Architecture Concepts

View full glossary →

Key machine learning concepts and benchmarks relevant to GPT-5.2 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.

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