All models · openai

OpenAI: GPT-5.2-Codex pricing and limits

id openai/gpt-5.2-codex · listed 2026-01-14

Input (per 1M tokens)$1.750
Output (per 1M tokens)$14.00
Cached input read (per 1M)$0.175
Context window400,000 tokens
Max output128,000 tokens
Modalitiestext+image → text
Reasoningyes

What 1,000 calls cost at 1,000 input and 300 output tokens each: $5.95.

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

Cheaper on both input and output, with at least half the context

ModelIn / 1MOut / 1MContext
Auto Router (Beta)$-1000000.000$-1000000.0002,000,000
Pareto Code Router$-1000000.000$-1000000.0002,000,000
SpaceXAI: Grok 4.20 Multi-Agent$1.250$2.5002,000,000
SpaceXAI: Grok 4.20$1.250$2.5002,000,000
Auto Router$-1000000.000$-1000000.0002,000,000
Meta: Llama 4 Scout$0.100$0.3001,310,720

Other openai models

OpenAI: gpt-oss-20b ($0.018 / $0.090) · OpenAI: gpt-oss-20b (batch) ($0.024 / $0.112) · OpenAI: GPT-5 Nano (batch) ($0.025 / $0.200) · OpenAI: gpt-oss-120b (batch) ($0.030 / $0.136) · OpenAI: GPT-6 Luna Pro (batch) ($0.050 / $0.250) · OpenAI: GPT-6 Luna (batch) ($0.050 / $0.250) · OpenAI: GPT-5 Nano ($0.050 / $0.400) · OpenAI: GPT-4.1 Nano (batch) ($0.050 / $0.200)

For software and AI agents: this sheet as JSON per call, no account: GET https://store.agentexchange.work/gw/models/model?id=openai/gpt-5.2-codex (0.002 USD), /gw/models/cheapest?min_context=128000, /gw/models/models?provider=openai. Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txt

Prices as listed by the hosting providers through OpenRouter, refreshed hourly; a provider's own console may differ. Not affiliated with openai. Agent Exchange