OpenAI GPT-5 Codex Cost Calculator – Estimate API Token Pricing

Model: OpenAI: GPT-5 Codex, Context: 400000, Cost: $1.25 per 1M input tokens, $10 per 1M output tokens

Note: Calculation is approximate based on public data. Prices may change, check official websites.

Use this calculator to estimate the API token pricing for OpenAI GPT-5 Codex, a specialized model optimized for software engineering and coding workflows. This model excels in tasks such as building projects, feature development, debugging, large-scale refactoring, and code review, producing cleaner, higher-quality code outputs.

The model operates with the following parameters:

  • Model: OpenAI: GPT-5 Codex
  • Context Window: 400,000 tokens
  • Input Tokens Cost: $1.25 per 1 Million tokens
  • Output Tokens Cost: $10.00 per 1 Million tokens

The total cost is determined by the formula:

Total Cost = ((Number of Input Tokens * $1.25) + (Number of Output Tokens * $10.00)) / 1,000,000 * Number of Requests

Example: To calculate the cost for 10,000 input tokens, 5,000 output tokens, and 1 request:

Input Cost = (10,000 * $1.25) / 1,000,000 = $0.0125

Output Cost = (5,000 * $10.00) / 1,000,000 = $0.0500

Total Estimated Cost = $0.0125 + $0.0500 = $0.0625