Roar AI
Get started
Free tool

LLM Token & API Cost Calculator

Estimate and compare API costs across OpenAI, Claude, Gemini, DeepSeek and other AI models. Enter your expected token usage and request volume to calculate per-request and monthly costs using live model pricing.

Token counts are estimated using approximately four characters per token. Actual counts vary by model and language.
Pricing mode
Cache creation charges are not included. 4 of the models you picked charge extra to write a prompt into the cache.

Cheapest: GPT-6 Luna at $4.00 per month.

  • GPT-6 Luna$0.10 in · $0.50 out per 1M tokens
    $4.00 per month$0.0004 per request
  • Claude Haiku 5.5$0.10 in · $0.50 out per 1M tokens
    $4.00 per month$0.0004 per request
  • DeepSeek V4.1 Flash$0.195 in · $0.78 out per 1M tokens
    $6.82 per month$0.00068 per request
  • GPT-6.2 Sol$2 in · $10 out per 1M tokens
    $80.00 per month$0.008 per request
  • Claude Sonnet 5.5$2 in · $10 out per 1M tokens
    $80.00 per month$0.008 per request
  • Gemini 4 Argon$4 in · $20 out per 1M tokens
    $160.00 per month$0.016 per request

Prices are in USD per million tokens and reflect Roar AI’s published model rates. Token counts calculated from text are approximate. Rates as of 1 December 2026.

What is an LLM token?

A token is the unit a language model reads and writes. Models do not see whole words: they split text into pieces, often part of a word, and API prices are quoted per million of those pieces. In English, one token is about four characters, or about three quarters of a word.

TokensApproximate English words
10075
1,000750
10,0007,500
100,00075,000
1 million750,000

Code, numbers, unusual names and most other languages use more tokens for the same length of text, and each model family has its own tokenizer, so these figures are estimates. The exact count for any request is in the API response.

How LLM API pricing works

Most model APIs charge separately for what you send and what the model writes back, each at a rate per million tokens.

  • Input tokens are everything you send: the instructions, any documents, and the conversation so far, which is sent again with every turn.
  • Output tokens are what the model writes back. They cost more than input, usually several times as much, because the model generates them one at a time.
  • Reasoning tokens are written by models that think before they answer. You may never see them, but they are billed as output tokens, so a reasoning model can cost more for an answer of the same length.

How to calculate LLM API costs

The arithmetic is the same for every model:

Cost per request = (Input tokens × Input rate + Output tokens × Output rate) ÷ 1,000,000
Monthly cost = Cost per request × Requests per month

For example, take GPT-6.2 Sol at Roar AI’s published rates of $2 per million input tokens and $10 per million output tokens, with 1,500 input tokens and 500 output tokens per request, 10,000 times a month:

  • Input: 1,500 × $2 ÷ 1,000,000 = $0.003
  • Output: 500 × $10 ÷ 1,000,000 = $0.005
  • Cost per request: $0.008
  • Monthly cost: $0.008 × 10,000 = $80.00

These are the calculator’s starting figures, so you can change any of them above and watch the totals move.

How caching and batch processing affect API costs

  • Prompt caching. Many models charge less for input they have seen recently. If every request starts with the same instructions or document, that part can be read from the cache at a fraction of the input rate. Set the cached input percentage and the calculator applies each model’s cached rate, or the normal input rate where a model has none. Some models also charge to write a prompt into the cache; those cache creation charges are not included.
  • Batch processing. For work that does not need an answer straight away, you send a file of requests and collect the results within 24 hours. On most models that offer it, input and output both cost about half the standard rate (how batch works). Switch the pricing mode to Batch to compare. Models that do not support batch processing are marked as such.
  • Long-context pricing. Some models charge a higher rate for the whole request once its input passes a set number of tokens. The calculator applies those published thresholds automatically and says beside the model when a higher rate applies.

Comparing AI model costs

