How AI API pricing works
Large language model APIs bill per token, with separate prices for the tokens you send (input) and the tokens the model generates (output). Your monthly bill is driven by four numbers: active users, requests per user, average prompt size and average response size. This calculator multiplies them across a 30-day month for each model.
Model cost comparison: 10,000 users
Reference scenario: 10K monthly active users making 5 requests a day with 750-token prompts and 400-token responses (1.5M requests per month). Costs range from $567 on DeepSeek V3.2 to $20,625 on Claude Opus 4.5.
| Model | Provider | Input / 1M | Output / 1M | Context | Monthly cost | Per user |
|---|---|---|---|---|---|---|
| DeepSeek V3.2 | DeepSeek | $0.28 | $0.42 | 128K | $567 | $0.06 |
| GPT-5 mini | OpenAI | $0.25 | $2.00 | 400K | $1,481 | $0.15 |
| Gemini 2.5 Flash | $0.30 | $2.50 | 1M | $1,838 | $0.18 | |
| Claude Haiku 4.5 | Anthropic | $1.00 | $5.00 | 200K | $4,125 | $0.41 |
| GPT-5 | OpenAI | $1.25 | $10.00 | 400K | $7,406 | $0.74 |
| Gemini 2.5 Pro | $1.25 | $10.00 | 1M | $7,406 | $0.74 | |
| Claude Sonnet 4.5 | Anthropic | $3.00 | $15.00 | 200K | $12,375 | $1.24 |
| Claude Opus 4.5 | Anthropic | $5.00 | $25.00 | 200K | $20,625 | $2.06 |
Standard list prices per million tokens, before prompt caching, batch discounts or long-context surcharges. Prices change often; check each provider’s pricing page before you commit.
Unit economics: margin and break-even
- Revenue = active users × subscription price.
- Profit = revenue − AI API cost − fixed monthly costs (hosting, tools, salaries you allocate).
- Contribution per user = price − AI cost per user.
- Break-even users = fixed costs ÷ contribution per user. If AI cost per user exceeds your price, you never break even.