OpenCode Zen
The model gateway behind OpenCode, with free coding models you can call from anywhere.
OpenCode Zen is the optional model gateway the OpenCode team runs. You do not need it to use OpenCode; it is a curated list of models they have actually tested as coding agents, including a set that is free.
Sign in, copy the key, call opencode.ai/zen/v1. The documented Free set is six ids — Nemotron Ultra, Lightning, MiMo, Ling Flash, big-pickle, Muse Spark. DeepSeek V4 and GLM 5.2 on Zen are paid. Free ids can be promotional and go away.
- Free models
- 6
- Max context
- 1M
- Free tier
- 6 free models
- Requirement
- Email account, no card
Endpoint
Base URL
https://opencode.ai/zen/v1Env var
OPENCODE_API_KEY- OpenAI-compatible
- text
- audio
- vision
- reasoning
Code examples
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://opencode.ai/zen/v1',
apiKey: process.env.OPENCODE_API_KEY
})
const response = await client.chat.completions.create({
model: 'nemotron-3-ultra-free',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://opencode.ai/zen/v1",
api_key=os.environ["OPENCODE_API_KEY"],
)
response = client.chat.completions.create(
model="nemotron-3-ultra-free",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://opencode.ai/zen/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENCODE_API_KEY" \
-d '{
"model": "nemotron-3-ultra-free",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'Worth knowing
- The documented Free set is six ids. deepseek-v4-flash and glm-5.2 on Zen are paid.
- Free ids can be promotional and go away.
Models you get for free6
- Nemotron 3 Ultra
nemotron-3-ultra-free - Nemotron 3 Lightning
nemotron-3-lightning-free - MiMo
mimo-free - Ling Flash
ling-flash-free - Big Pickle
big-pickle - Muse Spark
muse-spark-free