AI API cost calculator
Describe an AI feature and see what it costs per user per month on 17 models from Anthropic, OpenAI, Google, DeepSeek and Mistral, and how much of your seat price it takes. Every price is from the provider's own pricing page, checked November 19, 2026.
Results
Claude Sonnet 5.5: cost per user, per month
$1.63
5.4% of a $30 seat
$1,630 a month for 1,000 users; $0.0082 a request.
Gross margin with the feature
74.6%
From 80%, if the price stays the same.
Cheapest model
$0.08
Claude Haiku 5.5, per user per month.
Most expensive
$6.52
GPT-6.2 Astra: 79 times the cheapest.
On Claude Sonnet 5.5 this feature costs $1.63 per user a month, 5.4% of what each user pays, taking gross margin from 80% to 74.6%.
Every model, cost per user per month
Colors mark the provider; the model you plan on has its name in blue. A token is not the same size at every provider: each tokenizer splits the same text differently, so treat close results as a tie and measure your own prompts.
How the cost of a request is worked out
A provider bills each request for the tokens you send it (input) and the tokens it writes back (output), at a price per million tokens. Input that repeats from one request to the next, such as system instructions or a shared document, can be served from a prompt cache at a fraction of the input price. So the cost of one request is:
(fresh input tokens x input price + cached input tokens x cache price + output tokens x output price) / 1,000,000
Multiply by requests per user for the monthly cost per user, and divide by what each user pays you for the share of the seat it takes. That share comes straight off your gross margin unless you raise the price.
A worked example
A chat reply with 3,000 input tokens, half of them cached, and 500 output tokens, used 200 times a month per user. On Claude Sonnet 5.5 ($2 input, $0.10 cached and $10 output per million tokens), one request is 1,500 x $2 + 1,500 x $0.10 + 500 x $10, divided by a million: $0.0082. That is $1.63 per user per month, 5.4% of a $30 seat, taking an 80% gross margin to 74.6%. The same feature costs $0.08 on Claude Haiku 5.5 and $6.52 on GPT-6.2 Astra.
Published API prices, per million tokens
Pay-as-you-go list prices for each provider's current generally available models, as published on November 19, 2026. Cache is the price of a cache hit; batch is the discount for the provider's batch API, where it has one.
| Model | Input | Output | Cache hit | Batch |
|---|---|---|---|---|
| Claude Fable 5.2 | $8.00 | $40.00 | $0.20 | 50% off |
| Claude Opus 5.5 | $4.00 | $20.00 | $0.20 | 50% off |
| Claude Sonnet 5.5 | $2.00 | $10.00 | $0.10 | 50% off |
| Claude Haiku 5.5 | $0.10 | $0.50 | $0.010 | 50% off |
| GPT-6.2 Astra | $8.00 | $40.00 | $0.40 | 50% off |
| GPT-6.2 Sol | $2.00 | $10.00 | $0.10 | 50% off |
| GPT-6.1 Terra | $1.00 | $5.00 | $0.050 | 50% off |
| GPT-6 Luna | $0.10 | $0.50 | $0.010 | 50% off |
| Gemini 4 Carbon | $4.00 | $20.00 | $0.20 | 50% off |
| Gemini 4 Neon | $3.00 | $15.00 | $0.15 | 50% off |
| Gemini 4 Hydrogen | $1.50 | $7.50 | $0.075 | 50% off |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 | $0.030 | 50% off |
| DeepSeek V4 Pro | $1.32 | $3.96 | $0.044 | None |
| DeepSeek Flash (V4.1) | $0.30 | $1.20 | $0.0060 | None |
| Mistral Large 4 | $0.70 | $2.10 | $0.070 | 50% off |
| Mistral Small 4 | $0.15 | $0.60 | Not listed | 50% off |
| Ministral 3 14B | $0.20 | $0.20 | Not listed | 50% off |
Some prices rise for very long prompts: OpenAI's models charge double for input and 1.5 times for output on the whole request once the prompt passes 272,000 tokens, and Claude Haiku 5.5 charges more above 100,000. The calculator applies those rates when your input is that long. DeepSeek charges half price outside its peak hours (01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays); the table and the calculator use the peak price.
What AI does to a SaaS company's gross margin
Software has been sold at gross margins around 80%: Benchmarkit's 2026 survey of private SaaS companies puts the median subscription gross margin at 80% for 2025, where it has sat for four years. AI features add a cost that grows with every request, and the margins of AI products show it. In ICONIQ's mid-2026 survey of about 300 executives, AI products ran at a 45% gross margin on average in 2025, with 53% expected for 2026. The median target among 230 software companies Growth Unhinged surveyed in May 2026 was about 50% for AI features. Bessemer found margins near 25% at the fastest-growing AI startups it studied, and around 60% at steadier ones.
That gap is why the share of the seat price matters more than the absolute cost. A feature that takes 3% of the seat is a rounding error; one that takes 30% turns an 80% margin business into a 50% one.
How to make an AI feature cheaper to run
- Cache the part of the prompt that repeats. Cache hits cost a tenth or less of the input price at most providers here, and 2.5% of it on Claude Fable 5.2. Anthropic and OpenAI charge 1.25 times the input price to write to the cache on their shortest cache lifetimes; Google's Gemini 4 models cache automatically with no write fee.
- Batch what does not need an answer now. Anthropic, OpenAI, Google and Mistral take 50% off for requests sent through their batch APIs, which return results within hours.
- Send easy requests to small models. Claude Haiku 5.5 and GPT-6 Luna cost an eightieth of their makers' flagships per input token; at Google and Mistral the gap is smaller, but still several times. Routing classification and extraction to a small model and keeping the flagship for hard requests is usually the largest saving available.
- Cap the output. Output costs five times input or more on most models here, so a limit on response length, or on reasoning, moves the bill more than trimming the prompt.
Is a token the same at every provider?
No. Each provider splits text into tokens with its own tokenizer, so the same prompt is a different number of tokens at each. Anthropic notes that its tokenizer for Claude 4.7 and later produces about 30% more tokens for the same text than its previous one. Treat results within about a third of each other as a tie, and measure your own prompts: every provider reports the tokens used by each request.
Sources
- Claude API pricing, Anthropic (November 19, 2026)
- API pricing, OpenAI (November 19, 2026)
- Gemini API pricing, Google (November 19, 2026)
- Models and pricing, DeepSeek (November 19, 2026)
- Mistral Large 4, Mistral AI (November 19, 2026)
- 2026 SaaS and AI Metrics Benchmarks, Benchmarkit (June 1, 2026)
- 2026 State of AI Report, ICONIQ (July 1, 2026) Survey of about 300 executives.
- The state of B2B monetization in 2026, Growth Unhinged (May 13, 2026)
- The State of AI 2025, Bessemer Venture Partners (August 13, 2025)