GPT-5.2-Codex API Cost Calculator
Estimate your monthly API costs for GPT-5.2-Codex from Openai.
Pricing per 1M tokens
Pricing last verified: Mar 21, 2026
30-Day Price History
Solid line: input price · Dashed line: output price
Estimate Your Costs
What are you building?
Cost Breakdown
Compare with Similar Models
| Model | Input/1M | Output/1M |
|---|---|---|
| GPT-5.2 Openai | $1.75 | $14.00 |
| GPT-5.2 Chat Openai | $1.75 | $14.00 |
| GPT-5.3 Chat Openai | $1.75 | $14.00 |
| GPT-5.3-Codex Openai | $1.75 | $14.00 |
| GPT-5.4 Openai | $2.50 | $15.00 |
Frequently Asked Questions
How much does GPT-5.2-Codex cost per token?
GPT-5.2-Codex is priced at $1.75 per 1M input tokens and $14.00 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.
What is the context window for GPT-5.2-Codex?
GPT-5.2-Codex has a context window of 400K tokens (400,000 tokens). The maximum output length is 128K tokens.
Does GPT-5.2-Codex support image inputs (vision)?
Yes, GPT-5.2-Codex supports vision/image inputs. You can send images as part of your prompts.
Does GPT-5.2-Codex support function calling (tool use)?
Yes, GPT-5.2-Codex supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.
How does GPT-5.2-Codex compare to similar models?
GPT-5.2-Codex costs $1.75 input and $14.00 output per 1M tokens. GPT-5.2-Codex is competitively priced compared to GPT-5.3-Codex ($1.75 input / $14.00 output per 1M tokens). See the "Compare with Similar Models" table above, or visit the GPT-5.3-Codex page at /tools/cost-calculator/openai/gpt-5-3-codex.