Token and cost calculator

Paste a prompt to see roughly how many tokens it uses, whether it fits the context window, and what it costs per call and per month - across every major provider rather than one. Arabic is counted separately, because tokenisers treat it very differently.

  • Models30 from 7 providers
  • Prices checked2026-09-20
  • Your textNever leaves the tab

Your text

Paste a prompt, or open a file from your machine.

Tokens
≈ 68
56 - 83
Characters
239
Words
42
Per token
3.5
characters

Detected mostly Latin script. This is an estimate from the character mix, not a real tokeniser - treat it as ±20%. The exact count is one call away; the snippets are at the bottom of this page.

Assumptions

What the monthly figure is multiplied by.

Cheapest shown
GPT-5 nano
$9.70 a month
Dearest shown
Claude Fable 5.1
$1,587 a month(164×)

Add your own rate

For a model that is not listed, a host charging something else for open weights, or a price you negotiated. Per million tokens.

Cost by model

30 of 30 models. Prices are per million tokens on each provider's own API.

  • Claude Fable 5.1Anthropic · 1M context≈ 88 tokens here - this family’s tokeniser produces about 30% more tokens for the same text.
    Per call$0.0529
    Per day$52.88
    Per month$1,587

    $10 / $50cache read $0.25

  • Claude Opus 5Anthropic · 1M context≈ 88 tokens here - this family’s tokeniser produces about 30% more tokens for the same text.
    Per call$0.0264
    Per day$26.44
    Per month$793.26

    $5 / $25cache read $0.5

  • Claude Opus 4.8Anthropic · 1M context≈ 88 tokens here - this family’s tokeniser produces about 30% more tokens for the same text.
    Per call$0.0264
    Per day$26.44
    Per month$793.26

    $5 / $25cache read $0.5

  • Claude Sonnet 5Anthropic · 1M context≈ 88 tokens here - this family’s tokeniser produces about 30% more tokens for the same text.
    Per call$0.0106
    Per day$10.58
    Per month$317.30

    $2 / $10cache read $0.2

  • Claude Sonnet 4.6Anthropic · 1M context
    Per call$0.0122
    Per day$12.20
    Per month$366.12

    $3 / $15cache read $0.3

  • Claude Haiku 4.5Anthropic · 200K context
    Per call$0.00407
    Per day$4.07
    Per month$122.04

    $1 / $5cache read $0.1

  • GPT-6 AstraOpenAI · 1.05M context
    Per call$0.0407
    Per day$40.68
    Per month$1,220

    $10 / $50cache read $1

  • GPT-5.6 SolOpenAI · 1.05M context
    Per call$0.0163
    Per day$16.27
    Per month$488.16

    $4 / $20cache read $0.4

  • GPT-5.6 TerraOpenAI · 1.05M context
    Per call$0.00974
    Per day$9.74
    Per month$292.08

    $2 / $12cache read $0.2

  • GPT-5.6 LunaOpenAI · 1.05M context
    Per call$0.00097
    Per day$0.9736
    Per month$29.21

    $0.2 / $1.2cache read $0.02

  • GPT-5.4OpenAI · 272K context
    Per call$0.0122
    Per day$12.17
    Per month$365.10

    $2.5 / $15cache read $0.25

  • GPT-5.4 miniOpenAI
    Per call$0.00365
    Per day$3.65
    Per month$109.53

    $0.75 / $4.5cache read $0.075

  • GPT-5 nanoOpenAI
    Per call$0.00032
    Per day$0.3234
    Per month$9.70

    $0.05 / $0.4cache read $0.005

  • Gemini 3.1 ProGoogle · 1M contextRises to $4 / $18 on prompts over 200K tokens.
    Per call$0.00974
    Per day$9.74
    Per month$292.08

    $2 / $12cache read $0.2

  • Gemini 3.8 FlashGoogle · 1M contextPromotional rate to 31 December 2026; doubles on 1 January 2027.
    Per call$0.00305
    Per day$3.05
    Per month$91.53

    $0.75 / $3.75cache read $0.075

  • Gemini 3.5 FlashGoogle · 1M context
    Per call$0.00730
    Per day$7.30
    Per month$219.06

    $1.5 / $9cache read $0.15

  • Gemini 3.5 Flash-LiteGoogle
    Per call$0.00202
    Per day$2.02
    Per month$60.61

    $0.3 / $2.5cache read $0.03

  • Gemini 2.5 Flash-LiteGoogleText, image and video input; audio input is priced higher.
    Per call$0.00033
    Per day$0.3268
    Per month$9.80

    $0.1 / $0.4cache read $0.01

  • Grok 4.6xAI · 500K contextDoubles for a request whose prompt reaches 200K tokens.
    Per call$0.00494
    Per day$4.94
    Per month$148.08

    $2 / $6cache read $0.5

  • Grok 4.3xAI · 1M contextDoubles for a request whose prompt reaches 200K tokens.
    Per call$0.00209
    Per day$2.08
    Per month$62.55

    $1.25 / $2.5cache read $0.2

  • DeepSeek V4 ProDeepSeek · 1M contextPeak rate. Half price outside 01:00-04:00 and 06:00-10:00 UTC on weekdays.
    Per call$0.00326
    Per day$3.26
    Per month$97.73

    $1.32 / $3.96cache read $0.044

  • DeepSeek FlashDeepSeek · 1M contextPeak rate. Half price outside 01:00-04:00 and 06:00-10:00 UTC on weekdays.
    Per call$0.00098
    Per day$0.9804
    Per month$29.41

    $0.3 / $1.2cache read $0.006

  • Mistral Medium 3.5Mistral
    Per call$0.00610
    Per day$6.10
    Per month$183.06

    $1.5 / $7.5no published cache rate

  • Mistral Small 4Mistral
    Per call$0.00049
    Per day$0.4902
    Per month$14.71

    $0.15 / $0.6no published cache rate

  • CodestralMistral
    Per call$0.00074
    Per day$0.7404
    Per month$22.21

    $0.3 / $0.9no published cache rate

  • Llama 3.3 70BOpen weights
    Per call$0.00090
    Per day$0.9027
    Per month$27.08

    $1.04 / $1.04no published cache rate

  • Qwen3.8 (2.4T-A95B)Open weights
    Per call$0.00494
    Per day$4.94
    Per month$148.08

    $2 / $6no published cache rate

  • Qwen3.8 FlashOpen weights
    Per call$0.00039
    Per day$0.3862
    Per month$11.59

    $0.15 / $0.47no published cache rate

  • GLM-5.3Open weights
    Per call$0.00362
    Per day$3.62
    Per month$108.46

    $1.4 / $4.4no published cache rate

  • Kimi K3Open weights
    Per call$0.0122
    Per day$12.20
    Per month$366.12

    $3 / $15no published cache rate

