Skip to content

Free tool

LLM API cost calculator

See what your prompt costs on every major AI model. Enter your tokens and monthly calls, and the table ranks 369+ models from cheapest to most expensive.

Your workload

Input is your prompt plus the user's message. Output is the answer. About 4 characters is 1 token.

Start from:
Estimate input tokens from my prompt

Runs in your browser; nothing is sent anywhere.

Cheapest

$0.200

Upstage: Solar Mini 4.5 (Preview) · per month

Typical (median)

$9.88

across 355 models · per month

Most expensive

$780

OpenAI: GPT-5.5 Pro · 3,900× the cheapest

Cost by model, cheapest first

Monthly cost of 10,000 calls on each model
ModelIn / 1M tokensOut / 1M tokensPer callPer month
Upstage: Solar Mini 4.5 (Preview)upstage/solar-mini-4-5$0.010$0.040$0.00002$0.200
inclusionAI: Ling 3.0 Tinyinclusionai/ling-3.0-tiny$0.015$0.045$0.000025$0.255
ScaleDown: Extractscaledown/extract$0.040$0$0.000032$0.320
ScaleDown: Summarizescaledown/summarize$0.040$0$0.000032$0.320
Mistral: Mistral Nemomistralai/mistral-nemo$0.029$0.030$0.000032$0.322
inclusionAI: Ling 3.0 Flashinclusionai/ling-3.0-flash$0.021$0.063$0.000036$0.357
Google: Gemma 3 4Bgoogle/gemma-3-4b-it$0.040$0.050$0.000047$0.470
Sao10K: Llama 3 8B Lunarissao10k/l3-lunaris-8b$0.040$0.050$0.000047$0.470
Nex AGI: Nex-N2.5-Mininex-agi/nex-n2.5-mini$0.025$0.100$0.00005$0.500
Z.ai: GLM Flash Latest~z-ai/glm-flash-latest$0.036$0.081$0.000053$0.529
OpenAI: gpt-oss-20bopenai/gpt-oss-20b$0.030$0.130$0.000063$0.630
Qwen: Qwen3.7 Flashqwen/qwen3.7-flash$0.030$0.130$0.000063$0.630
Meta: Llama 3.1 8B Instructmeta-llama/llama-3.1-8b-instruct$0.050$0.080$0.000064$0.640
Mistral: Mistral Small 3mistralai/mistral-small-24b-instruct-2501$0.050$0.080$0.000064$0.640
Inference.net: Schematron V2 Turboinference-net/schematron-v2-turbo$0.030$0.150$0.000069$0.690
Amazon: Nova Micro 1.0amazon/nova-micro-v1$0.035$0.140$0.00007$0.700
Tencent: Hy4 flashtencent/hy4-flash$0.035$0.140$0.00007$0.702
Cohere: Command R7B (12-2024)cohere/command-r7b-12-2024$0.037$0.150$0.000075$0.750
DeepSeek: DeepSeek V4 Flash Latest~deepseek/deepseek-v4-flash-latest$0.045$0.136$0.000077$0.770
Google: Gemma 3 12Bgoogle/gemma-3-12b-it$0.050$0.150$0.000085$0.850
Tencent: Hy-MT2-1.8Btencent/hy-mt2-1.8b$0.044$0.177$0.000088$0.883
IBM: Granite 4.2 8Bibm-granite/granite-4.2-8b$0.060$0.150$0.000093$0.930
Microsoft: Phi 4microsoft/phi-4$0.070$0.140$0.000098$0.980
Upstage: Solar Mini 4upstage/solar-mini4$0.050$0.200$0.0001$1.00
DeepSeek: DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flash$0.051$0.203$0.0001$1.01

List prices from OpenRouter, updated hourly. Free and rate-limited variants are left out because they are not meant for production traffic. Prompt caching, batch discounts and long-context surcharges are not included.

How LLM pricing works

Every call has two parts. Input is everything you send: your instructions, any documents, and the user's message. Output is what the model writes back. Each is priced per million tokens, and output costs more. A support bot with a short question and a short answer is cheap per call but adds up at volume. A summarizer reads a lot and writes a little, so input price matters most. A writing tool is the reverse.

That is why the same model can be the cheapest for one job and the most expensive for another. Start from the example workloads above, then replace the numbers with yours.

Choosing a model is more than choosing a price

The spread between the cheapest and the dearest model is often more than 100×, and quality does not follow price in a straight line. On many everyday tasks a low-cost model answers as well as a frontier one; on others it fails in ways you only see on your own inputs. The fastest way to find out is to run your prompt on three models, then test the finalists at scale in PromptJury, where every result shows quality and price per 1,000 calls together.

Questions

How is LLM API pricing calculated?
Providers charge per million tokens, with one price for the text you send (input) and a higher price for the text the model writes (output). One call costs input tokens × the input price plus output tokens × the output price. Multiply by your calls per month for the monthly bill.
Why does output cost more than input?
Generating each new token takes more computation than reading one, so most models charge several times more per output token. For chatty or long-form tasks the output side usually dominates the bill.
How many tokens is my prompt?
A rough rule is 4 characters per token in English, or about 750 words per 1,000 tokens. Paste your prompt into the calculator to estimate it. For exact counts, use the token counter from the model's maker.
Is the cheapest model the best choice?
Only if its answers are good enough for your task. Prices differ by 100× or more between models, and so does quality on any given job. Test your own prompt on the cheapest few candidates before you commit.
Where do the prices come from?
OpenRouter's public model list, refreshed hourly. They are list prices per model. OpenRouter often sends a call to a cheaper host, so a real bill can come in lower: the prompt duel shows what each answer was actually billed. Prompt caching, batch discounts and long-context surcharges can also change your real bill, and are not included.

More free tools