Token and cost calculator for 245 models

Two numbers decide what a prompt costs: how many tokens go in, and how many come back. Everything else is a list price. This page gives the arithmetic first, then the table, so you can compute any prompt against any of the 245 models the site publishes rather than trusting a per-prompt figure someone else calculated.

The catalogue behind the table is pages/assets/models/model-selection.json: 245 models across 40 suppliers, context windows from 32,000 to 10,000,000 tokens, and a rate on 241 of the 245 rows. The four rows without a rate carry no price in the catalogue, so this page says nothing about them rather than guessing.

The arithmetic, in three lines

  1. Estimate tokens as characters divided by four. That is the same estimate the application's scorer uses for its length category, and it is accurate enough for a budget. A 12,000-character brief is about 3,000 tokens; code is closer to three characters per token, so add a third if the brief is mostly code.
  2. Cost one run as (input tokens / 1,000,000 × input price) + (output tokens / 1,000,000 × output price), with the prices taken per million tokens, which is how every row in the catalogue is quoted.
  3. Multiply by runs. The useful unit is 1,000 runs, because it turns the arithmetic into one line: an 8,000-token input and a 1,500-token answer cost 8 × input price + 1.5 × output price per thousand runs, in dollars.

That third line is why the last column below can be read straight off the two prices beside it. It also shows the thing people miss: at these proportions the output price matters about five times as much as the input price per unit, because 1.5 units of output against 8 of input still carries most of the money once the rates differ by an order of magnitude.

Twelve rows, from cheapest to dearest

Cost of 1,000 runs of an 8,000-token prompt with a 1,500-token answer, computed from the catalogue's own rates. The rows are a spread, not a recommendation: the cheapest row is not automatically the right row, and the last section says why.

ModelSupplierWindowUSD / 1M inUSD / 1M outUSD / 1,000 runs
Amazon Nova MicroAmazon128,0000.0350.140.49
Hy4-FlashTencent1,048,5760.0350.14050.49
Llama 3.1 8B Instant (Groq)Groq131,0720.050.080.52
DeepSeek V4-Flash (DeepInfra)DeepInfra1,048,5760.090.180.99
DeepSeek V4-Flash (Fireworks)Fireworks AI1,000,0000.140.281.54
Qwen3 CoderAlibaba (Qwen)262,1440.221.003.26
Codestral 2508Mistral AI131,0720.30.93.75
DeepSeek V4.1 Flash 1017DeepSeek1,000,0000.31.24.20
Qwen3 Coder FlashAlibaba (Qwen)1,000,0000.31.54.65
Kimi K3.1 ProMoonshot AI1,048,5762.0010.0031.00
GPT-5.5OpenAI1,050,0005.0030.0085.00
Claude Fable 5.2Anthropic1,000,0008.0040.00124.00

A worked example: 800 runs in a month

A 12,000-character brief, about 3,000 tokens, with a 1,200-token answer, run 40 times a day for 20 working days. That is 800 runs a month, which is a realistic figure for one developer using an agent all day.

ModelOne run800 runs
DeepSeek V4-Flash (DeepInfra)USD 0.00049USD 0.39
Kimi K3.1 ProUSD 0.018USD 14.40
GPT-5.5USD 0.051USD 40.80
Claude Fable 5.2USD 0.072USD 57.60

The spread is 148 times between the first row and the last, for the same 800 prompts. Two of those numbers are affordable without a decision and two are the cost of a licence every month, which is the only cost argument this page makes: the price of the tool is a rounding error beside the price of the calls, and the calls are the part nobody budgets.

What this table cannot tell you

The per-model pages at /model-limits render the same catalogue row by row, with the window and both rates, and /models is where the catalogue is browsed by task. Both are generated from the file named at the top of this page, so a figure here and a figure there come from one source.

The catalogue file's own timestamp reads 2026-11-21 11:20 +10:00, which is the only date this page will quote: a price table without one is an opinion.

Two lessons in the course go further on the same arithmetic: cost control and token budgeting and deep with tokens.

Part of the guides index. Two that follow this one: Which model is cheapest for coding this month and Context is a budget, not a container.

Cite this page as: TPEE, the Toptronic® Prompt Engineering Editor — https://tpee.app/guides/token-and-cost-calculator. Ask: support@tpee.app.