OpenAI GPT API Pricing Calculator

Wondering about how the OpenAI GPT and other AI model pricing works? Here's a pricing calculator for OpenAI GPT API, Anthropic Claude API, Mistral API and Google Gemini API.

Provider
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
Anthropic
Anthropic
Google
Google
Mistral
Model
gpt-4o
gpt-4o-mini
gpt-4-turbo
gpt-4
gpt-3.5-turbo
claude-3.5-sonnet
claude-3-haiku
gemini-1.5-flash
gemini-1.5-pro
mistral-large
Input price for 1M tokens
$5.00
$0.15
$10.00
$30.00
$0.50
$3.00
$0.25
$0.07
$3.50
$3.00
Output price for 1M tokens
$15.00
$0.60
$30.00
$60.00
$1.50
$15.00
$1.25
$0.30
$10.50
$9.00
Price per API call
$0.0080
$0.0003
$0.0160
$0.0330
$0.0008
$0.0078
$0.0006
$0.0002
$0.0056
$0.0048
Total price
$0.80
$0.03
$1.60
$3.30
$0.08
$0.78
$0.07
$0.02
$0.56
$0.48

FAQ about OpenAI GPT API

What is an OpenAI token?

A token is a part of a text that can be word, subword, punctuation mark or symbol. It is the unit of account of OpenAI APIs. Read our guide on tokens here.

What is an OpenAI execution?

An OpenAI execution is the combination of the invite to OpenAI and the response from OpenAI.
All text in the prompt and response count for OpenAI billing.

What is an OpenAI prompt?

The OpenAI prompt is the instructions or question you send to OpenAI in order to get a response. It is text written in normal, natural language, for example:
Prompt: "Write a tagline for an ice cream shop".

What is an OpenAI response?

This is the response OpenAI gives you to the prompt you sent, for example:
Prompt: "Write a tagline for an ice cream shop"
Response: “We serve up smiles with every scoop!”

Can I set an OpenAI billing limit?

You can configure a billing limit in the OpenAI billing settings, in order to control your costs.

How to monitor my OpenAI API cost based on usage?

You can review your usage in the OpenAI dashboard usage section.
You can easily set a spending limit in the OpenAI dashboard billing section.