Tool · Developers
LLM cost calculator: what your API calls cost a month
Pick a model, enter your traffic and token counts, and the LLM cost calculator prices the month on live list prices for 364 models. Then set how many of those calls only pick a label, a route or a yes/no, and see what they would cost on Jev instead.
Monthly cost
$500
$5.00 per 1,000 calls
Decisions on Jev
$351
30,000 calls moved
Difference
$149
30% of the bill
| This workload on | Per month | |
|---|---|---|
| $25.00 | ||
| $29.10 | ||
| $38.33 | ||
| $66.00 | ||
| $105 | ||
| $118 | ||
| $188 | ||
| $375 | ||
| $380 | ||
| $500 | ||
| $500 | ||
| $675 | ||
| $1,000 | ||
| Jev decisions only, input billed | $4.20 |
Prices: OpenRouter list prices for 364 text models, fetched Fri, 02 Oct 2026 13:25:56 UTC. Jev at $0.042 per 1M input tokens (OpenRouter). A provider's own API, prompt caching and batch pricing can change the bill.
Quick answer · verified 2026-10-02
How do you calculate LLM API cost?
Multiply each request's input tokens by the model's input price and its output tokens by the output price, add the two, and multiply by the requests in a month. Prices are quoted per million tokens, so divide by 1,000,000 along the way. That is all the LLM cost calculator above does, on prices that refresh every six hours.
| Formula | (input tokens × input price + output tokens × output price) × requests |
|---|---|
| Prices | per 1M tokens — divide by 1,000,000 for one token |
| Models priced | 364 — live from OpenRouter |
| Jev | $0.042 per 1M input — output is not billed |
How to use the LLM cost calculator
Start with the model you run today and the number of calls it takes in a month; your provider's dashboard or your own logs have both. Input tokens are everything you send on each call — the system prompt, the conversation so far, any retrieved documents and the user's message. Output tokens are the reply. Use averages: one unusually long call does not change a monthly bill, a long system prompt sent on every call does.
The last field is the one only you can fill in: the share of calls that end in a decision rather than a piece of writing. Classifying a ticket, choosing which tool or model to call, scoring an answer against a rubric, checking a reply before it ships — those are decisions. Leave it at zero to price the LLM alone.
Input tokens vs output tokens
Almost every model charges more for what it writes than for what it reads. In the comparison table, output costs a median 5 times the input price, so a long reply moves the bill more than a long prompt of the same length. Capping the reply length, asking for a label instead of a paragraph, and returning structured fields are usually the cheapest changes you can make to an LLM cost estimate before touching the model.
How many tokens is a request?
In English a token is about four characters, so 1,000 tokens is roughly 750 words, per OpenAI's guide to tokens. Other languages usually take more tokens for the same text. The surer way is to read it off your own traffic: most APIs report the input and output token counts in a usage field on every response, and a day of those numbers averaged is a better input for this LLM cost calculator than any estimate.
Watch for the costs hiding in the input. A chat app re-sends the whole conversation on every turn, so the twentieth message carries the nineteen before it; a retrieval pipeline adds every passage it fetched. Both grow the input side of the bill without anyone writing a longer prompt.
LLM cost per token: the price list
The models in the comparison, at their listed price per million tokens. Click any model in the LLM cost calculator above to price your own workload on it.
| Model | Input / 1M | Output / 1M | Batch input | Context |
|---|---|---|---|---|
| OpenAI: GPT-6.1 Sol | $2.00 | $10.00 | — | 1050k |
| OpenAI: GPT-6 Luna | $0.100 | $0.500 | $0.050 | 1050k |
| Anthropic: Claude Opus 5.5 | $4.00 | $20.00 | $2.00 | 1000k |
| Anthropic: Claude Sonnet 5.5 | $2.00 | $10.00 | $1.00 | 1000k |
| Google: Gemini 3.8 Flash | $0.750 | $3.75 | $0.375 | 1049k |
| Google: Gemini 3.5 Flash Lite | $0.300 | $2.50 | $0.150 | 1049k |
| DeepSeek: DeepSeek V4.1 Flash | $0.300 | $1.20 | $0.112 | 1049k |
| SpaceXAI: Grok 4.7 | $2.00 | $6.00 | — | 500k |
| Meta: Llama 4 Maverick | $0.188 | $0.652 | — | 1049k |
| Mistral: Mistral Medium 3.5 | $1.50 | $7.50 | $0.750 | 262k |
| Qwen: Qwen3.8 Flash | $0.150 | $0.470 | — | 1000k |
| MoonshotAI: Kimi K3 | $2.70 | $13.50 | $2.28 | 1049k |
| Z.ai: GLM 5 | $0.600 | $1.92 | — | 205k |
| Jev 1.13 (decisions only) | $0.042 | $0 | — | 64k |
Where Jev lowers an LLM bill
Jev is a decision model: it reads text and returns a probability for each option you give it, and never writes a reply. That makes it no use for drafting an answer and very cheap for choosing one. At the defaults of the LLM cost calculator above — 1,000 input and 300 output tokens — one call costs $0.00025 on OpenAI: GPT-6 Luna and $0.010 on Anthropic: Claude Opus 5.5, against $0.000042 for the same input on Jev, which bills no output at all.
Cheaper is not the same as good. TypeSafe's own evaluation puts Jev at 67.8% against 67.9% for GPT-5.6 Terra, but it measures agreement with other frontier models rather than correctness, and our own side-by-side runs found cases where the LLM wins outright. Test the decisions you would move on your own data first. The usual pattern is a gate: Jev answers the clear cases and sends low-confidence ones on to the LLM, so the LLM cost falls without the hard cases getting worse.
Other ways to cut LLM cost
- Batch what can wait. 8 of the 13 models above have a batch listing on OpenRouter, at a median 50% of the standard input price.
- Cache the prefix. Providers that support prompt caching charge less for a system prompt or document they have seen recently, which helps most when every call starts the same way.
- Shorten the reply. Output is the expensive side, so a label or a short JSON object costs a fraction of a paragraph.
- Route by difficulty. Send easy calls to a small model and hard ones to a large one. TypeSafe offers this as Jev Router on OpenRouter, which picks the model and reasoning effort per request; the model routing use case shows the same idea with Jev called directly.
LLM cost calculator questions
How much does an LLM cost per 1,000 tokens?
It depends on the model and on whether the tokens are input or output. Across the 13 models in the comparison above, input runs from $0.00010 to $0.0040 per 1,000 tokens, and output costs a median 5 times the input price.
Are these the same prices as the provider's own API?
They are OpenRouter's listed prices. A provider's own API can price the same model differently, and discounts such as prompt caching are not applied here, so check the provider's pricing page before you set a budget.
Can Jev replace my LLM?
Only for calls that end in a choice, a score or a yes/no. Jev returns probabilities over options you define and never writes text, so replies, summaries and code stay with the LLM.
How often are the prices updated?
Every six hours, from OpenRouter's public models API. The time of the last fetch is printed under the LLM cost calculator above.
Want the numbers for your own traffic rather than an estimate? Every call to this site's API returns its token count, and usage blocks from your current provider work the same way.