Best LLM APIs (2026)
Top commercial LLM APIs ranked by input price, then context window. Compare OpenAI, Anthropic, Google, and open-weight APIs from Groq, Together, Fireworks, and more.
| # | Model | Input $/1M | Output $/1M | |
|---|---|---|---|---|
| 1 | Trinity-Large-Preview Tools | Free | Free | |
| 2 | Firefunction V2 | Free | Free | |
| 3 | Gemma 3 | Free | Free | |
| 4 | Gemma 3n | Free | Free | |
| 5 | Together AI - Gemma 3n-e4B Tools | $0.02 | $0.04 | |
| 6 | Aleph Alpha Luminous Base | $0.02 | $0.06 | |
| 7 | Llama 3.1 8B Instruct | $0.02 | $0.05 | |
| 8 | Mistral NeMo (2407) | $0.02 | $0.04 | |
| 9 | Gemma 3n 4B (free) | GPU·hr | $1.00 | |
| 10 | Llama 3.2 1B Instruct | $0.03 | $0.04 | |
| 11 | gpt-oss-20b Tools | $0.03 | $0.14 | |
| 12 | Llama Prompt Guard 2 22M | $0.03 | $0.03 | |
| 13 | Granite 3.3 8B Instruct Tools | GPU·hr | $1.00 | |
| 14 | Gemma 2 9B Instruct | $0.03 | $0.09 | |
| 15 | Llama 3 8B Instruct | $0.03 | $0.04 | |
| 16 | Qwen2.5 Coder 7B Instruct | $0.03 | $0.09 | |
| 17 | Nova Micro | $0.04 | $0.14 | |
| 18 | Gemini 1.5 Flash on Google Vertex AI Vision | $0.04 | $0.10 | |
| 19 | gpt-oss-120b Tools | $0.04 | $0.19 | |
| 20 | Aleph Alpha Luminous Extended | $0.04 | $0.12 |
Compare Top Picks
Browse Other Categories
Best LLMs for Code GenerationBest Open Source LLMsBest Multimodal / Vision LLMsBest LLMs for Reasoning & MathBest Small Language Models (SLMs)Best LLMs for Function Calling & Tool UseCheapest LLM APIsBest Long Context LLMsBest LLMs for EnterpriseBest Free LLMsBest LLMs for WritingBest LLMs for Customer Support