GoldenrozBook a call

LLM API cost calculator

Enter how many requests your application sends in a day, the input and output tokens of a typical request, and the prices per million tokens from your provider's price list. The calculator returns cost per request, per day, per month and per year.

The starting values are examples, not benchmarks. Replace them with your own figures. Nothing you enter is stored or sent anywhere.

  • Cost per request
    Input and output tokens at their prices
  • Cost per day
    Cost per request times requests per day
  • Cost per month
    Cost per day times active days
  • Cost per year
    Cost per month times 12
  • Tokens per month
    Input plus output, in millions
  • Share of cost from output
    Output cost divided by total cost

How to read the result

The prices in the form are placeholders. Model prices differ by provider and model and change often, so take both figures from your provider's current price list. Output tokens are priced several times higher than input tokens on most models, which is why the last row matters.

Input tokens per request is the figure most often underestimated. It includes the system prompt, the conversation history sent with every turn, any documents retrieved for the answer and the tool definitions. In a chat application the input grows with each turn. Measure a sample of real requests from your logs.

Three things usually lower the bill without changing what the user sees: caching the part of the prompt that repeats, sending simple requests to a smaller model, and retrieving less context per request. They are design decisions, made when the application is built. See AI development and AI integration, and for full project budgets, how much it costs to build an AI agent.

Questions about LLM API cost

How is LLM API cost calculated?

Providers charge per token, with separate prices for input and output, quoted per million tokens. Cost per request is input tokens times the input price plus output tokens times the output price, divided by one million. Multiply by request volume for the monthly figure.

What is a token?

A token is the unit a language model reads and writes, roughly a short word or part of a longer one. In English, 1,000 tokens is around 750 words. Other languages and code use more tokens for the same amount of text.

Why are output tokens more expensive than input tokens?

Generating text takes more computation than reading it, because the model produces output one token at a time. Providers price output higher to reflect that. Keeping answers concise is the most direct way to control it.

How can I reduce LLM API costs?

Cache repeated prompt content where the provider supports it, route simple requests to a smaller model, limit retrieved context to what the answer needs, cap output length, and batch work that does not need an immediate answer. Measure cost per request before and after each change.

Related calculators

  • Monthly savings, payback and first-year result of a support chatbot, from ticket volume and the share it resolves.
  • Total cost of a SaaS subscription against building your own system, with the month the build breaks even.
  • Payback period and three-year return of automating a manual process, from hours saved and build cost.

All free calculators

Talk to the person who will do the work

One hour, no sales team. You talk to Shai Goldenberg, the CTO, about your systems or your product, and you leave with a clear next step and a price range.

Or send the details

Book a callWhatsApp us