Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 2 min read

Five billing units on an LLM API marketplace, and how each one hides its real price

Every LLM API marketplace puts one number at the top of the page: price per million tokens. That number is real, and for chat it is the only number that matters. For everything else it is the wrong unit, and that is wher

Every LLM API marketplace puts one number at the top of the page: price per million tokens. That number is real, and for chat it is the only number that matters. For everything else it is the wrong unit, and that is where budgets quietly go missing.

I buy from third-party marketplaces for a living, so these are the five units I actually meet, and the question that exposes the real price of each.

1. Tokens, split into input and output

Text models bill per million tokens, but rarely at a single rate. Input and output are priced separately, and output usually costs several times more. A listing that shows one number is showing you the input rate. Multiply your expected output volume by the output rate before comparing anything. On our model reference every model carries its own input and output rate and its billing unit instead of a sitewide average: https://ai.dijinlong.com/model-docs

2. Images, priced per picture at a resolution tier

Image models do not bill in tokens. They bill per generated picture, and the price moves with the resolution tier and step count. A cheap image listing is usually cheap at 1024x1024 and several times that at 2048. Read the tier table: https://ai.dijinlong.com/pricing

3. Video, priced per second of output

Video bills per second of generated footage, and those are output seconds, not wall clock. A ten second clip at the top tier can cost more than a hundred short text answers. Because the unit is time, a small change in clip length changes the invoice linearly. It is simultaneously the most predictable and the most expensive unit in the market: https://ai.dijinlong.com/model-plaza

4. Calls, priced per request

A few legacy endpoints still bill per call with a token cap attached. It is the friendliest unit for short prompts and the worst for long ones, because a call that burns a million tokens costs the same as a call that burns fifty. Batch aggressively and per-call pricing rewards you; stream long context and it punishes you.

5. Characters, priced per thousand

Speech synthesis, translation and some embedding endpoints bill per thousand characters. The trap is that characters are counted after normalisation, so markup, whitespace and punctuation move the number by ten percent either way. Test one real document before scaling. Our FAQ covers how failed and retried requests are counted: https://ai.dijinlong.com/faq

How to compare across units

Do not compare a per-picture listing with a per-token listing. Convert both to cost per unit of the work you actually ship: one answer, one image, one minute of video. That is the only comparison that survives contact with an invoice. The English interface walks through the conversion model by model if you want it done for you: https://ai.dijinlong.com/en

One last habit worth building: whenever a page shows a discount, check what the discount applies to. Fifty percent off input tokens is worth far less than fifty percent off output tokens, and both look identical in the headline.

Disclosure: I run LONG AI, a marketplace that sells quota from upstream providers. The examples come from our own listing pages, which is why they are verifiable rather than illustrative.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.