The cheapest model per token is not always the cheapest per task. A model that needs a second attempt, writes longer answers or spends many tokens on reasoning can cost more than a dearer one that gets it right first time. Five things are worth weighing:

  • Quality on your task. Try two or three models on your own prompts before you commit.
  • Answer length. Some models are more verbose than others, and output is the dearer half of the bill.
  • Reasoning. Thinking models answer harder questions but bill their reasoning as output.
  • Context window. Check that your documents fit, and whether long-context pricing applies to them.
  • Speed. A faster model can matter more than a cheaper one when someone is waiting for the answer.

Our guide to the cheapest LLM APIs compares the low-cost end of the list, and the models page has every model’s rates, context window and what it is good at.

How to reduce your LLM API costs

  • Use the smallest model that does the job. Start with a low-cost model and move up only where its answers fall short.
  • Keep prompts short. Trim the instructions, and summarise or drop old conversation turns rather than resending all of them.
  • Limit output length. Ask for concise answers and set a maximum number of output tokens, since output costs more than input.
  • Cache repeated context. Put fixed instructions and documents at the start of the prompt, where they can be read from the cache.
  • Batch work that can wait. Classification, extraction and evaluations rarely need an answer within seconds.
  • Set spending limits. Roar AI lets you set a spend limit on each API key and a budget on each project, so one app cannot run up the whole bill.

Questions about tokens and API costs

How many tokens are in a word?

In English, a token is about four characters, or about three quarters of a word, so 1,000 tokens is roughly 750 words. Code, numbers and most other languages use more tokens for the same length of text.

How accurate is the calculator?

The costs are worked out exactly from Roar AI’s published rates for the token counts you enter. Token counts estimated from pasted text are approximate, at about four characters per token, because every model family splits text its own way. Your bill uses the token counts the API reports for each request.

Can I use this as an OpenAI pricing calculator?

Yes. Pick any GPT model to see its cost per request and per month beside Claude, Gemini and open models. The calculator uses Roar AI’s published rates, which can differ from what OpenAI charges if you buy from OpenAI directly.

How much do Claude, Gemini and DeepSeek cost?

Each model has its own input and output rate, so add the Claude, Gemini or DeepSeek models you are considering from the Add a model list and the calculator shows what each would cost for your usage. The rates are Roar AI’s published rates, not the labs’ own price lists, and every model’s rates are also on the Roar AI models page.

How much does one million tokens cost?

It depends on the model and on whether the tokens are input or output. On Roar AI’s current price list, one million input tokens costs from $0.0714 to $10, and one million output tokens from $0.1143 to $50. Enter 1,000,000 in either field to see the figure for each model you pick.

Where do the prices come from?

From Roar AI’s live model catalogue: the same published rates charged when you call these models through the Roar AI API. The page reads the catalogue every hour, so a changed rate appears without anyone editing the page. These are API prices for usage, not the price of a monthly chat subscription.

Why do output tokens cost more than input tokens?

A model reads your input in one pass but writes its answer one token at a time, so each output token takes more computing time. Output usually costs several times as much as input, which is why a long answer can cost more than a long prompt.

Do reasoning models use more tokens?

Usually, yes. A model that thinks before answering writes reasoning tokens you may never see, and they are billed as output tokens. If you use one, raise the output figure in the calculator to allow for them.

Does the calculator include prompt caching?

It includes cache reads: set the share of input you expect to come from the cache, and the calculator applies each model’s cached-input rate, or the normal input rate where a model has none. Cache creation charges are not included. Some models charge extra the first time a prompt is written into the cache, so a workload that rarely reuses its prompts will cost a little more than the estimate.

Does the calculator include batch pricing?

Yes. Switch the pricing mode to Batch to price every model at its batch rates, which on most models are about half the standard rate. Models that cannot be sent as a batch are marked “Not sold as batch” rather than shown at a price.

How do I estimate my monthly bill?

Work out a typical request: how many tokens you send, including instructions and conversation history, and how many the model writes back. Enter those with the number of requests you expect in a month, and the calculator multiplies it out for each model. Allow a margin for retries and for conversations that run longer than average.

Is the calculator free?

Yes. It is free to use and needs no account. Everything is calculated in your browser, and text you paste to estimate tokens is not sent anywhere.

Access AI models through one API

Access over 200 AI models through Roar AI with one API key, published usage-based pricing and centralised spending controls.