Skip to the programs
startupcredits.fyi

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.

ModelPer 1,000 requestsPer month$100k lasts
Claude Haiku 5.5 · Anthropic$0.450$45.0010+ years
GPT-6 Luna · OpenAI$0.450$45.0010+ years
Gemini 3.1 Flash-Lite · Google$1.25$12510+ years
Gemini 3.8 Flash · GooglePrice doubles on January 1, 2027$3.38$33810+ years
Grok 4.3 · xAI$3.75$37510+ years
GPT-6.1 Terra · OpenAI$4.50$45010+ years
Gemini 4 Hydrogen · Google$6.75$67510+ years
Grok 4.7 · xAI$7.00$70010+ years
Claude Sonnet 5.5 · Anthropic$9.00$9009.2 years
GPT-6.2 Sol · OpenAI$9.00$9009.2 years
Gemini 4 Neon · Google$13.50$1,3506.1 years
Claude Opus 5.5 · Anthropic$18.00$1,8004.6 years
Gemini 4 Carbon · Google$18.00$1,8004.6 years
Claude Fable 5.2 · Anthropic$36.00$3,6002.3 years
GPT-6.2 Astra · OpenAI$36.00$3,6002.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

ModelInputCached inputOutput
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.

ModelPer monthPer 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.

ModelPer monthPer 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.

ModelPer monthPer 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.

  1. 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
  2. Amazon Web ServicesAWS ActivateUp to $200,000 in AWS Activate CreditsNeeds an investor$200K
  3. 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
  4. MicrosoftMicrosoft for StartupsUp to $150,000 in Azure Startup creditsApply directly$150K
  5. 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
  6. 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
  7. 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.