TokenRate

TokenRate · tokenrate.dev

AI Token Calculator & Live Pricing Comparison

Prices updated daily — last verified 2026-10-12
$
Quick
354 models
↑ Type any amount — results update live

~4 chars ≈ 1 token · rates per 1M tokens · live via OpenRouter — confirm with provider before billing.

301+Models tracked
DailyPrices updated
FreeNo sign-up

Free, instant cost estimates for every major AI model. Convert money, tokens, and characters across Claude, GPT-4o, Gemini, Llama, DeepSeek, Grok, and Mistral — with live pricing from OpenRouter.

What is an AI token calculator? An AI token calculator converts between dollars, token counts, and characters using live API model rates. It answers two questions developers ask before shipping with an LLM: how much will this prompt cost? and how many tokens does my budget buy?

Current AI API pricing (October 2026): Llama 3.1 8B costs $0.05/1M input tokens; Gemini 2.0 Flash costs $0.10/1M; GPT-4o mini costs $0.15/1M; Claude Haiku 4 costs $0.25/1M. Input and output tokens have separate rates. For example, 1,000 input tokens at an illustrative $3/1M input rate cost $0.003 before any output or other charges. Use the calculator above to estimate both parts across 301+ tracked models.

Catalog built 2026-10-12 · Check the provider price sheet for your exact model and route

What Are AI Tokens?

A token is a unit that AI language models use to process text. Tokens may be words, fragments, punctuation or spaces. Their count varies by text and tokenizer.

Every AI API — including Claude, GPT-4o, and Gemini — charges by the token. You pay for the text you send (input tokens) and the text the model generates (output tokens). Understanding tokens is the key to predicting and controlling your AI costs.

Read the full guide →

How AI Token Pricing Works

AI models are priced by the million tokens — written as $/1M tokens. The two numbers you always see are:

  • InputThe text you send — your prompt, system instructions, and conversation history.
  • OutputThe text the model generates. Usually 3–5× more expensive than input, because generating tokens requires more compute than reading them.

A typical 1,000-token request (about 750 words of prompt) with Claude Sonnet 4 costs $0.003 — less than a third of a cent. At scale, though, those fractions add up fast.

Read the full pricing guide →

Cheapest AI Models in 2026

Ranked by input token price. All prices per 1 million tokens.

ModelProviderInput / 1MOutput / 1MContext
DeepSeek V4 Flash 0731DeepSeek$0.016$0.6401M
Granite 4.0 MicroIBM$0.017$0.112131K
gpt-oss-20bOpenAI$0.018$0.090131K
GLM 5.3 FlashZhipu AI$0.023$1.201M
Llama 3.2 1BMeta$0.027$0.20160K
Mistral NemoMistral$0.029$0.030131K

Prices are approximate and may change. See full comparison →

Token Calculation Examples

1,000 words of English text

~1,333 tokens

~4 chars per token

A standard email (150 words)

~200 tokens

under $0.001 on most models

A 10-page PDF (2,500 words)

~3,333 tokens

$0.01 with Claude Sonnet 4

An entire novel (80,000 words)

~107K tokens

fits in most flagship models

A full codebase (100K lines)

~300K+ tokens

needs 200K+ context window

1 million tokens budget at $1

~750K words

with Gemini 2.0 Flash

Want more? See the full token reference guide →

Browse All AI Models

Detailed pricing pages for every major model — with context windows, strengths, use cases, and cost examples.

Frequently Asked Questions

Related Tools & Guides