AI API prices by provider (16 providers, 725 models)
| Provider | Models | Cheapest input | Median input | Median output |
|---|---|---|---|---|
| Groq | 6 | $0.03 | $0.075 | $0.3 |
| AI21 Labs | 7 | $0.2 | $0.2 | $0.4 |
| Mistral AI | 50 | $0 | $0.3 | $0.9 |
| Fireworks AI | 319 | $0.001 | $0.3 | $0.84 |
| Cohere | 6 | $0 | $0.325 | $1.05 |
| DeepSeek | 16 | $0.14 | $0.3 | $1.20 |
| Cerebras | 8 | $0.1 | $0.5 | $0.775 |
| Together AI | 76 | $0 | $0.395 | $1.20 |
| Alibaba DashScope (Qwen) | 21 | $0.05 | $0.4 | $1.60 |
| Perplexity | 20 | $0 | $0.475 | $1.60 |
| Z.ai | 17 | $0 | $0.6 | $2.20 |
| Google Gemini | 45 | $0 | $0.5 | $3.00 |
| xAI | 31 | $1.00 | $1.25 | $2.50 |
| Moonshot AI | 13 | $0.2 | $1.00 | $4.00 |
| OpenAI | 73 | $0.05 | $2.50 | $10.00 |
| Anthropic | 17 | $0.1 | $5.00 | $25.00 |
Cheapest with ≥128K context
| Model | Provider | Input | Output |
|---|---|---|---|
| command-a-plus-05-2026 | Cohere | $0 | $0 |
| gemini-exp-1114 | Google Gemini | $0 | $0 |
| gemini-exp-1206 | Google Gemini | $0 | $0 |
| gemma-3-27b-it | Google Gemini | $0 | $0 |
| gemma-4-26b-a4b-it | Google Gemini | $0 | $0 |
| gemma-4-31b-it | Google Gemini | $0 | $0 |
| lyria-3-clip-preview | Google Gemini | $0 | $0 |
| lyria-3-pro-preview | Google Gemini | $0 | $0 |
| lyria-3.5 | Google Gemini | $0 | $0 |
| lyria-3.5-clip-preview | Google Gemini | $0 | $0 |
Cheapest with ≥200K context
| Model | Provider | Input | Output |
|---|---|---|---|
| gemini-exp-1114 | Google Gemini | $0 | $0 |
| gemini-exp-1206 | Google Gemini | $0 | $0 |
| gemma-4-26b-a4b-it | Google Gemini | $0 | $0 |
| gemma-4-31b-it | Google Gemini | $0 | $0 |
| lyria-realtime-exp | Google Gemini | $0 | $0 |
| labs-leanstral-1-5 | Mistral AI | $0 | $0 |
| labs-leanstral-1-5-1 | Mistral AI | $0 | $0 |
| Prism-ML/Ternary-Bonsai-27B | Together AI | $0 | $0 |
| glm-4.7-flash | Z.ai | $0 | $0 |
| nemotron-lightning-3p5-30b-a3b | Fireworks AI | $0.05 | $0.2 |
Cheapest with ≥1M context
| Model | Provider | Input | Output |
|---|---|---|---|
| gemini-exp-1114 | Google Gemini | $0 | $0 |
| gemini-exp-1206 | Google Gemini | $0 | $0 |
| lyria-realtime-exp | Google Gemini | $0 | $0 |
| accounts/fireworks/routers/spot-deepseek-v4-flash | Fireworks AI | $0.105 | $0.21 |
| deepseek-v4-flash | Fireworks AI | $0.14 | $0.28 |
| deepseek-v4-flash | Fireworks AI | $0.14 | $0.28 |
| gemini-2.5-flash-lite | Google Gemini | $0.1 | $0.4 |
| gpt-4.1-nano | OpenAI | $0.1 | $0.4 |
| deepseek-ai/DeepSeek-V4-Flash-0731 | Together AI | $0.14 | $0.28 |
| claude-haiku-5-5 | Anthropic | $0.1 | $0.5 |
Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.