Cheapest LLM APIs by Input Price

79 models qualify · sorted by input price · verified 2 October 2026

The cheapest is ERNIE X1 at $0.006 per 1M input tokens (Baidu ERNIE (百度)). Sorted, current, and computed from the published dataset rather than hand-maintained.

Before you switch. Input-heavy means your prompts, retrieved documents or uploaded files dominate the bill. If your model returns long answers, read the output cut instead — on most models output costs 3–8× more per token.

Full ranking

Top 15 of 79, ascending by input price per 1M tokens. Verified 2 October 2026.
ModelProviderCountingContext Input / 1MOutput / 1MMax output
ERNIE X1Baidu ERNIE (百度)estimate128K$0.006$0.02—
Doubao 1.6 FlashByteDance Doubao (火山引擎)estimate128K$0.01$0.11—
Doubao 1.6 LiteByteDance Doubao (火山引擎)estimate128K$0.02$0.04—
SenseNova 5.1 (商汤)SenseTime (商汤)estimate128K$0.04$0.7—
GPT-5 nanoOpenAIexact400K$0.05$0.4—
GPT-4.1 nanoOpenAIexact1M$0.1$0.4—
Gemini 2.5 Flash-LiteGoogle Geminiestimate1M$0.1$0.4—
Doubao 1.6 Pro (豆包)ByteDance Doubao (火山引擎)estimate256K$0.11$0.45—
DeepSeek V4 FlashDeepSeek (深度求索)estimate400K$0.14$0.28—
MiMo V2.5Xiaomi MiMo (小米)estimate1M$0.14$0.28—
GPT-4o miniOpenAIexact128K$0.15$0.6—
Llama 4 (Meta)US & EUestimate1M$0.15$0.45—
Qwen3 FlashAlibaba Qwen (阿里通义)estimate128K$0.15$1.50—
Grok 4.1 (xAI)US & EUestimate1M$0.2$1.00—
ERNIE 4.5 (文心一言)Baidu ERNIE (百度)estimate128K$0.2$0.55—

What a request actually costs

At $0.006 per 1M input tokens, ERNIE X1 costs:

  • 1M tokens — $0.006
  • 100M tokens — $0.6
  • 1B tokens — $6.00

Cheap per token stops being cheap once volume compounds. At a billion tokens the difference between the top two rows on this page is tens of thousands of dollars a year.

Prefer to check one model in detail? All 84 model calculators, every provider's pricing, or the raw JSON dataset.

FAQs

What is the cheapest input per 1M tokens right now?

ERNIE X1 at $0.006 per 1M input tokens, from Baidu ERNIE (百度), as verified on 2 October 2026.

Are these list prices?

Yes. Public list prices only. Batch rates, committed-use discounts and enterprise contracts are cheaper and are not modelled here. Check the verified date on each page before you budget against it.

Are the token counts exact?

Only for OpenAI models, which are counted with the same tiktoken tokenizer the API bills with. Every other vendor publishes no tokenizer, so those counts are calibrated estimates at 5-10% accuracy.

Does a cheap input price make a model cheap overall?

Not necessarily. On this page the ranking is by input price. Output rates run 3-8x input rates on most models, so a chat workload is usually an output workload.