Cheapest AI Models (API Price per Token) 2026
API price decides whether an AI feature is affordable at scale. This ranking orders models by a blended price per million tokens, so you can see which ones are cheapest to run and what you give up in quality for the savings.
101 models ranked /Data verified /Reviewed by Aakash Yadav
| # | Model | Score | ||||
|---|---|---|---|---|---|---|
| 01 | Alibaba$0.03 in / $0.13 out | 100 | 1M | $0.03 | $0.13 | Price |
| 02 | Tencent$0.07 in / $0.281 out | 86 | 1M | $0.07 | $0.281 | Price |
| 03 | Inkling 2 MiniOpen Thinking Machines$0.075 in / $0.30 out | 85 | 1M | $0.075 | $0.30 | Price |
| 04 | Step 3.5 FlashOpen StepFun$0.09 in / $0.30 out | 84 | 262K | $0.09 | $0.30 | Price |
| 05 | MiMo V2.6 FlashOpen Xiaomi$0.14 in / $0.28 out | 80 | 1M | $0.14 | $0.28 | Price |
| 06= | Anthropic$0.10 in / $0.50 out | 78 | 1M | $0.10 | $0.50 | Security · Price |
| 06= | OpenAI$0.10 in / $0.50 out | 78 | 1.1M | $0.10 | $0.50 | Security · Price |
| 06= | Meta$0.10 in / $0.50 out | 78 | 1M | $0.10 | $0.50 | Price |
| 06= | Subquadratic$0.10 in / $0.50 out | 78 | 4.2M | $0.10 | $0.50 | Price |
| 10 | Alibaba$0.15 in / $0.47 out | 76 | 1M | $0.15 | $0.47 | Price |
| 11= | GLM-5.3 FlashOpen Zhipu / Z.ai$0.15 in / $0.50 out | 75 | 1M | $0.15 | $0.50 | Price |
| 11= | Alibaba$0.16 in / $0.47 out | 75 | 1M | $0.16 | $0.47 | Price |
| 13 | Tencent Hy3Open Tencent$0.14 in / $0.58 out | 74 | 262K | $0.14 | $0.58 | Price |
| 14 | MiniMax$0.15 in / $0.60 out | 73 | 1M | $0.15 | $0.60 | Price |
| 15 | NVIDIA$0.20 in / $0.50 out | 73 | 262K | $0.20 | $0.50 | Price |
| 16 | Ornith 1.5 122BOpen Ornith$0.16 in / $0.64 out | 72 | 262K | $0.16 | $0.64 | Price |
| 17 | Step 3.7 FlashOpen StepFun$0.20 in / $1.15 out | 65 | 256K | $0.20 | $1.15 | Price |
| 18= | OpenAI$0.20 in / $1.20 out | 64 | 1.1M | $0.20 | $1.20 | Price |
| 18= | Ling 3.1 FlashOpen inclusionAI (Ant Group)$0.30 in / $0.90 out | 64 | 262K | $0.30 | $0.90 | Price |
| 20 | Inkling 2 SmallOpen Thinking Machines$0.30 in / $1.00 out | 63 | 1M | $0.30 | $1.00 | Price |
| 21= | DeepSeek$0.30 in / $1.20 out | 62 | 1M | $0.30 | $1.20 | Security · Intelligence |
| 21= | LongCat 2.0Open Meituan$0.30 in / $1.20 out | 62 | 1M | $0.30 | $1.20 | Price |
| 21= | MiniMax M2.5Open MiniMax$0.30 in / $1.20 out | 62 | 200K | $0.30 | $1.20 | Price |
| 21= | MiniMax M2.7Open MiniMax$0.30 in / $1.20 out | 62 | 200K | $0.30 | $1.20 | Price |
| 21= | MiniMax-M3Open MiniMax$0.30 in / $1.20 out | 62 | — | $0.30 | $1.20 | Coding · Security |
| 26 | MiMo V2.6 ProOpen Xiaomi$0.435 in / $0.87 out | 61 | 1M | $0.435 | $0.87 | Price |
| 27 | Google$0.25 in / $1.50 out | 61 | 1M | $0.25 | $1.50 | Price |
| 28 | Zhipu / Z.ai$0.37 in / $1.25 out | 60 | 1M | $0.37 | $1.25 | Price |
| 29 | Inkling SmallOpen Thinking Machines$0.50 in / $1.20 out | 57 | 1M | $0.50 | $1.20 | Price |
| 30 | Alibaba$0.40 in / $1.60 out | 57 | 1M | $0.40 | $1.60 | Price |
| 31 | Google$0.30 in / $2.50 out | 54 | 1M | $0.30 | $2.50 | Price |
| 32= | Mistral Large 4Open Mistral$0.70 in / $2.10 out | 50 | 1M | $0.70 | $2.10 | Intelligence · Price |
| 32= | Nemotron 3 UltraOpen NVIDIA$0.60 in / $2.40 out | 50 | 1M | $0.60 | $2.40 | Price |
| 34= | Alibaba$0.50 in / $3.00 out | 49 | 200K | $0.50 | $3.00 | Price |
| 34= | Qwen3.8-27BOpen Alibaba$0.50 in / $3.00 out | 49 | 262K | $0.50 | $3.00 | Security · Price |
| 36 | Kimi K2.5Open Moonshot AI$0.60 in / $3.00 out | 48 | 256K | $0.60 | $3.00 | Price |
| 37 | Tencent Hy4Open Tencent$0.834 in / $2.501 out | 47 | 1M | $0.834 | $2.501 | Price |
| 38 | MiniMax$0.80 in / $3.10 out | 45 | — | $0.80 | $3.10 | Coding · Price |
| 39 | Step 5Open StepFun$1.00 in / $2.70 out | 45 | 1M | $1.00 | $2.70 | Price |
| 40= | Ergo 1.0Open Amazon$1.00 in / $3.00 out | 44 | 1M | $1.00 | $3.00 | Price |
| 40= | Google$0.75 in / $3.75 out | 44 | — | $0.75 | $3.75 | Intelligence · Security |
| 42 | GLM-5Open Zhipu / Z.ai$1.00 in / $3.20 out | 43 | 200K | $1.00 | $3.20 | Price |
| 43 | OpenAI$0.75 in / $4.50 out | 42 | 400K | $0.75 | $4.50 | Price |
| 44= | Kimi K2.6Open Moonshot AI$0.95 in / $4.00 out | 42 | 256K | $0.95 | $4.00 | Price |
| 44= | Kimi K2.7 CodeOpen Moonshot AI$0.95 in / $4.00 out | 42 | 256K | $0.95 | $4.00 | Price |
| 46 | InklingOpen Thinking Machines$1.00 in / $4.05 out | 41 | 256K | $1.00 | $4.05 | Price |
| 47 | DeepSeek-V4-ProOpen DeepSeek$1.32 in / $3.96 out | 39 | 1M | $1.32 | $3.96 | Security · Price |
| 48= | Anthropic$1.00 in / $5.00 out | 39 | 200K | $1.00 | $5.00 | Price |
| 48= | OpenAI$1.00 in / $5.00 out | 39 | 1.1M | $1.00 | $5.00 | Intelligence · Price |
| 48= | Meta$1.25 in / $4.25 out | 39 | 1M | $1.25 | $4.25 | Price |
| 48= | Meta$1.25 in / $4.25 out | 39 | 1M | $1.25 | $4.25 | Price |
| 48= | Meta$1.25 in / $4.25 out | 39 | 1M | $1.25 | $4.25 | Security · Price |
| 48= | Muse Spark OpenOpen Meta$1.25 in / $4.25 out | 39 | 1M | $1.25 | $4.25 | Price |
| 54= | GLM-5.1Open Zhipu / Z.ai$1.40 in / $4.40 out | 38 | 200K | $1.40 | $4.40 | Price |
| 54= | GLM-5.2Open Zhipu / Z.ai$1.40 in / $4.40 out | 38 | 1M | $1.40 | $4.40 | Price |
| 54= | GLM-5.3Open Zhipu / Z.ai$1.40 in / $4.40 out | 38 | — | $1.40 | $4.40 | Security · Intelligence |
| 54= | Zhipu / Z.ai$1.40 in / $4.40 out | 38 | — | $1.40 | $4.40 | Intelligence · Price |
| 58 | Alibaba$1.50 in / $4.50 out | 37 | 1M | $1.50 | $4.50 | Coding · Intelligence |
| 59 | Alibaba$1.30 in / $7.80 out | 33 | 200K | $1.30 | $7.80 | Price |
| 60= | Google$1.50 in / $7.50 out | 32 | 1M | $1.50 | $7.50 | Price |
| 60= | Google$1.50 in / $7.50 out | 32 | 1M | $1.50 | $7.50 | Price |
| 60= | Google$1.50 in / $7.50 out | 32 | 1M | $1.50 | $7.50 | Intelligence · Price |
| 60= | xAI$2.00 in / $6.00 out | 32 | 500K | $2.00 | $6.00 | Price |
| 60= | xAI$2.00 in / $6.00 out | 32 | 500K | $2.00 | $6.00 | Security · Price |
| 60= | xAI$2.00 in / $6.00 out | 32 | 500K | $2.00 | $6.00 | Security · Intelligence |
| 60= | Qwen3.8-MaxOpen Alibaba$2.00 in / $6.00 out | 32 | 1M | $2.00 | $6.00 | Coding · Security |
| 67 | Google$1.50 in / $9.00 out | 30 | 1M | $1.50 | $9.00 | Price |
| 68= | OpenAI$1.25 in / $10.00 out | 30 | — | $1.25 | $10.00 | Price |
| 68= | OpenAI$1.25 in / $10.00 out | 30 | — | $1.25 | $10.00 | Price |
| 70 | OpenAI$2.00 in / $8.00 out | 30 | 400K | $2.00 | $8.00 | Price |
| 71 | Alibaba$2.50 in / $7.50 out | 28 | 1M | $2.50 | $7.50 | Price |
| 72= | Anthropic$2.00 in / $10.00 out | 27 | 1M | $2.00 | $10.00 | Price |
| 72= | Anthropic$2.00 in / $10.00 out | 27 | 1M | $2.00 | $10.00 | Coding · Intelligence |
| 72= | OpenAI$2.00 in / $10.00 out | 27 | 1.1M | $2.00 | $10.00 | Price |
| 72= | OpenAI$2.00 in / $10.00 out | 27 | 1.1M | $2.00 | $10.00 | Price |
| 72= | OpenAI$2.00 in / $10.00 out | 27 | 1.1M | $2.00 | $10.00 | Coding · Intelligence |
| 72= | Moonshot AI$2.00 in / $10.00 out | 27 | 1M | $2.00 | $10.00 | Intelligence · Price |
| 78 | OpenAI$2.00 in / $12.00 out | 25 | 1.1M | $2.00 | $12.00 | Price |
| 79 | OpenAI$2.50 in / $15.00 out | 22 | 400K | $2.50 | $15.00 | Price |
| 80= | Anthropic$3.00 in / $15.00 out | 20 | 200K | $3.00 | $15.00 | Price |
| 80= | Anthropic$3.00 in / $15.00 out | 20 | 1M | $3.00 | $15.00 | Price |
| 80= | Google$3.00 in / $15.00 out | 20 | 1M | $3.00 | $15.00 | Intelligence · Coding |
| 80= | Kimi K3Open Moonshot AI$3.00 in / $15.00 out | 20 | 1M | $3.00 | $15.00 | Security · Intelligence |
| 80= | Alibaba$4.00 in / $12.00 out | 20 | 1M | $4.00 | $12.00 | Price |
| 85= | Anthropic$4.00 in / $20.00 out | 16 | 1M | $4.00 | $20.00 | Coding · Intelligence |
| 85= | Google$4.00 in / $20.00 out | 16 | — | $4.00 | $20.00 | Security · Intelligence |
| 85= | Google$4.00 in / $20.00 out | 16 | 1M | $4.00 | $20.00 | Coding · Intelligence |
| 85= | Meta$4.00 in / $20.00 out | 16 | 1M | $4.00 | $20.00 | Price |
| 89= | Anthropic$5.00 in / $25.00 out | 12 | 200K | $5.00 | $25.00 | Price |
| 89= | Anthropic$5.00 in / $25.00 out | 12 | 1M | $5.00 | $25.00 | Price |
| 89= | Anthropic$5.00 in / $25.00 out | 12 | 1M | $5.00 | $25.00 | Price |
| 89= | Anthropic$5.00 in / $25.00 out | 12 | 1M | $5.00 | $25.00 | Intelligence · Security |
| 93= | Sakana AI$5.00 in / $30.00 out | 10 | 1M | $5.00 | $30.00 | Price |
| 93= | OpenAI$5.00 in / $30.00 out | 10 | 1.1M | $5.00 | $30.00 | Security · Coding |
| 93= | OpenAI$5.00 in / $30.00 out | 10 | — | $5.00 | $30.00 | Security · Coding |
| 96= | Anthropic$8.00 in / $40.00 out | 4 | 1M | $8.00 | $40.00 | Coding · Intelligence |
| 96= | Anthropic$8.00 in / $40.00 out | 4 | 1M | $8.00 | $40.00 | Price |
| 96= | OpenAI$8.00 in / $40.00 out | 4 | 1.1M | $8.00 | $40.00 | Intelligence · Coding |
| 99= | Anthropic$10.00 in / $50.00 out | 0 | 1M | $10.00 | $50.00 | Price |
| 99= | Anthropic$10.00 in / $50.00 out | 0 | 1M | $10.00 | $50.00 | Intelligence · Coding |
| 99= | OpenAI$10.00 in / $50.00 out | 0 | — | $10.00 | $50.00 | Intelligence · Coding |
No models match. Clear the search or switch the filter back to All. | ||||||
How we score this
We blend input and output prices at a 3:1 ratio, a typical mix for chat and agent workloads, and score models on a log scale so a model ten times cheaper scores meaningfully higher. Open-weights and closed models are ranked together. Where the maker sells no API of its own, or its price page could not be read, we use a reseller’s listed rate (Alibaba Cloud, or Command Code’s model list) and say so on the model page. Open-weights models can also be self-hosted, which can cost less at high volume but depends on your hardware.
Frequently asked questions
What is the cheapest AI model to use through an API?
The top row of this ranking has the lowest blended price per million tokens among the models we track. Check its quality scores too: the cheapest model is not always the best value.
Are open-source models included in the price ranking?
Yes. Open-weights models such as DeepSeek, Qwen, Kimi, GLM, MiniMax and Mistral are ranked by their hosted API price alongside closed models. You can also self-host them, which can be cheaper at scale, but that cost depends on your own hardware.
What does “blended price” mean?
It is a single number that combines input and output token prices, weighted 3 parts input to 1 part output, so models can be compared on one scale.
Want the right model built into your product?
Codestruk’s AI developers pick, integrate and tune the model that fits your use case and budget, from prototypes to production.


