---
title: "LLM API cost calculator: per request, day and month | BroadRouter"
description: "Free LLM API cost calculator. Enter tokens, traffic, cache hits and reasoning, then compare BroadNet models with 428 others, from GPT and Claude to Llama."
url: https://broadrouter.com/tools/llm-api-cost-calculator/
lang: en
updated: 2026-11-16
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# LLM API cost calculator

Updated 2026-11-16

**In short:** LLM API cost per request = (uncached input × input price + cached input × cached price + (output + reasoning) × output price) ÷ 1,000,000, prices per million tokens. Multiply by monthly requests. This calculator does it for BroadNet's models and 428 others at providers' own prices, and shows when a flat plan is cheaper.

Free, no sign-up, runs in your browser: nothing you type is sent anywhere.

WorkloadPresetCustomSupport chatbotRAG over documentsCoding agent (one developer)Summarise long documentsClassify or tag textRead invoices (vision)Requests per dayDays per monthCount text inTokensWords (converted to tokens)Characters (converted to tokens)Kind of textEnglish proseArabic (Modern Standard)Gulf ArabicEgyptian ArabicLevantine Arabic (North)Arabizi (Arabic in Latin letters)FrenchSpanishHindiUrduChinese (Simplified)Code: PythonCode: JavaScriptCode: SQLJSONRussian (small v1 sample)Input tokens per requestInput served from cache, %Output tokens per requestReasoning tokens per request

Add any model (428 models, providers' own prices)

### Your current model (optional)

NameInput, per 1MCached input, per 1MOutput, per 1M

Cheapest for this workload: BroadNet Gemma 4 VL 26B at $12.96 a month ($0.00022 per request).

| Model | Per request | Per day | Per month |
| --- | --- | --- | --- |
| **BroadNet Gemma 4 VL 26B** cheapest · BroadNet Inference price | $0.00022 | $0.43 | $12.96 |
| **DeepSeek V4.1 Flash** · BroadNet Inference price | $0.00027 | $0.53 | $15.96 |
| **Qwen3.8 27B** · BroadNet Inference price | $0.00080 | $1.59 | $47.71 |
| **GLM 5.3** · BroadNet Inference price | $0.0017 | $3.32 | $99.70 |

Flat plan check: per-token DeepSeek V4.1 Flash ($15.96 a month) is cheaper than the Full Moon plan ($60.00) at this volume.

108 million tokens a month (90M input, 18M output).

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-llm-api-cost-calculator&utm_content=tool) ·

