induwara.lk
induwara.lkAI · Sri Lanka

Sinhala & Tamil LLM (AI) Cost Calculator

Sinhala and Tamil fragment into far more tokens than English, so an AI app for local users costs more than the English estimate. Measure the gap with the real GPT tokenizer, then project your monthly OpenAI, Claude, or Gemini bill in USD and rupees. Free, no signup, sources cited.

By Induwara AshinsanaUpdated Jul 8, 2026
The Sinhala & Tamil token tax

Exact token counts (o200k_base).

2.75× the tokens of English, per word.

Total AI requests per day.

Words per prompt sent.

Words per reply generated.

Indicative CBSL rate. Default 305.

Quick presets
Monthly cost (LKR)
Rs 130,102
$426.56 / month
English-only cost
Rs 47,310
$155.11 / month
Token tax / month
Rs 82,792
Extra vs English ($271.45)
Cost multiple
2.75×
150,000 msgs/mo · 98+260 tok/msg

Monthly cost by model — Sinhala

ModelUSD / monthLKR / month
Llama 4 MaverickMetaCheapestapprox
$27.64Rs 8,431
Gemini 3 FlashGoogleapprox
$101.89Rs 31,076
Claude Haiku 4.5Anthropicapprox
$241.07Rs 73,526
GPT-5OpenAI
$408.28Rs 124,526
Gemini 3 ProGoogleapprox
$408.28Rs 124,526
GPT-4oOpenAI
$426.56Rs 130,102
Claude Sonnet 4.6Anthropicapprox
$723.21Rs 220,578
Claude Opus 4.8Anthropicapprox
$1,205.34Rs 367,630

Runs entirely in your browser. Nothing is uploaded or stored.

Loading the tokenizer…

Method: word counts are converted to tokens using the measured per-language token density for the selected model, priced at each provider's list rate and converted to rupees. OpenAI counts are exact (o200k_base); Claude, Gemini and Llama are labelled approximations. Sources are linked below.

How it works

Every call to an LLM API is billed per token— the sub-word pieces a model reads and writes. Tokenizers are trained mostly on English, so English words map to few tokens. Sinhala and Tamil use non-Latin scripts stored as multi-byte UTF-8, and the model has to spend several tokens to represent a single character. The result is a measurable “token tax” documented by Petrov et al. (NeurIPS 2023): low-resource scripts need multiples more tokens than English for the same meaning, and you pay for every one.

This calculator quantifies that tax in four steps:

  1. Measure real token density.A parallel set of five meaning-equivalent sentences in English, Sinhala, and Tamil is tokenized with OpenAI's open-source o200k_base tokenizer (the exact one GPT-4o and GPT-5 use), which runs in your browser via gpt-tokenizer. The measured averages are 1.18 tokens/word for English, 3.25 for Sinhala, and 2.53 for Tamil.
  2. Compute the tax ratio. Per word, Sinhala costs 2.75× and Tamil 2.14× the tokens of English. On the older cl100k_base tokenizer (GPT-4, GPT-3.5) the same corpus is far worse — about 7.6× for Sinhala.
  3. Convert words to tokens per message.Your average input and output word counts are multiplied by the language's token density for the chosen model: tokens = words × tokensPerWord(language, model). OpenAI models use the exact o200k count; Claude, Gemini, and Llama apply a clearly-labelled per-vendor multiplier because they do not publish a browser tokenizer.
  4. Price the month. Monthly tokens = messages/day × 30 × tokens/message. Cost = (inputTokens × Pin + outputTokens × Pout) ÷ 1,000,000 in USD, then × your USD→LKR rate for rupees. The same maths is run for English to show the extra spend, and across every model for the comparison table.

As an independent cross-check, the per-word densities also reconcile through the character path — characters-per-word × tokens-per-character reproduces the same tokens-per-word to five decimals — confirming the stored corpus constants are internally consistent. All prices and the exchange rate are dated constants; nothing is fetched at runtime and no text you enter ever leaves your browser.

Worked examples

Sinhala WhatsApp support bot on GPT-4o

5,000 messages/day · 30 input words · 80 output words · rate 305

  1. Messages/month: 5,000 × 30 = 150,000
  2. Sinhala tokens/word (o200k, exact): 3.25
  3. Per message: 30 × 3.25 = 97.5 input, 80 × 3.25 = 260 output tokens
  4. Monthly input: 150,000 × 97.5 = 14,625,000 tok → × $2.50/1M = $36.56
  5. Monthly output: 150,000 × 260 = 39,000,000 tok → × $10/1M = $390.00
  6. Sinhala total: $426.56/mo → Rs 130,102
  7. Same workload in English: $155.11/mo → Rs 47,310
  8. Token tax: Rs 82,792/month extra — a 2.75× bill

Tamil content generator — Gemini 3 Flash vs GPT-4o

1,000 messages/day · 50 input words · 300 output words · rate 305

  1. Messages/month: 1,000 × 30 = 30,000
  2. Tamil tokens/word: 2.53 (GPT-4o exact; Gemini approx ×1.00)
  3. Per message: 50 × 2.53 = 126 input, 300 × 2.53 = 759 output tokens
  4. GPT-4o ($2.50 / $10): $9.49 + $227.65 = $237.13/mo → Rs 72,325
  5. Gemini 3 Flash ($0.30 / $2.50): $1.14 + $56.91 = $58.05/mo → Rs 17,705
  6. Gemini is ~4.1× cheaper for this Tamil workload

English baseline on GPT-5 (edge case: no token tax)

100 messages/day · 20 input words · 40 output words · rate 305

  1. Messages/month: 100 × 30 = 3,000
  2. English tokens/word: 1.18
  3. Monthly input: 3,000 × 20 × 1.18 = 70,909 tok → × $1.25/1M = $0.09
  4. Monthly output: 3,000 × 40 × 1.18 = 141,818 tok → × $10/1M = $1.42
  5. Total: $1.51/mo → Rs 460
  6. Token tax: Rs 0 — the workload is already English

Frequently asked questions

Sources & references

Token densities were measured with gpt-tokenizer's o200k_base and cl100k_base encoders, and prices and the exchange rate were last cross-checked against the pages above on 2026-07-08. Claude, Gemini, and Llama token counts are labelled approximations because those vendors do not publish a browser tokenizer.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.