Sources

Getting the exact count

A free endpoint that runs the model's own tokeniser and charges nothing for the call.

import anthropic

client = anthropic.Anthropic()

count = client.messages.count_tokens(
    model="claude-opus-5",
    messages=[{"role": "user", "content": text}],
)

print(count.input_tokens)

Why an estimate and not a count

A real tokeniser means shipping a vocabulary of tens of thousands of entries - and the wrong one for whichever model you use, since every provider tokenises differently. This page estimates from the character mix instead, and tells you its margin.

Why Arabic costs more

Most tokeniser vocabularies were built mainly on English text, so Arabic words break into several pieces and diacritics often cost a token each. The same paragraph can cost fifty per cent more in Arabic than in English - this page accounts for that.

Where the prices come from

Each provider's own published page, read on 2026-09-20 and linked above. Tiered rates, promotional rates and off-peak discounts are noted on the row they apply to. Cloud marketplaces such as Bedrock and Vertex are priced separately and are not modelled here.

Frequently asked questions

How many tokens is my prompt?
Paste it in and the estimate appears as you type, along with the margin it is accurate to. Roughly, English prose runs about four characters to the token, so a thousand characters is around 250 tokens - but code, punctuation-heavy text and Arabic all break that ratio, which is why the page measures the character mix rather than dividing by four.
Why is this an estimate rather than an exact token count?
An exact count needs the tokeniser vocabulary of the specific model, tens of thousands of entries, and every provider uses a different one. Shipping all of them into a browser tab would cost more to download than the page itself. The estimate reads the character mix instead and states its margin, which is enough to choose a model or to budget a feature.
Why does Arabic cost more tokens than English?
Tokeniser vocabularies were built mostly on English text, so Arabic words break into several pieces and diacritics often cost a token each. The same paragraph can run about fifty per cent more expensive in Arabic than in English. This page counts Arabic separately rather than applying an English ratio to it.
Are the prices up to date?
Every price on the page carries the date it was last checked and links to the provider's own pricing page. Model prices change without notice, so treat the figure as correct as of that date and follow the link before committing to a budget.