Ollama LLM API pricing
Every model Ollama serves, with its pricing per 1M tokens and the exact model ID to copy. Sorted cheapest input first, with models Ollama lists no paid price for at the end. Listed prices from LiteLLM, OpenRouter and Vercel.
Models served
29
on this provider
Cheapest input
$0.00
per 1M tokens
Cheapest output
$0.00
per 1M tokens
Max context
262K
tokens
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.
| Model ID | |||||
|---|---|---|---|---|---|
| Codegeex4 | Other | 33K | $0.00 | $0.00 | ollama/codegeex4 |
| Codegemma | 8K | $0.00 | $0.00 | ollama/codegemma | |
| Codellama | Meta | 4K | $0.00 | $0.00 | ollama/codellama |
| DeepSeek Coder V2 Base | DeepSeek | 8K | $0.00 | $0.00 | ollama/deepseek-coder-v2-base |
| DeepSeek Coder V2 Instruct | DeepSeek | 66K | $0.00 | $0.00 | ollama/deepseek-coder-v2-instruct |
| DeepSeek Coder V2 Lite Base | DeepSeek | 164K | $0.00 | $0.00 | ollama/deepseek-coder-v2-lite-base |
| DeepSeek Coder V2 Lite Instruct | DeepSeek | 164K | $0.00 | $0.00 | ollama/deepseek-coder-v2-lite-instruct |
| DeepSeek V3.1 671B Cloud | DeepSeek | 164K | $0.00 | $0.00 | ollama/deepseek-v3.1:671b-cloud |
| GPT OSS 120B Cloud | OpenAI | 131K | $0.00 | $0.00 | ollama/gpt-oss:120b-cloud |
| GPT OSS 20B Cloud | OpenAI | 131K | $0.00 | $0.00 | ollama/gpt-oss:20b-cloud |
| Internlm2.5 20B Chat | Other | 33K | $0.00 | $0.00 | ollama/internlm2_5-20b-chat |
| Llama 2 | Meta | 4K | $0.00 | $0.00 | ollama/llama2 |
| Llama 2 13B | Meta | 4K | $0.00 | $0.00 | ollama/llama2:13b |
| Llama 2 70B | Meta | 4K | $0.00 | $0.00 | ollama/llama2:70b |
| Llama 2 7B | Meta | 4K | $0.00 | $0.00 | ollama/llama2:7b |
| Llama 2 Uncensored | Meta | 4K | $0.00 | $0.00 | ollama/llama2-uncensored |
| Llama 3 | Meta | 8K | $0.00 | $0.00 | ollama/llama3 |
| Llama 3 70B | Meta | 8K | $0.00 | $0.00 | ollama/llama3:70b |
| Llama 3 8B | Meta | 8K | $0.00 | $0.00 | ollama/llama3:8b |
| Llama 3.1 | Meta | 8K | $0.00 | $0.00 | ollama/llama3.1 |
| Mistral | Mistral | 8K | $0.00 | $0.00 | ollama/mistral |
| Mistral 7B Instruct V0.1 | Mistral | 33K | $0.00 | $0.00 | ollama/mistral-7B-Instruct-v0.1 |
| Mistral 7B Instruct V0.2 | Mistral | 33K | $0.00 | $0.00 | ollama/mistral-7B-Instruct-v0.2 |
| Mistral Large Instruct 2407 | Mistral | 66K | $0.00 | $0.00 | ollama/mistral-large-instruct-2407 |
| Mixtral 8x22B Instruct V0.1 | Mistral | 66K | $0.00 | $0.00 | ollama/mixtral-8x22B-Instruct-v0.1 |
| Mixtral 8x7B Instruct V0.1 | Mistral | 33K | $0.00 | $0.00 | ollama/mixtral-8x7B-Instruct-v0.1 |
| Orca Mini | Other | 4K | $0.00 | $0.00 | ollama/orca-mini |
| Qwen3 Coder 480B Cloud | Alibaba | 262K | $0.00 | $0.00 | ollama/qwen3-coder:480b-cloud |
| Vicuna | Other | 2K | $0.00 | $0.00 | ollama/vicuna |
Listed prices from LiteLLM, OpenRouter and Vercel · catalogue refreshed Oct 14, 2026
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI