Cheapest AI APIs

The 30 cheapest coding models right now, ranked by lowest input price across every host that serves them.

#ModelCheapest hostInput $/MTokOutput $/MTokHostsSWE-benchSave
1DeepSeek V4 Flash 0731OpenInference$0.01$0.077388.8%−96%
2DeepSeek V4.1 FlashDecart$0.01$0.18391614.0%−77%
3Qwen3.8 27BTenstorrent$0.02$0.50371593.3%−93%
4GLM 5.3 FlashStreamLake$0.04$0.14461607.1%−90%
5Qwen3.6 35B A3BDarkbloom$0.05$0.70261250.2%−70%
6GLM 5.3Morph$0.06$2.06491614.5%−69%
7Gemma 4 31BReka$0.07$0.30391364.1%−89%
8GLM 5.2Decart$0.07$1.68781593.3%−84%
9MiMo-V2-FlashChutes$0.09$0.2941330.6%−16%
10Laguna XS.2Poolside$0.10$0.2011302.4%
11GPT-6 LunaOpenAI$0.10$0.5031582.0%−9%
12MiMo-V2.5GMICloud$0.10$0.24161437.2%−79%
13Gemma 4 26B A4BAKI.IO$0.12$0.5811361.4%
14Gemini 3.1 Flash Lite PreviewGoogle AI Studio$0.13$0.75362.8%−50%
15Gemini 3.1 Flash LiteGoogle AI Studio$0.13$0.7541254.3%−50%
16DeepSeek V3.2 ExpAtlasCloud$0.13$0.2061271.8%−50%
17MiniMax M2.5SambaNova$0.15$0.59401384.1%−69%
18Gemini 3.5 Flash LiteGoogle AI Studio$0.15$1.2541446.6%−50%
19GPT-4o-mini (2024-07-18)OpenAI$0.15$0.60264.8%
20Qwen3.5-27BAlibaba$0.20$1.56121357.4%−35%
21Grok 4 FastXai$0.20$0.5011149.0%
22Grok Code Fast 1Xai$0.20$1.5011165.1%
23Laguna M.1Poolside$0.20$0.4011347.5%
24GPT-5.6 LunaAzure$0.20$1.20675.7%−9%
25GPT-5.4 NanoOpenAI$0.20$1.25469.8%
26DeepSeek V3.2GMICloud$0.21$0.31411324.7%−93%
27MiniMax M2.7GMICloud$0.21$0.84231397.5%−65%
28Trinity Large ThinkingArcee Ai$0.22$0.8051236.6%−24%
29DeepSeek V4 Pro 0813Sail Research$0.23$1.984396.4%−52%
30MiniMax M3CoreWeave$0.23$0.96311486.7%−69%

Looking for flat-rate plans instead? See the AI Deals page for every subscription plan worth knowing about.