OpenCode Go
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://opencode.ai/zen/go/v1models.dev, read
- Authentication
- Authorization: Bearer, with the key in
OPENCODE_API_KEYmodels.dev, read - Structured output
- Unknown
- Tool calling
- 41 of 41 listed models The share of this provider's models that models.dev records with tool calling. models.dev, read
- Rate limits
- Unknown
- Prices
- Unknown
- Data retention
- Unknown
- Documentation
- Read the page models.dev, read
- Output limits Baltor recorded
- Unknown
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": {
"opencode-go": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenCode Go",
"options": {
"baseURL": "https://opencode.ai/zen/go/v1",
"apiKey": "{env:OPENCODE_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": {
"opencode-go": {
"baseUrl": "https://opencode.ai/zen/go/v1",
"api": "openai-completions",
"apiKey": "$OPENCODE_API_KEY",
"models": [
{
"id": "deepseek-v4-flash"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and OpenCode Go documents no Responses address. A gateway that offers one can sit in between.
- 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
Claude Code sends Anthropic Messages requests, and OpenCode Go documents no such address. A gateway that translates to that API can sit in between.
- 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.
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.150 USD | 0.600 USD | 1,000,000 | older than 30 days |
DeepSeek V4 Flash Vision Exp deepseek-v4-flash-vision-exp | 0.150 USD | 0.600 USD | 1,000,000 | |
DeepSeek V4 Pro (New) deepseek-v4-pro | 0.660 USD | 1.98 USD | 1,000,000 | older than 30 days |
DeepSeek V4.1 Flash deepseek-v4.1-flash | 0.150 USD | 0.600 USD | 1,000,000 | |
GLM-5 glm-5 | 1.00 USD | 3.20 USD | 202,752 | older than 30 days |
GLM-5.1 glm-5.1 | 1.40 USD | 4.40 USD | 202,752 | older than 30 days |
GLM-5.2 glm-5.2 | 1.40 USD | 4.40 USD | 1,000,000 | older than 30 days |
GLM-5.3 glm-5.3 | 1.40 USD | 4.40 USD | 1,000,000 | older than 30 days |
GLM-5.3-Flash glm-5.3-flash | 0.150 USD | 0.500 USD | 1,000,000 | |
GPT-5.6 Luna gpt-5.6-luna | 0.200 USD | 1.20 USD | 1,050,000 | older than 30 days |
GPT-6 Luna gpt-6-luna | 0.100 USD | 0.500 USD | 1,050,000 | |
Grok 4.5 grok-4.5 | 2.00 USD | 6.00 USD | 500,000 | older than 30 days |
Grok 4.6 grok-4.6 | 2.00 USD | 6.00 USD | 500,000 | older than 30 days |
Grok 4.7 grok-4.7 | 2.00 USD | 6.00 USD | 500,000 | |
Hy3 hy3 | 0.140 USD | 0.580 USD | 256,000 | older than 30 days |
Hy4 preview hy4-preview | 0.834 USD | 2.50 USD | 1,024,000 | |
Kimi K2.5 kimi-k2.5 | 0.600 USD | 3.00 USD | 262,144 | older than 30 days |
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 |
LongCat-2.0 longcat-2.0 | 0.300 USD | 1.20 USD | 1,000,000 | older than 30 days |
MiMo V2 Omni mimo-v2-omni | 0.400 USD | 2.00 USD | 262,144 | older than 30 days |
MiMo V2 Pro mimo-v2-pro | 1.00 USD | 3.00 USD | 1,048,576 | older than 30 days |
MiMo V2.5 mimo-v2.5 | 0.140 USD | 0.280 USD | 1,000,000 | older than 30 days |
MiMo V2.5 Pro mimo-v2.5-pro | 0.435 USD | 0.870 USD | 1,048,576 | older than 30 days |
MiMo-V2.6-Flash mimo-v2.6-flash | 0.140 USD | 0.280 USD | 1,048,576 | |
MiMo-V2.6-Pro mimo-v2.6-pro | 0.435 USD | 0.870 USD | 1,048,576 | |
MiniMax-M2.5 minimax-m2.5 | 0.300 USD | 1.20 USD | 204,800 | older than 30 days |
MiniMax-M2.7 minimax-m2.7 | 0.300 USD | 1.20 USD | 204,800 | older than 30 days |
MiniMax-M3 minimax-m3 | 0.300 USD | 1.20 USD | 1,000,000 | older than 30 days |
Muse Spark 1.2 Contributor muse-spark-1.2-contributor | 0.100 USD | 0.200 USD | 1,048,576 | older than 30 days |
Muse Spark 1.3 Contributor muse-spark-1.3-contributor | 0.100 USD | 0.200 USD | 1,048,576 | |
Omen Alpha omen-alpha | 0.200 USD | 0.660 USD | 500,000 | |
Ox Alpha Free (Unlimited) ox-alpha-free | 0 USD | 0 USD | 1,000,000 | older than 30 days |
Qwen3.5 Plus qwen3.5-plus | 0.200 USD | 1.20 USD | 262,144 | older than 30 days |
Qwen3.6 Plus qwen3.6-plus | 0.500 USD | 3.00 USD | 1,000,000 | older than 30 days |
Qwen3.7 Max qwen3.7-max | 2.50 USD | 7.50 USD | 1,000,000 | older than 30 days |
Qwen3.7 Plus qwen3.7-plus | 0.400 USD | 1.60 USD | 1,000,000 | older than 30 days |
Qwen3.8 Flash qwen3.8-flash | 0.150 USD | 0.470 USD | 1,000,000 | |
Qwen3.8 Max qwen3.8-max | 2.00 USD | 6.00 USD | 1,000,000 | older than 30 days |
Space Bunny Free space-bunny-free | 0 USD | 0 USD | 1,048,576 |
Sources of this page
- models.dev/api.json, 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.