Free and Cheapest LLM APIs
The most affordable LLM APIs for developers, sorted by output cost per million tokens
mistralai
Ministral 3 3BUsable
Input
$0.10
Output
$0.10
Context
131K
mistralai
Mistral Small 3.1Usable
Input
$0.03
Output
$0.11
Context
128K
mistralai
Ministral 3 8BUsable
Input
$0.15
Output
$0.15
Context
262K
mistralai
Mistral Small 3.2
Input
$0.07
Output
$0.20
Context
131K
mistralai
Ministral 3 14BUsable
Input
$0.20
Output
$0.20
Context
262K
mistralai
Devstral Small 1.1
Input
$0.10
Output
$0.30
Context
131K
openai
GPT-5 NanoStrong
Input
$0.05
Output
$0.40
Context
400K
openai
GPT-4.1 NanoStrong
Input
$0.10
Output
$0.40
Context
1M
google
Gemini 2.5 Flash-LiteStrong
Input
$0.10
Output
$0.40
Context
1M
x-ai
Grok 4.1 FastStrong
Input
$0.20
Output
$0.50
Context
2M
mistralai
Mistral Small 4Strong
Input
$0.15
Output
$0.60
Context
256K
mistralai
Codestral 2508Usable
Input
$0.30
Output
$0.90
Context
256K
openai
GPT-5.4 NanoUsable
Input
$0.20
Output
$1.25
Context
1.1M
x-ai
Grok Code Fast 1Usable
Input
$0.20
Output
$1.50
Context
256K
google
Gemini 3.1 Flash-Lite PreviewStrong
Input
$0.25
Output
$1.50
Context
1M
How We Picked
Ranked by cheapest all from our nightly benchmark data. Full methodology →