OpenAI API Pricing Calculator

Check the estimated API cost for your projects in seconds.

New models: We’ve added gpt-3.5-turbo-0125, the model improves accuracy and fixes a bug for non-English texts, allowing up to 4,096 tokens.

Pricing update: OpenAI has switched their pricing unit from per 1,000 tokens to per 1,000,000 tokens.

GPTs API model pricing

Pricing is based on the total number of tokens used (input + output). Each model has its own rate per 1,000,000 tokens.

ModelInput priceOutput price

What are OpenAI API models?

OpenAI API models are powerful tools that can understand, generate, and respond to human language. They can be used for various tasks, including:

  • Text generation
  • Code completion
  • Translation
  • And more!

How to use the calculator

To calculate the API costs, you can follow these steps:

1. Look at Select an OpenAI model dropdown menu to choose an API model.

Step 1

2. Look at the Input tokens and Output tokens, enter the number tokens.

Step 2

3. Click Calculate Price to see the estimated cost.

Step 3

For example, we selected gpt-4-0125-preview with 12,345 input tokens and expect a 67,890 token response. The calculator estimates a cost of $2,16 with 60,177 words.

That’s all! The calculator will display the estimated price for the selected GPT model based on your tokens.

Learn more about the pricing calculator for the OpenAI API here.


1. What are tokens?

Tokens are the basic unit used for billing in OpenAI’s API. Each word, punctuation mark, and special character typically counts as one token. The cost is calculated based on the total number of tokens processed, including both the input you provide (prompt) and the output generated by the AI model.

2. How to choose the right model?

Consider these factors when selecting a model:

  • Task complexity: Simpler tasks can be handled by GPT-3.5 Turbo models, while complex ones might require GPT-4.
  • Desired output length: Models like GPT-4 generate more content per token, making them efficient for longer responses.


Learn more about OpenAI’s model specifications for information.