Free developer tool · No signup

LLM API Cost Calculator

Compare token pricing across GPT, Claude, Gemini, DeepSeek and Llama, and estimate what your chatbot, RAG app or agent could cost per request, per day and per month. Rates reviewed .

Start from a common workload

Prompt + context sent to the model

Tokens the model generates back

Per day (billed ×30)

Show total per:
≈ 1 token ≈ 0.75 words · 1,000 words ≈ 1,300 tokens
Lowest estimate among the models shown
GPT-6 Luna $30.75/month
Up to $2,429/month cheaper than Claude Fable 5.2
ModelTierIn $/1MOut $/1MCost / requestTotal / month
GPT-6 Lunacheapest
OpenAI
Efficient$0.1$0.5$0.00020
$30.75
DeepSeek V4.1 Flash 1017
DeepSeek (OpenRouter)
Open / Value$0.15$0.6$0.00027
$40.50
Llama 3.3 70B Instruct
Meta (OpenRouter)
Open / Value$0.71$0.71$0.00075
$112
Gemini 4 Hydrogen
Google
Balanced$1.5$7.5$0.00308
$461
GPT-6.2 Sol
OpenAI
Balanced$2$10$0.00410
$615
Claude Sonnet 5.5
Anthropic
Balanced$2$10$0.00410
$615
Gemini 4 Neon
Google
Flagship$3$15$0.00615
$923
Claude Opus 5.5
Anthropic
Flagship$4$20$0.00820
$1,230
GPT-6.2 Astra
OpenAI
Flagship$8$40$0.0164
$2,460
Claude Fable 5.2
Anthropic
Reasoning$8$40$0.0164
$2,460

Rates are for text tokens. DeepSeek and Llama use the linked OpenRouter listings; other rows use provider-direct base rates. Check your region, context tier and billing terms before budgeting. Reasoning tokens may count as billable output.

How LLM API pricing works

The endpoints compared here quote separate prices per million input and output tokens. Use token counts from representative requests: the same text can have different token counts across models and languages.

  • Input tokens - everything you send: the system prompt, chat history, and any retrieved context (RAG).
  • Output tokens - everything the model generates, including any reasoning tokens billed by the endpoint.
cost = (in_tokens / 1e6 × in_price)
    + (out_tokens / 1e6 × out_price)
total = cost × requests

For a document summarizer, input length can matter more than answer length. Try your longest document as well as a typical one, then compare cost per accepted summary rather than cost per attempt.

Provider documentation and hosted pricing sources

Frequently asked questions

How is LLM API cost calculated?

Multiply input and billable output tokens by their respective rates per million, divide by one million, then multiply by request count. A monthly estimate here assumes 30 days.

Which model is cheapest for my workload?

Enter your input length, output length and daily request count. The table sorts the selected model lineup by estimated spend. A lower token bill does not establish that a model will complete the task successfully.

What do these estimates exclude?

These are dated text-token rates, not subscription fees or binding quotes. Tool calls, storage, retries, caching, batch discounts and regional terms may change the bill. Include billable reasoning tokens in your output estimate. DeepSeek and Llama prices here are for the linked OpenRouter endpoints.

Learn to build cost-efficient AI systems

Estimating cost is step one. Explore the free guides below to understand agent architecture, model selection and implementation trade-offs.