Skip to content

LLM API cost calculator

Your tokens per month, priced on every model, route and gateway.

Cached input is billed at the model's cache-read price where one is published; batch applies only where the lab sells a batch tier.

Gemini 3.7 Flash

$0.75 in, $3.75 out per 1M

$151.35
per month, direct

On a cloud or data platform

  • Google Vertex AI (global-flex)$0.375 in, $1.88 out per 1M$91.88
  • Google Vertex AI (global)$0.75 in, $3.75 out per 1M$183.75
  • Google Vertex AI (global-priority)$1.35 in, $6.75 out per 1M$330.75

Platform prices without caching or batch discounts.

Through a gateway

Monthly bill by model

The 24 cheapest of 253. Bars are on a log scale. Tap a model to price it through each gateway.

Questions

How do I estimate my monthly LLM API cost?

Multiply the millions of input tokens you send by the input price, add the millions of output tokens times the output price, and subtract the discount on any input served from cache. The calculator does this for every model at once.

How many tokens is a word?

For English text, about 1.3 tokens per word, or roughly 750 words per 1,000 tokens. Code and other languages use more tokens per word.

How much does prompt caching save?

Cached input is typically billed at 10% to 50% of the normal input price, depending on the provider. Long, repeated system prompts and documents benefit most.

What is the Batch API discount?

OpenAI, Anthropic, Google, Mistral and AWS Bedrock sell asynchronous batch processing at about half price, with results returned within 24 hours.

List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.

Weekly: LLM API list prices that changed, Thursday mornings.