ToolPuma Logo

OpenAI Cost Calculator

Estimate OpenAI API costs for GPT models.

$0.075
Input cost
$0.075
Output cost
GPT-4.5 Preview (OpenAI)
Context window128,000
Input price$75 / 1M tokens
Output price$150 / 1M tokens
Total cost$0.150

What Is a OpenAI Cost Calculator?

The OpenAI Cost Calculator estimates API costs for OpenAI GPT models, including GPT-4o, GPT-4o mini, GPT-4.1, GPT-4 Turbo, GPT-4, GPT-3.5 Turbo, and o3-mini. Enter input and output token counts to see the price at each model's published rates.

How to Use This OpenAI Cost Calculator

  1. 1
    Pick an OpenAI modelSelect from the GPT and o-series models.
  2. 2
    Enter tokensProvide input and output token counts.
  3. 3
    Read the costReview input, output, and total cost.

Frequently Asked Questions

The calculator includes the commonly used GPT-4o, GPT-4o mini, GPT-4.1, GPT-4 Turbo, GPT-4, GPT-3.5 Turbo, and o3-mini models.
The tool uses the standard on-demand rates. OpenAI also offers batch and reserved-capacity pricing, which is not included here.
OpenAI updates pricing periodically. Treat the figures as estimates and verify current rates on OpenAI's pricing page.