Note: Calculation is approximate based on public data. Prices may change, check official websites.
The OpenAI GPT-5.2-Codex API Cost Calculator helps you estimate the expenses for using the advanced GPT-5.2-Codex model. This model is specifically optimized for software engineering and coding workflows, offering enhanced steerability and higher-quality code outputs for tasks like project building, feature development, debugging, and code review, with a substantial context window of 400,000 tokens.
The calculator uses the following pricing structure:
- Input tokens: $1.75 per 1,000,000 tokens
- Output tokens: $14 per 1,000,000 tokens
You can input the number of input tokens, output tokens, and the total number of requests. The tool will then calculate the total estimated cost in USD, with an optional conversion to EUR based on a specified exchange rate.
The calculation formula is:
Cost = ((Input Tokens / 1,000,000) * $1.75 + (Output Tokens / 1,000,000) * $14) * Number of Requests
Example:
If you use 100,000 input tokens and 50,000 output tokens for a single request:
- Input cost: (100,000 / 1,000,000) * $1.75 = $0.175
- Output cost: (50,000 / 1,000,000) * $14 = $0.70
- Total estimated cost for 1 request: $0.175 + $0.70 = $0.875