LLM API billing units explained: tokens, images, seconds — and why the invoice rarely matches the price page

Published 2026-11-21 · LONG AI Engineering Notes

Almost every complaint we receive about pricing starts the same way: "your page says ¥0.8, I got charged ¥1.6". Nine times out of ten nobody is cheating — the customer compared two different units. Text models are priced per million tokens, image models per picture, video models per second of output. Mixing them up produces numbers that look wrong and are arithmetically correct.

This note is the unit system we use across the 103 models live on the LONG AI price table, and the four places where a price page and an invoice legitimately diverge.

Text: per million tokens, input and output priced separately

A text model has two prices, not one. Input tokens (your prompt, the conversation history, any retrieved documents) and output tokens (what the model writes) are metered separately, and output is usually several times more expensive. A single price on a price page is almost always the input price, with output listed in a second column or in a footnote.

QuantityWhat countsTypical gotcha
Input tokensSystem prompt + conversation history + tool definitions + retrieved contextLong system prompts and 40-tool definitions are billed on every single call
Output tokensVisible answer + reasoning tokens when the model exposes themReasoning models bill the thinking, which you never see
Cache hitsRepeated prompt prefixes, when the upstream supports prompt cachingA cache hit rate is not a discount rate; it changes the token count, not the unit price

Two consequences worth internalising. First, an agent loop is not one request: every step resends the history, so a 10-step task can bill roughly ten times the input of a single call. Second, when a page says "¥X per million tokens", the number you should compare against competitors is output price, because that is where the spread is widest.

Images: per picture, and resolution tier matters

Image generation is billed per image, not per token. The trap is that the same model can have several resolution or quality tiers with different unit prices, and a "standard" quote may refer to the cheapest tier only. If your prompt requests 2K output and the quote was for 1K, the invoice is right and the comparison was wrong.

Practical rule: pin the tier in the request, then compare prices at the same tier. On a gateway this shows up as an independent image rate multiplier, which is why some platforms list text and image pricing separately for the same model account.

Video and audio: per second of output

Video models are typically priced per second of generated footage, sometimes with a separate charge for the reference frame or for upscaling. A 5-second clip at ¥0.3/s is ¥1.5 before any extras. Because generation time scales with resolution and frame count, a per-second quote can differ from a per-generation quote by an order of magnitude — and both can be honestly advertised.

Speech synthesis follows the same shape: per character or per second of audio, with voice cloning and multilingual models priced higher. Transcription is the opposite: billed per minute of input audio, so a long meeting costs more than a short one regardless of output length.

Four places where the invoice legitimately differs from the price page

  1. Currency conversion, not a hidden fee. Prices quoted in CNY while your card settles in another currency will differ by the exchange rate at settlement time. On the English site we display USD with CNY settlement, and the page states the settlement currency for exactly this reason.
  2. Discount is per model, not per site. "Up to 90% off" describes the deepest quote on the cheapest model. Your specific model has a specific seller quote, and that is the number that applies. The model plaza shows per-model quotes because a site-wide average is useless for budgeting.
  3. Retries and partial failures. A request that fails upstream and is retried on another channel should be billed once. Failed requests we do not bill at all — but if your client retries on its own, you have made two billable requests.
  4. Tiered pricing inside one model. Long-context variants, batch tiers and peak/off-peak multipliers change the unit price for the same model name. The invoice applies the tier you actually landed in.

A one-minute sanity check before you blame the bill

Write down four numbers before opening a ticket: the unit (token / image / second), the tier you requested, whether the counter is input-only or input+output, and the currency of settlement. If those four match between the price page and the invoice, the difference is usually your own retry loop. If they do not match, that is a documentation bug on the provider side and worth reporting — the per-model pages at the LONG AI model archive list billing unit, tier and both sides of the price for this reason.

Units are boring until they are expensive. Getting them straight turns a support ticket into a spreadsheet check.