Samprix

AI API Cost Calculator

Enter a typical request and how many you send, and compare what it costs per month on every current OpenAI, Claude and Gemini model.

Runs in your browser Prices last checked: how
Your usage
A month is counted as 30 days.
Cheapest / month $9.60 Gemini 2.5 Flash-Lite
Cheapest / request $0.00032
Requests / month 30K
Tokens / month 69M

Estimated monthly cost by model

ModelPer month InputCachedOutput
Gemini 2.5 Flash-Lite
Google
Audio input costs more.
In $0.10 · Out $0.40
$9.60 · $0.00032/req
GPT-6 Luna
OpenAI
Long prompts are billed at higher long-context rates.
In $0.10 · Out $0.50
$10.50 · $0.00035/req
Gemini 3.1 Flash-Lite
Google
Audio input costs more.
In $0.25 · Out $1.50
$28.50 · $0.00095/req
Gemini 3.5 Flash-Lite
Google
In $0.30 · Out $2.50
$40.50 · $0.0014/req
Gemini 2.5 Flash
Google
Audio input costs more.
In $0.30 · Out $2.50
$40.50 · $0.0014/req
Gemini 3 Flash Preview
Google
Audio input costs more.
In $0.50 · Out $3
$57.00 · $0.0019/req
Gemini 3.8 Flash
Google · promo price until Dec 31, 2026
In $0.75 · Out $3.75
$78.75 · $0.0026/req
Gemini 3.7 Flash
Google · promo price until Dec 31, 2026
In $0.75 · Out $3.75
$78.75 · $0.0026/req
Gemini 3.6 Flash
Google · promo price until Dec 31, 2026
In $0.75 · Out $3.75
$78.75 · $0.0026/req
Claude Haiku 4.5
Anthropic
In $1 · Out $5
$105.00 · $0.0035/req
Gemini 2.5 Pro
Google
Prompts over 200K tokens are billed at a higher rate.
In $1.25 · Out $10
$165.00 · $0.0055/req
Gemini 3.5 Flash
Google
In $1.50 · Out $9
$171.00 · $0.0057/req
GPT-6.1 Sol
OpenAI
Long prompts are billed at higher long-context rates.
In $2 · Out $10
$210.00 · $0.007/req
Claude Sonnet 5.5
Anthropic
In $2 · Out $10
$210.00 · $0.007/req
Gemini 3.1 Pro Preview
Google
Prompts over 200K tokens are billed at a higher rate.
In $2 · Out $12
$228.00 · $0.0076/req
Claude Opus 5.5
Anthropic
In $4 · Out $20
$420.00 · $0.014/req
GPT-6 Astra
OpenAI
Long prompts are billed at higher long-context rates.
In $10 · Out $50
$1,050 · $0.035/req
Claude Fable 5.1
Anthropic
In $10 · Out $50
$1,050 · $0.035/req

How this calculator works

  • Prices come from each provider’s own API pricing page and are re-checked every day. Each figure has the date it was last confirmed; see our methodology.
  • Monthly cost is input tokens × input price plus output tokens × output price, per million tokens, times the number of requests. “Per day” assumes a 30-day month.
  • Caching moves the chosen share of each prompt to the provider’s cached-input price. One-off cache write and storage charges aren’t included.
  • Batch switches every model to its published batch prices, including the cached-input price in batch mode.
  • Your numbers stay private. The calculation runs in your browser; nothing you enter is sent anywhere.

Did this tool do what you needed?

© 2026 Samprix. Not affiliated with OpenAI, Anthropic or Google.