Blog

Cheapest LLM API in 2026: price per million tokens, ranked

Prices checked Nov 26, 2026 · 4 min read

Cheapest LLM API: nine chat models ranked by price per million tokens

The cheapest LLM API in our catalog is Claude Haiku 5.5, at $0.06 per 1M input tokens and $0.30 per 1M output tokens. GPT-6.2 Sol and Gemini 4 Hydrogen come next at $0.60 and $3.00, then Grok 4.7 at $0.80 and $2.40. Which one is cheapest for you depends on how many tokens go in and how many come out, so the sections below rank all nine chat models on one fixed job.

One limit before the ranking: it covers the nine chat models on TapModels. It leaves out the rest of the market, such as small open-weight models you host yourself. To compare those, run the same arithmetic shown here on their published prices.

Cheapest LLM API, ranked by one fixed job

Take a batch job of 20 million input tokens and 4 million output tokens, such as summarising 25,000 long documents. The cost is 20 x input price + 4 x output price, with prices in dollars per 1M tokens.

RankModelInput / 1MOutput / 1MCost of the jobList price job
1Claude Haiku 5.5$0.06$0.30$2.40$4.00
2GPT-6.2 Sol$0.60$3.00$24.00$80.00
2Gemini 4 Hydrogen$0.60$3.00$24.00$60.00
4Grok 4.7$0.80$2.40$25.60$64.00
5Claude Sonnet 5.5$0.80$4.00$32.00$80.00
6Gemini 4 Neon$1.20$6.00$48.00$120.00
7Claude Opus 5.5$1.60$8.00$64.00$160.00
8GPT-6.2 Astra$2.40$12.00$96.00$320.00
9Claude Fable 5$4.00$20.00$160.00$400.00

The last column uses each provider's list price as recorded in our catalog on 2026-11-26. The Haiku row works out like this:

  • Input: 20 x $0.06 = $1.20
  • Output: 4 x $0.30 = $1.20
  • Total: $2.40, against $4.00 at list price (20 x $0.10 + 4 x $0.50)

The biggest gap in the table is between rank 1 and rank 2: Haiku 5.5 costs a tenth of what Sol does for this job. Ranks 2 to 5 sit within $8 of each other, so pick between them on how well each handles your prompts, since price barely separates them.

Why the token mix changes the ranking

Output tokens cost more than input tokens, and the ratio varies by model. Haiku, Sonnet, Opus, Fable, Sol, Astra, Hydrogen and Neon charge 5 times more for output. Grok 4.7 charges only 3 times more ($2.40 against $0.80).

So Grok gets relatively cheaper as a job gets more output heavy. Take a job with 1M tokens in and 5M tokens out, such as long-form generation:

  • Grok 4.7: 1 x $0.80 + 5 x $2.40 = $12.80
  • GPT-6.2 Sol: 1 x $0.60 + 5 x $3.00 = $15.60
  • Gemini 4 Hydrogen: 1 x $0.60 + 5 x $3.00 = $15.60

Grok ranked fourth in the batch job above, behind Sol and Hydrogen. In this output-heavy job it comes first of the three. Read only the input price column and you will pick wrong. Our LLM cost calculator does this multiplication for any model and token count.

Cheap per token is not always cheap per task

A model that is wrong half the time also makes you pay for the retry. Say a small model finishes your task correctly 60% of the time and a mid-size model 95% of the time. If the small model costs a tenth as much, it still wins, because ten attempts cost the same as one. If it costs half as much, it loses.

Before you commit:

  1. Pick 20 real prompts from your product.
  2. Run them on the cheapest model and on the next one up.
  3. Count how many outputs you would ship without editing.
  4. Divide total cost by shipped outputs.

Put that number, cost per usable result, in your spreadsheet. Per-token price is one input to it.

Using the cheapest model through one key

All nine chat models sit behind the same OpenAI-compatible endpoint, so switching models means changing the model string:

from openai import OpenAI
import os

client = OpenAI(base_url="https://api.tapmodels.com/v1", api_key=os.environ["TAPMODELS_API_KEY"])
res = client.chat.completions.create(
    model="claude-haiku-5-5",
    messages=[{"role": "user", "content": "Summarise this ticket in two sentences: ..."}],
    max_tokens=200,
)
print(res.choices[0].message.content)

Swap claude-haiku-5-5 for gpt-6-2-sol or gemini-4-hydrogen and rerun your 20 prompts. Credits are prepaid at 100 per dollar. You can set a spend limit on each key, so a runaway loop stops at a number you chose. Chat is billed per token at the model's price, as set out in the API contract.

When a pricier model is the cheap choice

The top of the table is the right buy in three cases:

  • Agentic coding or long multi-step work, where a model that finishes in one pass beats a cheap one that loops.
  • Short, high-value outputs. If each call earns you money, the token bill is noise.
  • Strict accuracy needs, because review time costs more than tokens.

For everything else, such as classification, extraction, routing and first drafts, start at the top of the table and move down only when the output quality forces you to. The LLM price comparison covers every model, and LLM API pricing explained covers how the billing works. To run your own numbers, open the LLM cost calculator.

Frequently asked questions

What is the cheapest LLM API?

In the TapModels catalog, Claude Haiku 5.5 is the cheapest chat model: $0.06 per 1M input tokens and $0.30 per 1M output tokens. For the same job it costs about a tenth of GPT-6.2 Sol, the next cheapest. It is a small model, so test it on your task first.

Is the cheapest LLM API also the best one?

No. Price per token ignores quality. A cheaper model that needs two attempts or a longer prompt can cost more per finished task. Test two or three models on your own prompts, then compare the cost of one completed task, not the price per million tokens.

How do I compare LLM API prices fairly?

Use one fixed job: the same number of input and output tokens for every model. Multiply input tokens by the input price and output tokens by the output price, then add them. Output tokens cost 3 to 5 times more than input, so the mix matters.

Can I use a spending cap so a cheap model stays cheap?

Yes. Each TapModels API key can carry a spend limit in credits. When the limit would be exceeded, the API returns a 402 key_limit_reached error instead of running the request.

Sources