LLM Cost Calculator

Estimate the real cost of an AI agent run or API workload across 45 models, with prompt caching, batch discounts, long-context tiers and tool calls included.

Working when we checked on .

Visit LLM Cost Calculator

What is LLM Cost Calculator?

LLM Cost Calculator estimates what an AI agent run or API workload costs across 45 models from 6 providers (Anthropic, OpenAI, Google, xAI, DeepSeek, Mistral AI). It is aimed at developers and teams budgeting LLM API usage for coding agents, research agents, support chatbots, or batch classification. The calculator models multi-step agent loops, prompt caching, batch discounts, long-context pricing tiers, thinking tokens, and tool-call fees like web search. It also includes a token counter, a list-price comparison table, and per-use-case cost guides. Prices are checked against official provider pricing pages.

LLM Cost Calculator pricing

Pricing model: Free

LLM Cost Calculator pros

  • Compares 45 models from 6 providers with prices verified against official pages
  • Models agent loops where cost grows with the square of steps
  • Includes prompt caching, batch discounts, long-context tiers and tool fees
  • Offers presets like coding agent, research agent, support chatbot, batch classification
  • Includes a token counter and per-use-case cost guides
  • Shows scheduled provider price changes (e.g., Gemini 3.8 Flash 2027-01-01)

LLM Cost Calculator cons

  • Estimates depend on provider list prices, which change over time
  • No account, saved-teams, or invoicing features described in the sources
  • Coverage limited to 6 providers, excluding others not listed

Frequently asked questions about LLM Cost Calculator

Why does an agent run cost much more than a single API call?

An agent re-sends the whole conversation on every step: the system prompt, tool definitions, every earlier model output and every tool result. A 30-step run can bill hundreds of thousands of input tokens even when each step adds only a few thousand.

How much does prompt caching save?

Cached input usually costs 2.5% to 25% of the normal input price depending on the provider. For long agent loops that is often a 50-80% cut in total cost. Anthropic also charges a cache write premium (1.25x input for a 5-minute cache), which the calculator includes.

How does the calculator estimate an agent run?

Each step i carries the system prompt, tools, the task, and everything produced so far: prompt(i) = system + task + (i − 1) × (output + tool result). Without caching, cost grows with the square of the number of steps.

How many models and providers are covered?

The calculator covers 45 models from 6 providers: Anthropic, OpenAI, Google, xAI, DeepSeek, and Mistral AI.

What pricing factors are included in estimates?

It includes prompt caching, Batch API discounts, DeepSeek off-peak hours, long-context pricing tiers, thinking tokens, and per-call tool fees such as web search using the provider's published per-1,000-call price.

Are there presets for common workloads?

Yes, presets include Coding agent, Research agent, Support chatbot, and Batch classification, plus an API-calls mode for simple request workloads.

Who is this tool for?

Developers and teams who need to budget or compare costs for AI agent runs and API workloads across major LLM providers.

How are prices kept accurate?

Prices are checked against each provider's official pricing page and last verified on November 17, 2026, with 5 scheduled price changes tracked in a change log.

What is long-context pricing?

Some providers bill the whole request at a higher rate once the prompt passes a threshold, for example 272K tokens on recent OpenAI models. When a step's prompt crosses this threshold, that request is billed at the long-context rate.

Does the site offer other tools?

Yes, it includes a token counter for pasting text to see tokens and input cost per model, plus an LLM API pricing comparison page with list prices, caching, and batch discounts.

Categories

Use cases

Alternatives to LLM Cost Calculator

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z