AI Cost Per Word Calculator — ChatGPT, Claude & Gemini
Token pricing is awkward when you bill clients by the article. This tool converts GPT-4o, Claude, and Gemini list prices into cost per word, per page, and per article — in dollars and rupees — and ranks every model cheapest-first. No signup, sources cited below.
How it works
Large-language-model APIs bill in tokens, not words — and they charge separately for the tokens you send in and the tokens the model writes out. For a content writer that is the wrong unit. This calculator does the conversion deterministically, entirely in your browser, so you can see what a draft actually costs.
- Words → tokens. Multiply the word count by the tokens-per-word ratio (default
1.333, the reciprocal of OpenAI's “~0.75 words per token”). Non-English or code-heavy text uses more tokens per word, so the ratio is adjustable. - Pick the rate. Generate uses the model's output price; Process uses the input price; Both adds the two (read N words, write N words). Output is dearer than input on every model here because the model spends compute generating each token.
- Tokens → USD. List prices are quoted per million tokens, so
costUSD = tokens ÷ 1,000,000 × pricePerMillion. The per-word figure is this divided by the word count, then scaled ×100, ×500, and ×1,000 for the per-100-words, per-page, and per-article cards. - USD → LKR. Multiply by the USD→LKR rate (default 300, a Central Bank of Sri Lanka indicative figure you can override). A monthly total multiplies the per-piece cost by your volume.
- Comparison.Steps 2–4 repeat for all six preset models, sorted cheapest-first for your exact word count and task type, with each model's premium over the cheapest shown as a percentage.
Every cost is cross-checked against an independent per-thousand-token formula (tokens ÷ 1,000 × rate ÷ 1,000) that must agree with the per-million path to the fraction of a cent — the same belt-and-braces approach the tax calculator uses against the IRD's formula. All figures are list prices and an averaged ratio; for exact token counts, use the linked token counter.
Worked examples
Frequently asked questions
Sources & references
- OpenAI API pricing — GPT-4o ($2.50 in / $10 out) and GPT-4o mini ($0.15 / $0.60) per 1M tokens
- OpenAI — What are tokens and how to count them (≈0.75 words per token)
- Anthropic API pricing — Claude 3.5 Sonnet ($3 / $15) and Claude 3.5 Haiku ($0.80 / $4) per 1M tokens
- Google Gemini API pricing — Gemini 1.5 Flash ($0.075 / $0.30) and 1.5 Pro ($1.25 / $5) per 1M tokens
- Central Bank of Sri Lanka — indicative USD/LKR exchange rate
The model prices and token ratio on this page were last cross-checked against the official sources on 2026-06-09. AI pricing changes often — if a figure looks off, email me and I'll re-verify within 24 hours.
Related tools
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.
Spotted a pricing change, edge case, or want another model added?
Email me at [email protected] — most fixes ship within 24 hours.