BroadNet rows use BroadNet Inference's published per-1M-token prices, synced 2026-11-14, before tax. Models added from the list use their cheapest standard price, read from that provider's own pricing page (checked 2026-11-15; [every provider per model](https://broadrouter.com/llm-api-pricing/)). A model with no cached price bills cached input at the input price. Pay-as-you-go keys allow 4 requests in flight and 30 a minute. BroadNet Gemma 4 VL 26B is also sold as a flat $0.50 hourly key.

[Report a wrong price or number](mailto:info@broadnet.ai?subject=Wrong%20price%20or%20number%20on%20LLM%20API%20cost%20calculator&body=Page%3A%20https%3A%2F%2Fbroadrouter.com%2Ftools%2Fllm-api-cost-calculator%2F%0A%0AWhat%20looks%20wrong%20(model%2C%20figure%20shown%2C%20correct%20figure%20and%20a%20source%20link%20if%20you%20have%20one)%3A%0A) (email to info@broadnet.ai, with this page's link and your inputs filled in).

## How it works

1.  Pick a preset close to your workload, or type your own traffic: requests per day and days per month.
2.  Enter the average input tokens per request and the share served from cache, then visible output tokens and any reasoning tokens.
3.  Optionally add any of 428 other models by name (each at its cheapest standard price from the provider's own page), or your current model with its own prices per 1M tokens.
4.  Read the table: cost per request, per day and per month for every BroadNet model, plus yours if added, cheapest first. Copy the link or download CSV to share the estimate.

## The formula

```
cost per request = ( input × (1 − cache) × input_price
                   + input × cache × cached_price
                   + (output + reasoning) × output_price ) / 1,000,000
monthly cost     = cost per request × requests per day × days
```

Prices are per one million tokens. A 2,000-token prompt is 0.002 million tokens, so it costs 0.002 times the input price. Reasoning tokens are billed as output. See [input and output tokens](https://broadrouter.com/glossary/input-and-output-tokens/), [cached input tokens](https://broadrouter.com/glossary/cached-input-tokens/) and [reasoning tokens](https://broadrouter.com/glossary/reasoning-tokens/).

## Typical token counts

| Workload | Input / request | Cache | Output / request |
| --- | --- | --- | --- |
| Support chatbot | 1,500 | 60% | 300 |
| RAG over documents | 8,000 | 30% | 500 |
| Coding agent (one developer) | 40,000 | 85% | 2,000 (incl. reasoning) |
| Summarise long documents | 30,000 | 0% | 1,000 |
| Classify or tag text | 400 | 70% | 20 |
| Read invoices (vision) | 2,500 | 20% | 600 |

## Compare against 428 other models

"Add any model" loads a 428-model price list (about 32 KB) only when you use it. Each model comes in at its cheapest standard-tier price, read from the provider's own pricing page by 41 providers in all, and the row names that provider; batch, flex and priority tiers and free rows are left out. The [LLM API pricing](https://broadrouter.com/llm-api-pricing/) pages list every provider's price with its source. Share a comparison with `?model=` in the link, for example [Claude Sonnet 5.5 and GPT-6 Luna](https://broadrouter.com/tools/llm-api-cost-calculator/?model=claude-sonnet-5.5,gpt-6-luna).

These are starting points, not measurements. Log the `usage` object from a week of real traffic, including `prompt_tokens_details.cached_tokens`, and use those averages.

## Questions

### How is LLM API cost calculated?

Providers bill per million tokens, with separate prices for input, cached input and output. Cost per request = uncached input × input price + cached input × cached price + (output + reasoning) × output price, each divided by 1,000,000. Multiply by requests per day and days per month.

### Do reasoning tokens cost money?

Yes. Reasoning models write hidden "thinking" tokens before the answer. They are billed as output tokens even though you do not see them, so a short answer can cost far more than its length suggests. Add them in the reasoning field. [Why reasoning can empty a reply](https://broadrouter.com/guides/reasoning-tokens-empty-response/).

### What is a cache hit and why does it lower cost?

When the start of a prompt matches a recent request, the provider reads it from cache and bills it at the cached-input price, which is much lower. Agents and chatbots that resend the same system prompt and history get high cache rates. [How to raise your cache rate](https://broadrouter.com/blog/cached-input-tokens-explained/).

### How many tokens is 1,000 words?

About 1,290 tokens for English prose, by our measurement across five real tokenizers, so one token is about 0.78 words. Modern Standard Arabic is about 2,080 tokens per 1,000 words and Python code about 2,126. See the [tokenizer efficiency data](https://broadrouter.com/data/tokenizer-efficiency/), or count your own text with the [token counter](https://broadrouter.com/tools/token-counter/).

### When is a flat plan cheaper than paying per token?

For DeepSeek V4.1 Flash, the Full Moon plan costs $60 per session per month with no token meter; one session runs one request at a time. When the monthly per-token cost for DeepSeek V4.1 Flash passes that price, the calculator says so. [The break-even math](https://broadrouter.com/blog/flat-rate-vs-pay-per-token-llm-api/).

### Can I compare GPT, Claude, Gemini, Llama or Kimi prices here?

Yes. Use "Add any model" to search 428 models, from GPT, Claude, Gemini and Grok to DeepSeek, Qwen, GLM, Kimi, Llama and Mistral. Each joins the table at its cheapest standard price, read from that provider's own pricing page (41 providers, checked 2026-11-15), and the row names the provider. Every provider's price for each model is on the [LLM API pricing](https://broadrouter.com/llm-api-pricing/) pages.

## Go deeper

-   [Flat-rate vs pay-per-token: the break-even math](https://broadrouter.com/blog/flat-rate-vs-pay-per-token-llm-api/)
-   [Cached input tokens: how to cut an LLM API bill](https://broadrouter.com/blog/cached-input-tokens-explained/)
-   [BroadNet Inference prices and plans](https://broadrouter.com/pricing/)
-   [Real API cost by language: Arabic, Hindi, code](https://broadrouter.com/data/real-cost-by-language/)
-   [Model vs model comparisons](https://broadrouter.com/compare/)
-   [LLM API pricing: every provider for 60+ models](https://broadrouter.com/llm-api-pricing/)

## More free tools

-   [**Speech-to-text cost calculator**Hours, calls or voice notes to a monthly transcription bill, against your current provider.](https://broadrouter.com/tools/speech-to-text-cost-calculator/)
-   [**LLM token counter**Exact token counts with each model's real tokenizer, with a token view and cost.](https://broadrouter.com/tools/token-counter/)
-   [**Arabic token counter**Arabic vs English token counts per tokenizer: the "Arabic tax" in tokens and money.](https://broadrouter.com/tools/arabic-token-counter/)
-   [**Tokens to words converter**Tokens ↔ words ↔ characters ↔ pages, by language and content type.](https://broadrouter.com/tools/tokens-to-words/)
-   [**Context window calculator**Will it fit? Window used per model, room left for output, cost to send.](https://broadrouter.com/tools/context-window-calculator/)
-   [**Flat-rate vs per-token LLM cost calculator**Break-even between an unlimited plan and paying per token, per agent.](https://broadrouter.com/tools/flat-rate-vs-per-token-calculator/)
-   [**Prompt caching savings calculator**Bill with and without caching, by prefix share and hit rate.](https://broadrouter.com/tools/prompt-caching-calculator/)
-   [**Image token calculator**Tokens and cost per image under each model's documented rule. Drop an image; nothing is uploaded.](https://broadrouter.com/tools/image-token-calculator/)
-   [**Self-hosting vs API cost calculator**GPU rental against your current API and BroadNet per-token and flat-plan prices: cost per 1M tokens and break-even volume.](https://broadrouter.com/tools/self-hosting-vs-api-calculator/)
-   [**Embedding cost calculator**Index, update and query costs for a corpus at OpenAI, Google, Voyage, Mistral and Jina list prices.](https://broadrouter.com/tools/embedding-cost-calculator/)
-   [**LLM rate limit and concurrency calculator**Which limit binds first: RPM, TPM or concurrency, with Little's law.](https://broadrouter.com/tools/llm-rate-limit-calculator/)
-   [**JSON schema generator for LLM structured output**Sample JSON to strict schema, Pydantic, Zod and a ready request.](https://broadrouter.com/tools/json-schema-generator/)
-   [**OpenAI-compatible API request builder**One request, copied as curl, Python, Node or the OpenAI SDKs.](https://broadrouter.com/tools/api-request-builder/)
-   [**Audio file splitter for speech-to-text limits**Chunk count, overlap and copy-ready ffmpeg commands to fit a transcription file-size limit.](https://broadrouter.com/tools/audio-splitter-ffmpeg/)
-   [**Agent run cost estimator**Context growth per step, total tokens and cost of one agent run, with a DeepSeek session comparison.](https://broadrouter.com/tools/agent-run-cost-estimator/)
-   [**OpenAI to BroadNet migration helper**Paste OpenAI SDK code; get base URL, key and model edits, a diff and the checks that remain.](https://broadrouter.com/tools/openai-to-broadnet-migration/)
-   [**Arabic text normalizer**Tashkeel, tatweel, alef, ya, ta marbuta, digits and invisible characters, with a matching Python function.](https://broadrouter.com/tools/arabic-text-normalizer/)
-   [**RAG chunking calculator**Chunks, embedding tokens, input per query, context check and monthly LLM cost for a RAG pipeline.](https://broadrouter.com/tools/rag-chunking-calculator/)
-   [**max\_tokens calculator for reasoning models**Answer length + reasoning budget + margin = a max\_tokens that does not cut the answer off.](https://broadrouter.com/tools/reasoning-token-budget/)
-   [**LLM batch job planner**Run time, binding limit, cost per model and the flat sessions needed to finish a big job by a deadline.](https://broadrouter.com/tools/llm-batch-job-planner/)
-   [**LLM JSON output validator**Parse errors by line and column, safe repairs, cut-off detection and JSON Schema checks for model output.](https://broadrouter.com/tools/llm-json-output-validator/)
-   [**Prompt token diff**Two prompt versions side by side: changed lines, exact token delta and the monthly cost difference.](https://broadrouter.com/tools/prompt-token-diff/)

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-llm-api-cost-calculator&utm_content=page-cta) ·

**Sources**

-   [BroadNet Inference machine-readable prices (pricing.json)](https://inference.broadnet.ai/pricing.json?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-llm-api-cost-calculator&utm_content=sources)
-   [AI21 Labs: pricing (checked 2026-11-15)](https://www.ai21.com/pricing/)
-   [AkashML: pricing (checked 2026-11-15)](https://akashml.com/#pricing)
-   [Alibaba Cloud Model Studio: pricing (checked 2026-11-14)](https://www.alibabacloud.com/help/en/model-studio/model-pricing)
-   [Amazon Bedrock: pricing (checked 2026-11-14)](https://aws.amazon.com/bedrock/pricing/)
-   [Amazon Nova (Bedrock): pricing (checked 2026-11-14)](https://aws.amazon.com/bedrock/pricing/)
-   [Anthropic: pricing (checked 2026-11-14)](https://platform.claude.com/docs/en/about-claude/pricing)
-   [Baidu: pricing (checked 2026-11-15)](https://intl.cloud.baidu.com/en/doc/qianfan/s/Jm8r1826a-intl-en)
-   [Baseten: pricing (checked 2026-11-14)](https://www.baseten.co/pricing/)
-   [Cerebras: pricing (checked 2026-11-14)](https://www.cerebras.ai/pricing)
-   [Chutes: pricing (checked 2026-11-15)](https://chutes.ai/pricing)
-   [Cloudflare Workers AI: pricing (checked 2026-11-14)](https://developers.cloudflare.com/workers-ai/platform/pricing/)
-   [Cohere: pricing (checked 2026-11-14)](https://cohere.com/pricing)
-   [CoreWeave Forge (formerly W&B Inference): pricing (checked 2026-11-15)](https://coreweave.com/forge-pricing/inference-agents)
-   [Crusoe Cloud: pricing (checked 2026-11-15)](https://www.crusoe.ai/cloud/pricing#Serverless-Inference)
-   [DeepInfra: pricing (checked 2026-11-14)](https://deepinfra.com/pricing)
-   [DeepSeek: pricing (checked 2026-11-14)](https://api-docs.deepseek.com/quick_start/pricing)
-   [DigitalOcean Gradient (Serverless Inference): pricing (checked 2026-11-14)](https://docs.digitalocean.com/products/inference/details/pricing/)
-   [Featherless: pricing (checked 2026-11-15)](https://featherless.ai/pricing)
-   [Fireworks AI: pricing (checked 2026-11-14)](https://fireworks.ai/pricing)
-   [FriendliAI: pricing (checked 2026-11-15)](https://friendli.ai/pricing)
-   [GMI Cloud: pricing (checked 2026-11-15)](https://www.gmicloud.ai/en/models/maas)
-   [Google (Gemini API): pricing (checked 2026-11-14)](https://aistudio.google.com/docs/pricing)
-   [Google Cloud Vertex AI: pricing (checked 2026-11-14)](https://cloud.google.com/model-garden/pricing)
-   [Groq: pricing (checked 2026-11-14)](https://console.groq.com/docs/models)
-   [Hyperbolic: pricing (checked 2026-11-14)](https://www.hyperbolic.ai/inference)
-   [IBM watsonx.ai: pricing (checked 2026-11-15)](https://www.ibm.com/products/watsonx-ai/pricing)
-   [Microsoft Azure (Azure OpenAI + Foundry Models): pricing (checked 2026-11-14)](https://azure.microsoft.com/en-us/pricing/details/azure-openai/)
-   [MiniMax: pricing (checked 2026-11-14)](https://platform.minimax.io/docs/pricing/overview)
-   [Mistral AI: pricing (checked 2026-11-14)](https://docs.mistral.ai/inference/pricing)
-   [Moonshot AI (Kimi): pricing (checked 2026-11-14)](https://platform.kimi.ai/docs/pricing/chat)
-   [Novita AI: pricing (checked 2026-11-14)](https://novita.ai/pricing)
-   [Nscale: pricing (checked 2026-11-15)](https://docs.nscale.com/docs/ai-services/models)
-   [OpenAI: pricing (checked 2026-11-14)](https://developers.openai.com/api/docs/pricing)
-   [Parasail: pricing (checked 2026-11-14)](https://www.parasail.io/pricing)
-   [Perplexity: pricing (checked 2026-11-15)](https://docs.perplexity.ai/docs/getting-started/pricing)
-   [SambaNova Cloud: pricing (checked 2026-11-14)](https://cloud.sambanova.ai/plans/pricing)
-   [SiliconFlow: pricing (checked 2026-11-14)](https://www.siliconflow.com/pricing)
-   [Together AI: pricing (checked 2026-11-14)](https://www.together.ai/pricing)
-   [Venice: pricing (checked 2026-11-15)](https://docs.venice.ai/pricing)
-   [xAI: pricing (checked 2026-11-14)](https://docs.x.ai/developers/pricing)
-   [Z.ai: pricing (checked 2026-11-14)](https://docs.z.ai/guides/overview/pricing)
