LLM API cost calculator
Your monthly API bill is requests times tokens times the price per million tokens: 100,000 requests of 2,000 input and 500 output tokens cost $45.00 a month on Claude Haiku 5.5 and $3,600 on GPT-6.2 Astra. Add your startup credits to see how many months they cover.
| Model | Per 1,000 requests | Per month | $100k lasts |
|---|---|---|---|
| Claude Haiku 5.5 · Anthropic | $0.450 | $45.00 | 10+ years |
| GPT-6 Luna · OpenAI | $0.450 | $45.00 | 10+ years |
| Gemini 3.1 Flash-Lite · Google | $1.25 | $125 | 10+ years |
| Gemini 3.8 Flash · GooglePrice doubles on January 1, 2027 | $3.38 | $338 | 10+ years |
| Grok 4.3 · xAI | $3.75 | $375 | 10+ years |
| GPT-6.1 Terra · OpenAI | $4.50 | $450 | 10+ years |
| Gemini 4 Hydrogen · Google | $6.75 | $675 | 10+ years |
| Grok 4.7 · xAI | $7.00 | $700 | 10+ years |
| Claude Sonnet 5.5 · Anthropic | $9.00 | $900 | 9.2 years |
| GPT-6.2 Sol · OpenAI | $9.00 | $900 | 9.2 years |
| Gemini 4 Neon · Google | $13.50 | $1,350 | 6.1 years |
| Claude Opus 5.5 · Anthropic | $18.00 | $1,800 | 4.6 years |
| Gemini 4 Carbon · Google | $18.00 | $1,800 | 4.6 years |
| Claude Fable 5.2 · Anthropic | $36.00 | $3,600 | 2.3 years |
| GPT-6.2 Astra · OpenAI | $36.00 | $3,600 | 2.3 years |
Credits that pay for Anthropic models: Claude Startups (VC partner API credits) (Claude API credits through a partner VC); AWS Activate (pays for Claude on Amazon Bedrock, at Bedrock's prices); OpenRouter for Startups (credits usable across models on OpenRouter). See which credits you qualify for.
Standard API list prices checked 2026-12-04. Excludes tax, tool calls and cache-write charges. Months of credits are rounded down and assume usage stays flat. Most credits expire, so check the program’s expiry date too.
How the calculator works
For each model it works out the cost of one request, then multiplies by your monthly requests:
Cost per request = (uncached input tokens × input price + cached input tokens × cached price + output tokens × output price) ÷ 1,000,000
- Cached input is the share of each prompt that repeats, such as a system prompt or chat history. It is billed at the cached price, which is 2.5% to 25% of the normal input price.
- Long prompts switch to the provider’s long-context prices when the prompt passes its threshold, as on Claude Haiku, GPT and Grok models.
- Batch API applies each provider’s batch discount: Anthropic, OpenAI and Google take 50% off, and xAI takes 20% off.
- Startup credits divide your credit balance by each model’s monthly cost to show how long it lasts, rounded down. Pick a provider to see the programs that pay for its models, and click an amount to use a real program tier.
It uses standard list prices. Tax, tool calls such as web search, cache writes, priority tiers and regional endpoints are not included, and cloud marketplaces such as Amazon Bedrock, Vertex AI and Azure set their own prices.
Claude, OpenAI, Gemini and Grok API prices per million tokens
| Model | Input | Cached input | Output |
|---|---|---|---|
| Claude Fable 5.2 · Anthropic | $8 | $0.20 | $40 |
| Claude Opus 5.5 · Anthropic | $4 | $0.20 | $20 |
| Claude Sonnet 5.5 · Anthropic | $2 | $0.10 | $10 |
| Claude Haiku 5.5 · AnthropicPrompts over 100K tokens: $0.50 input, $0.05 cached, $2.50 output | $0.10 | $0.01 | $0.50 |
| GPT-6.2 Astra · OpenAIPrompts over 272K tokens: $16 input, $0.80 cached, $60 output | $8 | $0.40 | $40 |
| GPT-6.2 Sol · OpenAIPrompts over 272K tokens: $4 input, $0.20 cached, $15 output | $2 | $0.10 | $10 |
| GPT-6.1 Terra · OpenAIPrompts over 272K tokens: $2 input, $0.10 cached, $7.50 output | $1 | $0.05 | $5 |
| GPT-6 Luna · OpenAIPrompts over 272K tokens: $0.20 input, $0.02 cached, $0.75 output | $0.10 | $0.01 | $0.50 |
| Gemini 4 Carbon · Google | $4 | $0.20 | $20 |
| Gemini 4 Neon · Google | $3 | $0.15 | $15 |
| Gemini 4 Hydrogen · Google | $1.50 | $0.075 | $7.50 |
| Gemini 3.8 Flash · GooglePrice doubles on January 1, 2027 | $0.75 | $0.075 | $3.75 |
| Gemini 3.1 Flash-Lite · Google | $0.25 | $0.025 | $1.50 |
| Grok 4.7 · xAIPrompts over 200K tokens: $4 input, $1 cached, $12 output | $2 | $0.50 | $6 |
| Grok 4.3 · xAIPrompts over 200K tokens: $2.50 input, $0.40 cached, $5 output | $1.25 | $0.20 | $2.50 |
Full price lists, including older models: Claude API pricing, OpenAI API pricing, Gemini API pricing and Grok API pricing.
Worked examples
Each table shows the cheapest and the most expensive current model from each provider, at list prices without the Batch API.
A support chatbot
100,000 customer messages a month. Each request sends about 3,000 input tokens (system prompt, help-center context and chat history), 70% of which is a repeated prefix that hits the cache, and gets a 300-token answer.
| Model | Per month | Per year |
|---|---|---|
| Claude Haiku 5.5 · Anthropic | $26.10 | $313 |
| GPT-6 Luna · OpenAI | $26.10 | $313 |
| Gemini 3.1 Flash-Lite · Google | $72.75 | $873 |
| Grok 4.3 · xAI | $230 | $2,754 |
| Grok 4.7 · xAI | $465 | $5,580 |
| Gemini 4 Carbon · Google | $1,002 | $12,024 |
| Claude Fable 5.2 · Anthropic | $1,962 | $23,544 |
| GPT-6.2 Astra · OpenAI | $2,004 | $24,048 |
Google Cloud's Start tier ($2K) covers 1.9 months of Gemini 4 Carbon at this volume. See how to apply.
A coding agent
20,000 agent steps a month, about what 10 developers running 100 steps a day for 20 working days produce. Each step resends the conversation, so it carries 30,000 input tokens, 90% of them cached, and writes 1,500 output tokens.
| Model | Per month | Per year |
|---|---|---|
| Claude Haiku 5.5 · Anthropic | $26.40 | $317 |
| GPT-6 Luna · OpenAI | $26.40 | $317 |
| Gemini 3.1 Flash-Lite · Google | $73.50 | $882 |
| Grok 4.3 · xAI | $258 | $3,096 |
| Grok 4.7 · xAI | $570 | $6,840 |
| Gemini 4 Carbon · Google | $948 | $11,376 |
| Claude Fable 5.2 · Anthropic | $1,788 | $21,456 |
| GPT-6.2 Astra · OpenAI | $1,896 | $22,752 |
Anthropic's VC partner tier ($100K) covers 4.6 years of Claude Fable 5.2 at this volume, if they don't expire first. See how to apply.
A RAG document search app
300,000 questions a month. Each question sends the retrieved passages, about 6,000 input tokens that change every time so nothing is cached, and gets a 400-token answer.
| Model | Per month | Per year |
|---|---|---|
| Claude Haiku 5.5 · Anthropic | $240 | $2,880 |
| GPT-6 Luna · OpenAI | $240 | $2,880 |
| Gemini 3.1 Flash-Lite · Google | $630 | $7,560 |
| Grok 4.3 · xAI | $2,550 | $30,600 |
| Grok 4.7 · xAI | $4,320 | $51,840 |
| Gemini 4 Carbon · Google | $9,600 | $115,200 |
| Claude Fable 5.2 · Anthropic | $19,200 | $230,400 |
| GPT-6.2 Astra · OpenAI | $19,200 | $230,400 |
Google Cloud's first-year Scale credits ($100K) covers 10 months of Gemini 4 Carbon at this volume. See how to apply.
Startup credits that pay for LLM APIs
These programs cover model API bills directly or through a cloud marketplace. Most need a partner investor for the largest tiers, and the eligibility checker shows which ones you qualify for. For GPU, voice and other AI credits, see AI credits for startups.
AnthropicClaude Startups (VC partner API credits)Up to $100K in additional Claude API credits, claimed through a VC in Anthropic's partner networkNeeds an investor$100K
Amazon Web ServicesAWS ActivateUp to $200,000 in AWS Activate CreditsNeeds an investor$200K
OpenAIOpenAI for StartupsFree API credits, rate limit upgrades and time with solutions engineers for startups backed by an OpenAI VC partner (amount not published)Needs an investorUnpublished
MicrosoftMicrosoft for StartupsUp to $150,000 in Azure Startup creditsApply directly$150K
Google CloudGoogle for Startups Cloud ProgramUp to $350,000 in Google Cloud credits over two years (AI startups); up to $200,000 for other startupsNeeds an investor$350K
xAI (SpaceX Super Intelligence)Grok for StartupsCredits across Grok, Grok Build, Grok Bot and the Grok API from one balance; initial credits on approval with more unlocked after onboarding (amount not published)Apply directlyUnpublished
OpenRouterOpenRouter for StartupsUp to $3,000 in universal inference credits plus 0% processing fees (platform and BYOK) for 12 monthsNeeds an investor$3K
Once you know your API bill, put it into the startup runway calculator to see how many months your credits add to your runway.
Questions
How much does an LLM API cost per month?
It depends on tokens, not seats. At 100,000 requests a month with 2,000 input and 500 output tokens each, current list prices run from $45.00 a month on Claude Haiku 5.5 to $3,600 on GPT-6.2 Astra.
How do I calculate API cost from tokens?
Multiply input tokens by the input price and output tokens by the output price, both per million tokens, add them, and multiply by your monthly requests. For example, 2,000 input and 500 output tokens on Grok 4.7 at $2 and $6 per million cost $0.007 per request, or $700 for 100,000 requests.
Why are output tokens more expensive than input tokens?
Generating a token takes more compute than reading one. Output costs 2 to 6 times the input price across the models in this calculator, so long answers and reasoning output drive most bills.
How much does prompt caching save?
Cached input costs between 2.5% and 25% of the normal input price, depending on the model. Chatbots and agents that resend the same system prompt or history save the most. Some providers also charge to write to the cache, which this calculator leaves out.
Is the Batch API cheaper?
Yes, if you can wait for results instead of getting them in real time. Anthropic, OpenAI and Google take 50% off, and xAI takes 20% off.
How long will my startup credits last?
Divide your credits by your monthly cost. In the coding agent example below, Anthropic's VC partner tier ($100K) covers 4.6 years of Claude Fable 5.2 at this volume, if they don't expire first. Credits also expire, so the expiry date can end them sooner.
Which startup programs give LLM API credits?
The model providers' own programs are Claude Startups (VC partner API credits): up to $100K, through a partner investor; OpenAI for Startups: amount not published, through a partner investor; Google for Startups Cloud Program: up to $350K, through a partner investor; Grok for Startups: amount not published, no investor needed. AWS Activate credits also pay for Claude on Amazon Bedrock, and Microsoft for Startups credits cover Azure OpenAI.
Related guides
- Claude API pricing (December 2026): cost per million tokens
Claude API pricing for December 2026: Opus 5.5 is $4 in and $20 out per million tokens, Sonnet 5.5 $2 and $10, Haiku from $0.10. Caching, batch and a calculator.
- OpenAI API pricing (December 2026): cost per million tokens
OpenAI API pricing for December 2026: GPT-6.2 Astra costs $8 input and $40 output per million tokens. Every model, cached input, Batch and a worked cost example.
- Gemini API pricing (December 2026): every model, free tier and batch
Gemini API pricing per million tokens, from $0.10 (2.5 Flash-Lite) to $20 output (Gemini 4 Carbon). Free tier, batch at 50% off, caching and a cost calculator.
- Grok API (December 2026): key, pricing and free xAI credits
Grok 4.7 costs $2 per million input tokens and $6 output on the xAI API. How to get a key, every model price, rate limits, and how to get free Grok API credits.
- DeepSeek API pricing (December 2026): every model and token price
DeepSeek API pricing: deepseek-flash costs $0.30 per million input tokens and $1.20 output at peak, half off-peak. V4 Pro prices, caching and a monthly bill.
- Claude credits: every legitimate way to get Anthropic API credits
Claude for Startups is closed to new applicants, but founders backed by a partner VC may still get up to $100K in Claude API credits. Here is every other route too.
- OpenAI credits for startups: every legitimate way to get them
How to get OpenAI credits in 2026: OpenAI for Startups via VC partners, up to $150K through Azure, AWS Bedrock, ChatGPT plan credits and research grants.
- AI credits for startups: every free AI credit program (2026)
Free AI credits for startups from OpenAI, Anthropic, xAI, Google, GPU clouds, voice APIs and vector DBs. Which need a VC and which you can apply for directly.
- Free LLM APIs (December 2026): 21 providers, limits checked
A dated tracker of 21 free LLM APIs: Gemini, Groq, OpenRouter, Cloudflare, NVIDIA and more, with rate limits, card rules and data use checked December 5, 2026.