TTodAPI

Blog

What a million requests actually cost

Per-token prices are easy to quote and hard to feel. The useful number is what your workload costs — and that needs one fixed request shape to compare models against.

The method (three lines)

cost_per_request = prompt_tokens     / 1e6 * input_price
                 + completion_tokens / 1e6 * output_price
  1. Measure the real shape of one request: prompt tokens and completion tokens. Not the maximum, the p50.
  2. Multiply by your request count, not your user count.
  3. Compare models on that number. A headline price per token hides a 4× input/output split.

One shape, eight models

Assume 1,500 prompt tokens and 400 completion tokens — a retrieval-augmented answer with a short reply. Now run a million of them:

ModelInput / 1MOutput / 1M1M requests
gpt-6-luna$0.016$0.080$56.00
glm-5.3-flash$0.0252$0.0756$68.04
deepseek-v4.1-flash$0.0252$0.1008$78.12
qwen3.8-flash-guan$0.0816$0.2720$231.20
deepseek official (reference)$0.15$0.60$465.00
gpt-6.1-terra$0.16$0.80$560.00
glm-5.3$0.216$0.738$619.20
claude-haiku-5-5$0.19$0.95$665.00
claude-sonnet-5-5$0.76$3.80$2,660.00

The spread is 47× between the cheapest and the most expensive model for the same shape of work. That is the actual decision, not "$0.016 vs $3.80 per token".

Where the estimate goes wrong

The version you should actually run

curl -s https://todapi.work/v1/usage \
  -H "Authorization: Bearer $TODAPI_KEY"

Then divide spend by requests over a week. That is the only number that survives contact with production, and it is the one to compare when you test another model.

A cheap way to test a switch

Send 2% of traffic to the candidate model for a week, log prompt and completion tokens per request, and compare spend per successful answer — not spend per request. A model that is 30% cheaper per token but needs 20% more retries is not cheaper.

FAQ

What does 1M tokens cost?

On this gateway: $0.016–$1.60 per 1M input depending on model. Output is 4–5× the input rate almost everywhere.

Is the cheapest model always the cheapest workload?

No — a cheap model that fails and escalates can cost more than a mid-tier one that succeeds first time.

Do failed requests cost money?

Rejected requests cost nothing; tokens generated before a failure are billed.

Price list

Every model, per 1M tokens.

DeepSeek vs GLM

Same input, different output rate.

DeepSeek pricing

The 83% discount, with the maths.