it's free*.ai

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 URLhttps://opencode.ai/zen/v1
Env varOPENCODE_API_KEY

Code examples

npm install openai
import 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)

Worth knowing

Models you get for free6