LLM API Pricing Calculator: OpenAI, Anthropic, Gemini

Estimate token and per-call costs for OpenAI, Anthropic, Google Gemini, xAI, DeepSeek, Mistral, and Perplexity APIs based on usage. For plans and product costs, see GPT for Work’s own pricing.

Provider
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
OpenAI
Perplexity
Perplexity
Perplexity
Google
Google
Google
Google
Google
Google
Google
xAI
Anthropic
Anthropic
Anthropic
Anthropic
Anthropic
Anthropic
Anthropic
Anthropic
Anthropic
Anthropic
DeepSeek
DeepSeek
DeepSeek
DeepSeek
Mistral
Mistral
Mistral
Mistral
Mistral
Model
gpt-5.6-sol
gpt-5.6-terra
gpt-5.6-luna
gpt-5.5
gpt-5.4
gpt-5.4-mini
gpt-5.4-nano
gpt-5.2
gpt-5.1
gpt-5-mini
gpt-5-nano
gpt-4.1
gpt-4.1-mini
gpt-5-search-api
gpt-4o
gpt-4o-mini
gpt-5
o3-2025-04-16
Fine-tuned GPT-4o
Fine-tuned GPT-4o mini
Fine-tuned GPT-4.1
sonar
sonar-pro
sonar-reasoning-pro
gemini-3.5-flash
gemini-3.1-flash-lite
gemini-3-flash-preview
gemini-3.1-pro-preview
gemini-2.5-flash
gemini-2.5-flash-lite
gemini-2.5-pro
grok-4.3
claude-sonnet-5
claude-sonnet-4-6
claude-sonnet-4-5-20250929
claude-fable-5
claude-opus-5
claude-opus-4-8
claude-opus-4-7
claude-opus-4-6
claude-opus-4-5-20251101
claude-haiku-4-5-20251001
deepseek-v4-flash (off-peak)
deepseek-v4-pro (off-peak)
deepseek-v4-flash (peak)
deepseek-v4-pro (peak)
mistral-large-latest
mistral-medium-latest
mistral-small-latest
ministral-8b-latest
ministral-3b-latest
Input price for 1M tokens
$5.00
$2.00
$0.20
$5.00
$2.50
$0.75
$0.20
$1.75
$1.25
$0.25
$0.05
$2.00
$0.40
$1.25
$2.50
$0.15
$1.25
$2.00
$3.75
$0.30
$3.00
$1.00
$3.00
$2.00
$1.50
$0.25
$0.50
$2.00
$0.30
$0.10
$1.25
$1.25
$2.00
$3.00
$3.00
$10.00
$5.00
$5.00
$5.00
$5.00
$5.00
$1.00
$0.22
$0.66
$0.44
$1.32
$0.50
$1.50
$0.15
$0.15
$0.10
Output price for 1M tokens
$30.00
$12.00
$1.20
$30.00
$15.00
$4.50
$1.25
$14.00
$10.00
$2.00
$0.40
$8.00
$1.60
$10.00
$10.00
$0.60
$10.00
$8.00
$15.00
$1.20
$12.00
$1.00
$15.00
$8.00
$9.00
$1.50
$3.00
$12.00
$2.50
$0.40
$10.00
$2.50
$10.00
$15.00
$15.00
$50.00
$25.00
$25.00
$25.00
$25.00
$25.00
$5.00
$0.66
$1.98
$1.32
$3.96
$1.50
$7.50
$0.60
$0.15
$0.10
Default fixed price per API call
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0100
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0050
$0.0060
$0.0060
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
$0.0000
Price per API call
$0.0155
$0.0062
$0.0006
$0.0155
$0.0077
$0.0023
$0.0006
$0.0072
$0.0051
$0.0010
$0.0002
$0.0042
$0.0008
$0.0151
$0.0053
$0.0003
$0.0051
$0.0042
$0.0079
$0.0006
$0.0063
$0.0056
$0.0138
$0.0102
$0.0046
$0.0008
$0.0015
$0.0062
$0.0013
$0.0002
$0.0051
$0.0014
$0.0052
$0.0078
$0.0078
$0.0260
$0.0130
$0.0130
$0.0130
$0.0130
$0.0130
$0.0026
$0.0004
$0.0011
$0.0007
$0.0021
$0.0008
$0.0039
$0.0003
$0.0001
$0.0001
Total price
$1.55
$0.62
$0.06
$1.55
$0.78
$0.23
$0.06
$0.72
$0.51
$0.10
$0.02
$0.42
$0.08
$1.51
$0.53
$0.03
$0.51
$0.42
$0.79
$0.06
$0.63
$0.56
$1.38
$1.02
$0.46
$0.08
$0.15
$0.62
$0.13
$0.02
$0.51
$0.14
$0.52
$0.78
$0.78
$2.60
$1.30
$1.30
$1.30
$1.30
$1.30
$0.26
$0.04
$0.11
$0.07
$0.21
$0.08
$0.39
$0.03
$0.01
$0.01
DeepSeek peak pricing applies from 01:00–04:00 and 06:00–10:00 UTC. All other hours use the off-peak rates. Perplexity fees use the default low search context; medium and high search contexts cost more.

Use LLMs in bulk in Excel or Google Sheets

GPT for Work enables bulk LLM operations directly in spreadsheets. Process thousands of rows with ChatGPT, Claude, Gemini, and other AI models efficiently.

Try for free

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.