AI API Cost Calculator

Compare API pricing across OpenAI, Anthropic, Gemini, and Mistral.

1.00 Million tokens
0.10 Million tokens
OpenAI
GPT-4o mini
Input: $0.15Output: $0.06
Total Cost
$0.21
Anthropic
Claude 3 Haiku
Input: $0.25Output: $0.13
Total Cost
$0.38
Google
Gemini 1.5 Flash
Input: $0.35Output: $0.11
Total Cost
$0.45
Mistral
Mistral Large 2
Input: $2.00Output: $0.60
Total Cost
$2.60
Anthropic
Claude 3.5 Sonnet
Input: $3.00Output: $1.50
Total Cost
$4.50
Google
Gemini 1.5 Pro
Input: $3.50Output: $1.05
Total Cost
$4.55
OpenAI
GPT-4o
Input: $5.00Output: $1.50
Total Cost
$6.50

Compare LLM API Costs

AI API pricing is usually quoted per 1 Million tokens. It can be difficult to quickly visualize how much a specific workload will cost across different providers.

Enter your estimated monthly prompt (input) and completion (output) token volumes to instantly compare the total cost between OpenAI, Anthropic, Google, and Mistral.

Note: 1 token is roughly 4 characters, or 0.75 words of English text.