Ollama Cloud
A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.
Addresses and facts
- OpenAI Chat Completions:
https://ollama.com/v1provider documentation, read - OpenAI Responses:
https://ollama.com/v1The cloud address answers stateless Responses requests only. provider documentation, read - Anthropic Messages:
https://ollama.comThe cloud address needs Authorization: Bearer and does not accept x-api-key alone. provider documentation, read - Native API:
https://ollama.com/apiprovider documentation, read
- Authentication
- Authorization: Bearer, with the key in
OLLAMA_API_KEYprovider documentation, read - Structured output
- No Ollama's documentation source says: "Ollama's Cloud currently does not support structured outputs." The commit of April 22, 2026 added that note, and issue 12362, "JSON reply schema is ignored by Cloud model", has been open since September 21, 2025. Check each reply against your schema yourself. Read the page provider documentation, read
- Tool calling
- Yes provider documentation, read
- Rate limits
- Usage is limited by the plan; the account's usage page shows it. Read the page provider documentation, read
- Prices
- Read the page provider documentation, read
- Data retention
- Content sent to cloud models is processed to answer the request and is not stored beyond it. Read the page provider documentation, read
- Documentation
- Unknown
- Output limits Baltor recorded
- Baltor's own provider client declares an output limit for deepseek-v4-flash:0731 (65,536 tokens, 2026-08-25), deepseek-v4-pro:0813 (65,536 tokens, 2026-08-31), deepseek-v4.1-flash (393,216 tokens, 2026-09-14), gemma4:31b (262,144 tokens, 2026-09-06), glm-5.1 (131,072 tokens, 2026-09-14), glm-5.2 (131,072 tokens, 2026-09-14), glm-5.3 (1,048,576 tokens, 2026-09-14), glm-5.3-flash (1,048,576 tokens, 2026-08-31), gpt-oss:120b (131,072 tokens, 2026-09-14), gpt-oss:20b (131,072 tokens, 2026-09-06), kimi-k2.6 (262,144 tokens, 2026-09-14), kimi-k2.7-code (262,144 tokens, 2026-09-14) and more. Baltor records, read
Harness setup
Replace deepseek-v4-flash with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ollama-cloud": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama Cloud",
"options": {
"baseURL": "https://ollama.com/v1",
"apiKey": "{env:OLLAMA_API_KEY}"
},
"models": {
"deepseek-v4-flash": {
"name": "deepseek-v4-flash"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"ollama-cloud": {
"baseUrl": "https://ollama.com/v1",
"api": "openai-completions",
"apiKey": "$OLLAMA_API_KEY",
"models": [
{
"id": "deepseek-v4-flash"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Put this in ~/.codex/config.toml:
model = "deepseek-v4-flash"
model_provider = "ollama-cloud"
[model_providers.ollama-cloud]
name = "Ollama Cloud"
base_url = "https://ollama.com/v1"
env_key = "OLLAMA_API_KEY"- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
export ANTHROPIC_BASE_URL="https://ollama.com"
export ANTHROPIC_AUTH_TOKEN="$OLLAMA_API_KEY"
export ANTHROPIC_MODEL="deepseek-v4-flash"
claude- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
- The cloud address needs Authorization: Bearer and does not accept x-api-key alone.
From Claude Code documentation, read .
Models it lists
Prices in US dollars per million tokens, input and output, as models.dev, read records them.
| Model | Input | Output | Context | As of |
|---|---|---|---|---|
deepseek-v4-flash deepseek-v4-flash | 0.220 USD | 0.660 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Flash 0731 deepseek-v4-flash:0731 | 0.220 USD | 0.660 USD | 1,048,576 | older than 30 days |
deepseek-v4-pro deepseek-v4-pro | 0.660 USD | 1.98 USD | 1,048,576 | older than 30 days |
DeepSeek V4 Pro 0813 deepseek-v4-pro:0813 | 0.660 USD | 1.98 USD | 1,048,576 | older than 30 days |
DeepSeek V4.1 Flash deepseek-v4.1-flash | 0.150 USD | 0.600 USD | 1,048,576 | older than 30 days |
DeepSeek V4.1 Flash 1017 deepseek-v4.1-flash:1017 | 0.150 USD | 0.600 USD | 1,048,576 | |
gemma4:31b gemma4:31b | 0.140 USD | 0.400 USD | 262,144 | older than 30 days |
glm-5.1 glm-5.1 | 1.00 USD | 3.20 USD | 202,752 | older than 30 days |
GLM-5.2 glm-5.2 | 1.40 USD | 4.40 USD | 976,000 | older than 30 days |
GLM-5.3 glm-5.3 | 1.40 USD | 4.40 USD | 1,048,576 | older than 30 days |
GLM-5.3-Flash glm-5.3-flash | 0.150 USD | 0.500 USD | 1,000,000 | older than 30 days |
gpt-oss:120b gpt-oss:120b | 0.150 USD | 0.600 USD | 131,072 | older than 30 days |
gpt-oss:20b gpt-oss:20b | 0.070 USD | 0.300 USD | 131,072 | older than 30 days |
kimi-k2.5 kimi-k2.5 | Unknown | Unknown | 262,144 | |
kimi-k2.6 kimi-k2.6 | 0.950 USD | 4.00 USD | 262,144 | older than 30 days |
kimi-k2.7-code kimi-k2.7-code | 0.950 USD | 4.00 USD | 262,144 | older than 30 days |
kimi-k3 kimi-k3 | 3.00 USD | 15.00 USD | 1,048,576 | older than 30 days |
minimax-m2.5 minimax-m2.5 | Unknown | Unknown | 204,800 | |
minimax-m2.7 minimax-m2.7 | 0.300 USD | 1.20 USD | 196,608 | older than 30 days |
minimax-m3 minimax-m3 | 0.600 USD | 2.40 USD | 512,000 | older than 30 days |
MiniMax-M3.1-Flash minimax-m3.1-flash | 0.150 USD | 0.600 USD | 1,000,000 | |
mistral-large-3:675b mistral-large-3:675b | 0.500 USD | 1.50 USD | 262,144 | older than 30 days |
Mistral Large 4 mistral-large-4 | 1.36 USD | 4.18 USD | 1,048,576 | |
Muse Spark Open muse-spark-open | 1.25 USD | 4.25 USD | 1,048,576 | |
nemotron-3-nano:30b nemotron-3-nano:30b | 0.060 USD | 0.240 USD | 1,048,576 | older than 30 days |
nemotron-3-super nemotron-3-super | 0.015 USD | 0.600 USD | 262,144 | older than 30 days |
nemotron-3-ultra nemotron-3-ultra | 0.100 USD | 3.00 USD | 262,144 | older than 30 days |
qwen3.5:397b qwen3.5:397b | 0.600 USD | 3.60 USD | 262,144 | older than 30 days |
Sources of this page
- docs.ollama.com/cloud, read
- docs.ollama.com/api/openai-compatibility, read
- docs.ollama.com/api/anthropic-compatibility, read
- github.com/ollama/ollama/blob/main/docs/capabilities/structured-outputs.mdx, read
- docs.ollama.com/capabilities/tool-calling, read
- ollama.com/pricing, read
- ollama.com/privacy, read
- models.dev/api.json, read
- github.com/alisonjieli-png/loop-engine/blob/main/src/loop_engine/core/ollama_client.py, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.