API Cost Calculator
Estimate AI API costs based on model pricing, token usage, requests, and monthly volume.
Cost per request
$0.000450
Input $0.000150 + output $0.000300
Daily cost
$0.0450
100 req/day × cost/req
Monthly cost
$1.35
30 days/month
Annual cost
$16.20
Monthly × 12
Cost Breakdown
| Input tokens / request | 1,000 |
|---|---|
| Output tokens / request | 500 |
| Input cost / request | $0.000150 |
| Output cost / request | $0.000300 |
| Cost per request | $0.000450 |
| Monthly requests | 3,000 |
| Monthly input tokens | 3,000,000 |
| Monthly output tokens | 1,500,000 |
| Monthly tokens (total) | 4,500,000 |
| Monthly cost | $1.35 |
| Annual cost | $16.20 |
Model Comparison
Same workload: 1,000 input + 500 output tokens per request, 100 requests/day, 30 days/month, priced across every model.
| Model | Provider | Input $/M | Output $/M | Cost / Req | Monthly | Context |
|---|---|---|---|---|---|---|
| GPT-4.1 Nano | OpenAI | $0.1 | $0.4 | $0.000300 | $0.9000 | 1.0M |
| GPT-4.1 Mini | OpenAI | $0.4 | $1.6 | $0.001200 | $3.60 | 1.0M |
| GPT-4.1 | OpenAI | $2 | $8 | $0.006000 | $18.00 | 1.0M |
| GPT-4o MiniSelected | OpenAI | $0.15 | $0.6 | $0.000450 | $1.35 | 128K |
| Claude Haiku 4.5 | Anthropic | $1 | $5 | $0.003500 | $10.50 | 200K |
| Claude Sonnet 4.6 | Anthropic | $3 | $15 | $0.0105 | $31.50 | 200K |
| Claude Opus 4.8 | Anthropic | $5 | $25 | $0.0175 | $52.50 | 200K |
| Gemini 3.1 Flash-Lite | $0.25 | $1.5 | $0.001000 | $3.00 | 1.0M | |
| Gemini 3 Flash Preview | $0.5 | $3 | $0.002000 | $6.00 | 1.0M |
Per-request math
Cost per call broken down into input and output. No hidden assumptions.
Monthly + annual projection
Pick your days-per-month and instantly see monthly and annualised cost.
Side-by-side models
Compare GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Flash, and friends.
Dynamic Cost Insights
What Is API Pricing?
AI providers charge per million tokens for both input and output, with separate rates for each.
Pricing scales linearly with volume; there's no fixed monthly fee on standard pay-as-you-go tiers.
Some providers offer batch APIs, cache hits, or volume discounts that can cut effective price by 50% or more.
Enterprise tiers may bundle dedicated capacity or fixed throughput with different pricing.
How AI API Costs Work
Each API call counts the tokens in your prompt and the tokens in the response.
Total cost = (input tokens × input rate) + (output tokens × output rate), prorated per million.
Multiply by your request volume to project daily, monthly, and annual spend.
Cost grows with longer prompts, longer responses, more requests, or pricier models.
Input vs Output Pricing
Monthly Cost Formula
Reducing AI Costs
Limitations
Frequently Asked Questions
Related tools