Free tool

AI Token Cost Calculator

Enter your request volume and tokens per request to estimate and compare API costs across models with live EasyAPI pricing, and find the best value for your workload.

Usage

Common scenarios

Share of input tokens served from the prompt cache. Only applies to models with a cache price.

Estimate tokens from text

A rough estimate: about 1 token per Chinese character and about 4 characters per token for English. Tokenizers differ by model; the usage returned by the API is authoritative.

Cost comparison

10,000 requests / month · 1,000 input / 500 output tokens per request

gpt-6-astraclaude-fable-5.1gemini-3.5-flashdeepseek-v4.1-flash

deepseek-v4.1-flash is the cheapest at about $2.91 per month, saving about 99% compared with claude-fable-5.1.

ModelInput / 1M tokensOutput / 1M tokensPer requestPer dayPer month
deepseek-v4.1-flash
DeepSeekLowest costDynamic pricing
$0.0969$0.3875$0.000291$0.0969$2.91
$1.275$7.65$0.0051$1.70$51.00
gpt-6-astra
OpenAIDynamic pricing
$10$50$0.035$11.67$350
$10$50$0.035$11.67$350

Prices come from live EasyAPI Model Square pricing (platform discounts included). Daily cost assumes 30 days per month; your bill is authoritative.

How costs are calculated

LLM APIs usually bill input and output tokens separately, priced per million tokens. The calculator uses these formulas:

  • Cost per request = (uncached input tokens × input price + cached input tokens × cache price + output tokens × output price) ÷ 1,000,000
  • Monthly cost = cost per request × requests per month; daily cost = monthly cost ÷ 30
  • Output prices are typically several times input prices, so output dominates cost for long responses such as code or long-form writing
  • With prompt caching, repeated system prompts and context are billed at the lower cache price, which can cut costs for long-context apps significantly

FAQ

What is a token?

A token is the basic unit an LLM uses to process text. Roughly, one Chinese character is about one token, and in English one token is about 4 characters or 0.75 words. Models bill input and output tokens separately.

How accurate are the prices?

Prices are read live from the EasyAPI Model Square, include platform discounts and match the model pages. Models with dynamic pricing are estimated at their base tier; your console bill is authoritative.

How do I know how many tokens a request uses?

Use “Estimate tokens from text” above for a rough figure. Once integrated, the exact usage of every call appears in the usage field of the API response and in your console usage logs.

How can I reduce LLM API costs?

Common approaches: use cheaper lightweight models for simple tasks, trim prompts and context, cap the maximum output length, enable prompt caching, and route requests across models by task complexity.

Can one API key call every model in the calculator?

Yes. EasyAPI offers an OpenAI-compatible API, so one API key can call any model your account has access to. Switching models only requires changing the model parameter.

Call all these models with one API key

Sign up for EasyAPI to call GPT, Claude, Gemini, DeepSeek and more through an OpenAI-compatible API, paying only for what you use.