Cheapest LLM API provider: how to find it for your workload

There is no single cheapest LLM API. Find the cheapest model and provider for your own token mix, with the live catalog's lowest-priced ids per use case.

Checked 2026-11-21

·Home·Models

Anyone who tells you one provider is the cheapest LLM API has not asked what you send. A support bot that reads a 4,000-token history and answers in forty words is input-heavy; a story generator is output-heavy; an agent that calls tools in a loop re-sends the same prefix fifty times and lives or dies on cached-input pricing. The cheapest model for each of those is a different id, and the cheapest provider is whoever serves that id at the lowest all-in price with no fee, minimum or subscription on top. This page gives you the method, then the live catalog's lowest-priced ids per use case, with our price beside the developer's list price so you can check the claim rather than trust it.

The method, in five questions

  1. What is your input-to-output ratio? Count tokens on a day of real traffic, or estimate: chat and RAG run about 3 input tokens per output token, agents 10 or more, drafting and code generation closer to 1 to 2. Weight the two prices by that ratio before comparing anything. A model with cheap input and expensive output wins for RAG and loses for generation.
  2. How much of your input repeats? Agents and long chats resend the same system prompt and history. Where a model lists a cached-input price, that is the number that matters for them, and a model with no cache price can cost more in practice than a dearer model with one.
  3. What context do you need? Pay for a million-token window only if you fill it. Several of the cheapest ids below carry a 1M window at no premium, so this is often free, but an 8K model can be cheaper still for short turns.
  4. Which features are non-negotiable? Tool calling, JSON mode, vision, a specific wire format. The catalog's supported_parameters field lists what each id has been verified to accept; an empty list means unverified, not refused.
  5. What is the quality floor? Run your own ten hardest prompts on the two or three cheapest candidates before you move traffic. The compare page runs one prompt on two ids side by side with cost and time.

Then price the whole month, not a request: the cost calculator takes tokens per request and requests per day and gives the bill at list and at our price on every chat model.

The cheapest ids on the live catalog, by use case

Read at 17:44 UTC on 2026-11-21 from GET https://api.uplinkswitch.com/v1/catalog, which needs no key and is what these tokens render from. Verify every id on the live catalog before build. Ranking weight for "general chat" is 3 input to 1 output.

General chat and RAG (input-heavy)

Id (verify on live catalog first)DeveloperOur price, in / out per 1MList priceContext
glm-5.3-flashxZ.ai$0.047887 / $0.15962$0.075 / $0.25see model page
claude-haiku-5-5Anthropic$0.0582 / $0.1455$0.10 / $0.501M
deepseek-v4.1-flashDeepSeek$0.0564 / $0.1692$0.30 / $1.201M
deepseek-v4-flash-0731DeepSeek$0.08148 / $0.1164$0.14 / $0.281M
mimo-v2.6-flashXiaomi$0.084 / $0.12$0.14 / $0.281M
gpt-6-lunaOpenAI$0.0625 / $0.20$0.10 / $0.501M

Long context without a premium (1M-token window)

The same six minus glm-5.3-flashx, plus glm-5.3-flash ($0.0873 / $0.1455). On this catalog a million-token window is not a price tier; it comes with the id.

Agents and structured output (verified tool calling)

Id (verify on live catalog first)DeveloperOur priceVerified parametersNote
claude-haiku-5-5Anthropic$0.0582 / $0.1455tools, tool_choice, response_format, reasoningcheapest id with verified tools and a 1M window
gemma-3n-e2b-itGoogle$0.12 / $0.08tools, tool_choice, response_format8K context; output cheaper than input, unusual and useful for short structured replies
nemotron-3.5-super-vlNVIDIA$0.225 / $0.75tools, response_format, structured_outputsvision and 262K context

Many cheaper ids probably accept tools too; they are not in this table because the catalog has not verified them. If an id you want shows an empty parameter list, send one small request before you commit.

