A single /v1/chat/completions request looks trivial from the client side. Behind it sit five stages: auth and quota, model-name normalisation, upstream selection, protocol adaptation, and streaming plus usage accounting. These are the notes from routing live traffic through 51 upstream sellers.
Behind the same model id, different upstreams ship different versions, different context windows and sometimes different billing units. We tag every upstream model with capability flags — context length, tool-calling support, image input — and rank stability above price when choosing a route. Channels discounted below 20% of list price usually carry an order-of-magnitude worse timeout rate, and the savings get eaten by retries.
usage the upstream returns, input and output priced separately.Get that order wrong and users see "balance dropped but no answer" — the fastest way to lose a customer.
An upstream that returns 200 may still stream incorrectly; one that streams fine may violate the spec on tool_calls. We run a fixed regression suite against every channel: chunk format, finish_reason, usage fields, and whether error codes land inside OpenAI semantics. A channel that fails this suite never enters the primary lane, however cheap it is.
Across 51 sellers the most common defects are self-invented error codes (rate limits reported as 500), missing usage at stream end, and silent context truncation. The third is the nastiest: the request succeeds, the answer looks reasonable, and the tail was quietly dropped.
To compare price and latency directly, point the OpenAI SDK at LONG AI and send one request — 103 models live, 51 upstreams, automatic failover to the next seller. The public status board and price table are on the same domain.
Exposing 103 models as an MCP server: what the gateway had to expose — why the catalogue is data rather than a hundred tool names, and how errors stay actionable for agents.
Pricing 103 models across 51 sellers: how the discount list is built — per-model ratios, separate input/output pricing, and why the cheapest channel is not the default.
FAQ: 51 upstream sellers behind one OpenAI-compatible endpoint — drop-in compatibility, failover, balance holds, and why more upstreams is not automatically more uptime.
Six checks before you switch to another API reseller — stream shape, tool calls, usage accounting, failure behaviour, price transparency, status page.
Status pages lie: what to log instead — the four numbers per channel that catch truncation, mis-typed errors and schema drift.
LLM API billing units explained — tokens vs images vs seconds, why a price page and an invoice legitimately differ, and the four numbers to check first.