All Models / openai / openai/gpt-5.2-codex

OpenAI: GPT-5.2-Codex API Pricing & Cost Calculator

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....

Tool CallingReasoningMultimodal / VisionPrompt Caching
Input Price / 1M Tokens
$1.75
Output Price / 1M Tokens
$14.00
Prompt Cache Read / 1M
$0.175
Context Window
400K
Max out: 128K

Interactive OpenAI: GPT-5.2-Codex Monthly Cost Calculator

Est. Monthly (With Cache)
—
Est. Monthly (Uncached)
—
Est. Daily Run Rate
—

Volume Cost Benchmarks (75% Input / 25% Output)

Monthly Token VolumeUncached API CostWith 50% Prompt Caching
1M Tokens (Small App)$4.81$4.22
10M Tokens (Growing SaaS)$48.12$42.22
100M Tokens (Scale / Agents)$481.25$422.19
1B Tokens (Enterprise)$4,812.50$4,221.88

Deploy or Switch Providers

Best for H100 / A100 / 4090

RunPod Cloud GPUs

Spin up on-demand H100, A100, L40S, and RTX 4090 pods or serverless vLLM endpoints in seconds.

Launch GPU on RunPod →
Predictable Cloud Infra

DigitalOcean GPU Droplets

Deploy AI inference APIs, vector databases, and GPU droplets with simple monthly billing.

Try DigitalOcean →
1 API Key · 470+ Models

OpenRouter Unified API

Switch between Gemini, Claude, GPT, DeepSeek, and Llama with one OpenAI-compatible key.

Get Unified API Key →

Lower-Cost Alternatives to OpenAI: GPT-5.2-Codex