Home › Blog › LLM Token Pricing Explained: What You Actually Pay

LLM Token Pricing Explained: What You Actually Pay

2026-11-15 · ArxPays engineering notes

"Cheap per million tokens" is meaningless without knowing which tokens. Every API prices input and output differently, and long conversations make the input side grow quadratically if you resend history naively.

The three numbers

Why your bill grows faster than your usage

A chat that sends the whole transcript every turn costs roughly O(n²) in turns. Twenty turns of 200 tokens each is 40k tokens cumulative, not 4k. This is the single most common reason a "cheap" API feels expensive.

turn 1 : 200 tokens
 turn 2 : 400
 turn 3 : 600
 ...
 turn 20: 4,000   -> total ~42,000

Fixing it

Estimating before you buy

Measure one real request: prompt tokens, output tokens, then multiply by your expected daily volume. If the result is under one package, buy one package — not five. Balance does not expire, so there is no reason to over-buy.

What the cheap tier really means

Flash-class open models are inexpensive because inference is efficient, not because quality is low. They are weaker than frontier models on long-horizon reasoning and stronger on cost predictability — which is usually the right trade for products.

FAQ

Do failed requests cost tokens?

A 4xx error costs nothing; a request that generates tokens then fails mid-stream may still bill the generated part.

Is caching automatic?

Prefix caching is automatic on most providers when the prompt prefix is identical.

Why is output more expensive?

Generation is sequential and memory-bound; each token requires a full forward pass.

Endpoint https://arxpay.my.id/v1 · Model deepseek-v4.1-flash-abliterated-2

Get a key