Cheapest id per developer

DeveloperId (verify on live catalog first)Our price
OpenAIgpt-6-luna$0.0625 / $0.20
Anthropicclaude-haiku-5-5$0.0582 / $0.1455
Googlegemini-2.5-flash-lite (chat) or gemma-3n-e2b-it (open weights)$0.075 / $0.30 / $0.12 / $0.08
DeepSeekdeepseek-v4.1-flash$0.0564 / $0.1692
xAIgrok-4.5$0.60 / $1.80
Qwenqwen2.5-7b-instruct$0.20 / $0.20
Z.aiglm-5.3-flashx$0.047887 / $0.15962
MiniMaxminimax-m3$0.09 / $0.36

Embeddings

bge-m3 and qwen3-embedding-0.6b are the lowest-priced embedding ids on the catalog ($0.0295 and $0.0295 per 1M input tokens); text-embedding-3-small is there for teams that need OpenAI's vector space. Embedding ids live on /v1/catalog, not on /v1/models.

Where the saving against list is largest

Our price and the developer's list price sit in the same catalog row, so the gap is a fact you can download, not a slogan. On the reading date the widest gaps on chat ids were on deepseek-v4.1-flash ($0.0564 against $0.30 list input), glm-5.3, gpt-6.1-sol, claude-fable-5 and gemini-4-argon. Some lines sit at list price with no saving at all; the price index marks each row's saving, including the zeros, and offers the whole table as JSON or CSV.

What "cheapest provider" hides

  • A platform fee on top of list. Marketplaces that pass the developer's price through and add a percentage are never the cheapest for a model the developer sells directly; the aggregator comparison lists who charges what, from each vendor's own page.
  • A subscription or a minimum. A flat monthly plan is cheap only if you use it. Here credit is prepaid, there is no plan unless you want one, and the smallest top-up and the 30-day price lock are on pricing.
  • Rate limits that force you upward. A free or cheap tier with a tight per-minute cap pushes real traffic to a dearer tier. Every key here has one documented limit, in the docs, with budgets per key so a runaway agent stops at a number you set.
  • The fallback model. When a provider silently routes your request to a different model under load, the price you compared is not the price you paid. Each answer here carries the id that was billed in the response body's model field and the charge in usage.cost.
  • Retries on bad JSON. A structured-output request that fails to parse is retried once free here and the miss is not billed; elsewhere you pay twice.

Let the gateway pick the cheapest for you

Two shortcuts when you would rather not maintain a table: the auto id with its fast tier sends short tasks to the cheapest capable models and heavier ones upward (tier membership is on the auto router page), and a request can name several ids with routing: price so the gateway takes the cheapest one that is up. Both bill the id that answered, at its own price. One key reaches every developer on the list through one base URL; the gateway page explains how.

Questions and answers

For a given model, the developer's own API or a reseller at or under list with no fee on top; for a given job, whichever model clears your quality floor at the lowest weighted price. We publish our price beside each developer's list price in one catalog and are under list on most lines and at list on some, so you can see which case you are in before you top up.

On the reading date the lowest-priced general chat ids on this catalog were glm-5.3-flashx, claude-haiku-5-5 and deepseek-v4.1-flash (verify on the live catalog first; prices above render live). Which is cheapest for you depends on your input-to-output ratio and whether you need a 1M window or verified tool calling.

Only if it clears your floor. Run your hardest prompts on the cheapest two candidates with the compare page before moving traffic, and keep a dearer id as a fallback for the cases the cheap one misses. A cheap model that fails one request in ten and triggers a human review is not cheap.

Put tokens per request and requests per day into the cost calculator; or call the estimate route with a sample prompt and no key, which prices it on every model at once. The smallest top-up and what it buys on each model are on pricing.

For a demo, yes; for production, rarely, because caps and data terms arrive with the price. The free LLM API page lists what is free here and what it is for.
Join on Telegram
Help