Most "cheap LLM API" comparisons are price tables. Price tables are the least useful part of the decision, because the thing that actually breaks when you switch providers is never the price — it is the model id, the streaming shape, or a minimum top-up you did not notice.
I run the API side of a small reseller, so read the honest parts below as self-interest in both directions: I want you to test your endpoint properly, and I also want to tell you when switching is a bad idea.
What a client actually needs from a provider
Open WebUI, LibreChat, Cherry Studio, LobeChat, Chatbox and Cline are all OpenAI-compatible clients. They do not call vendor SDKs. Whatever you point them at has to answer four things:
-
POST /v1/chat/completionswith and withoutstream: true - tool / function calling in the same JSON shape
- a
usageblock that splits input and output tokens -
GET /v1/modelswith ids the client can render in a dropdown
Everything else — routing, aggregation, retries — is the provider's problem, not yours. That is why migration is two fields (base URL and key), not a rewrite.
The three things that actually break
1. Model ids. Aggregators use prefixed ids (anthropic/claude-sonnet), a direct gateway often serves the upstream id (claude-sonnet-4-6). If the id is not in /v1/models, the client's dropdown stays empty and the user concludes "it doesn't work". Check before blaming the client:
curl -s https://tapixai.com/v1/models -H "Authorization: Bearer $KEY" | head -c 400 2. Streaming chunk shape. Some gateways stream a single final chunk instead of many deltas. That passes in curl and feels broken in a UI that renders token by token. Ask for ~40 tokens of output and count the data: lines. Fewer than five deltas means the UI will feel frozen regardless of real latency.
3. Billing minimums and units. A $10 minimum with $3 of monthly usage is worse than a slightly higher per-token price with a $1 minimum. Also check whether cached input is discounted and whether 429s or timeouts are billed. They should not be.
Price maths that survives contact with reality
Compare the same workload, not the same sticker price. For a mid-tier model, one call with 2,000 input and 500 output tokens:
| What | Where it comes from |
|---|---|
| input tokens billed | usage.prompt_tokens, not your estimate |
| cached input | is prompt caching supported, and does it show as a discount |
| minimum spend | what you must pay before the first useful call |
| failed calls | are rate-limit errors billed |
Run the same prompt on both providers, one week apart, and read the usage block both times. If the numbers differ by more than a few percent for identical text, one of them counts differently and your price comparison is measuring nothing.
Agent workloads are the exception
Cline, Continue and similar agents do not send one request. They loop: read file, propose edit, run tests, read output, retry. Every turn re-sends the conversation so far, so a 20-step task can bill 30–60× the tokens of the sentence you typed.
Two consequences:
- Cost is dominated by input, not output. Reducing re-sent context beats a cheaper output price.
- "Cost per million tokens" is a useless metric here. Measure cost per completed task: total input tokens, total output tokens, number of turns, and whether the task finished. A cheaper endpoint that needs three extra turns is more expensive.
There is a trick that beats any discount: point the mechanical turns (rename, import fix, add a log line) at a smaller model and keep the big model for planning. Most agent turns are mechanical.
When you should not switch
- You need a vendor SLA or a compliance trail that names the model vendor.
- You need a model on release day; resellers lag by days to weeks.
- You need automatic failover across many upstreams — that is what aggregators exist for, and losing it to save 20% is usually a bad trade.
- Your spend is a few cents a month. Optimising that is a hobby, not a saving.
A five-minute acceptance test
-
GET /v1/modelsreturns the id you want to use. - One streaming request on a 20k-token prompt: first token arrives in a sane time and you can count multiple deltas.
- One request with a
toolsarray: the response containstool_calls, not a paragraph explaining what it would do. - Break it on purpose — wrong key, empty balance — and confirm the error body names the reason so your client can show it instead of retrying silently.
- Compare
usagenumbers against a provider you already trust, for the same text.
If all five pass, you have migrated. If any fails, you have found a reason to stay, and that is worth more than a price table.
If you want to see the whole flow on your own key without touching config first: https://tapixai.com/start runs one real call and prints the error verbatim if it fails. Setup guides for ten clients (Cline, Open WebUI, Cherry Studio, LibreChat, n8n, SillyTavern, LobeChat, Chatbox, Dify, Continue) are at https://tapixai.com/integrations.