Home / API cost calculator

LLM API cost calculator

Estimate what your app will spend each month on every major model.

Start from a preset

30-day month, list prices in USD per 1M tokens. Batch and prompt-cache discounts are not applied.

–

How to estimate your inputs

Count the text you send with each request: the system prompt, conversation history and any retrieved documents. That total is your input tokens. Output tokens are the length of a typical answer.

A short chatbot reply is a few hundred output tokens. Retrieval apps often send several thousand input tokens per request because they include document excerpts. Coding agents send whole files and can reach tens of thousands.

Frequently asked questions

How is the monthly cost calculated?

Requests per day × 30 days × (input tokens × input price + output tokens × output price), with prices per 1 million tokens.

What is a token?

A token is a chunk of text the model reads or writes. In English, 1,000 tokens is roughly 750 words.

Why are output tokens more expensive?

Generating text takes more compute than reading it, so most vendors charge several times more per output token.

Does this include discounts?

No. Batch processing and prompt caching can cut costs considerably; the calculator uses standard list prices.