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
Codegeex4Other33K$0.00$0.00ollama/codegeex4
CodegemmaGoogle8K$0.00$0.00ollama/codegemma
CodellamaMeta4K$0.00$0.00ollama/codellama
DeepSeek Coder V2 BaseDeepSeek8K$0.00$0.00ollama/deepseek-coder-v2-base
DeepSeek Coder V2 InstructDeepSeek66K$0.00$0.00ollama/deepseek-coder-v2-instruct
DeepSeek Coder V2 Lite BaseDeepSeek164K$0.00$0.00ollama/deepseek-coder-v2-lite-base
DeepSeek Coder V2 Lite InstructDeepSeek164K$0.00$0.00ollama/deepseek-coder-v2-lite-instruct
DeepSeek V3.1 671B CloudDeepSeek164K$0.00$0.00ollama/deepseek-v3.1:671b-cloud
GPT OSS 120B CloudOpenAI131K$0.00$0.00ollama/gpt-oss:120b-cloud
GPT OSS 20B CloudOpenAI131K$0.00$0.00ollama/gpt-oss:20b-cloud
Internlm2.5 20B ChatOther33K$0.00$0.00ollama/internlm2_5-20b-chat
Llama 2Meta4K$0.00$0.00ollama/llama2
Llama 2 13BMeta4K$0.00$0.00ollama/llama2:13b
Llama 2 70BMeta4K$0.00$0.00ollama/llama2:70b
Llama 2 7BMeta4K$0.00$0.00ollama/llama2:7b
Llama 2 UncensoredMeta4K$0.00$0.00ollama/llama2-uncensored
Llama 3Meta8K$0.00$0.00ollama/llama3
Llama 3 70BMeta8K$0.00$0.00ollama/llama3:70b
Llama 3 8BMeta8K$0.00$0.00ollama/llama3:8b
Llama 3.1Meta8K$0.00$0.00ollama/llama3.1
MistralMistral8K$0.00$0.00ollama/mistral
Mistral 7B Instruct V0.1Mistral33K$0.00$0.00ollama/mistral-7B-Instruct-v0.1
Mistral 7B Instruct V0.2Mistral33K$0.00$0.00ollama/mistral-7B-Instruct-v0.2
Mistral Large Instruct 2407Mistral66K$0.00$0.00ollama/mistral-large-instruct-2407
Mixtral 8x22B Instruct V0.1Mistral66K$0.00$0.00ollama/mixtral-8x22B-Instruct-v0.1
Mixtral 8x7B Instruct V0.1Mistral33K$0.00$0.00ollama/mixtral-8x7B-Instruct-v0.1
Orca MiniOther4K$0.00$0.00ollama/orca-mini
Qwen3 Coder 480B CloudAlibaba262K$0.00$0.00ollama/qwen3-coder:480b-cloud
VicunaOther2K$0.00$0.00ollama/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