OpenCode Zen alternative — below list price
OpenCode Zen (now called OpenCode Models) sells models at provider list price plus a fee on each credit purchase. freeaiapi.ai prices models up to 30% below official rates and plugs into OpenCode as a custom provider.
OpenCode Zen vs freeaiapi.ai
| OpenCode Zen (OpenCode Models) | freeaiapi.ai | |
|---|---|---|
| Model prices | Provider list price, no markup | Up to 30% below official list price |
| Fee on top-ups | 4.6% + $0.31 per credit purchase | None added by us |
| Billing | Pay as you go | Pay as you go, prepaid balance |
| Works in OpenCode | Built in | Custom provider (one config block) |
| Free start | Some free models | Trial credit, no card required |
OpenCode Zen details from opencode.ai/docs/zen, checked 2026-11-01.
Use freeaiapi.ai in OpenCode
Run /connect, choose Other, enter the provider id freeaiapi and your key. Then add the provider to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"freeaiapi": {
"npm": "@ai-sdk/openai-compatible",
"name": "freeaiapi.ai",
"options": { "baseURL": "https://api.freeaiapi.ai/v1" },
"models": {
"claude-3-5-sonnet-20241022": { "name": "Claude 3.5 Sonnet" },
"deepseek-chat": { "name": "DeepSeek Chat" },
"gpt-4o-mini": { "name": "GPT-4o mini" }
}
}
}
}Model prices
| Model | Official input /M | Official output /M | Our input /M | Our output /M | You save |
|---|---|---|---|---|---|
| claude-haiku-4-5-20251001 | $1.00 | $5.00 | $0.70 | $3.50 | −30% |
| claude-haiku-5-5 | $0.10 | $0.50 | $0.07 | $0.35 | −30% |
| claude-opus-4-5-20251101 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-4-6 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-4-7 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-4-8 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-5 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-5-5 | $4.00 | $20.00 | $2.80 | $14.00 | −30% |
Frequently asked questions
What is OpenCode Zen?
OpenCode Zen, now branded OpenCode Models, is OpenCode's pay-as-you-go model provider. It charges provider list prices plus a processing fee of 4.6% + $0.31 on each credit purchase.
Is this cheaper than OpenCode Zen?
For most models, yes: freeaiapi.ai prices are up to 30% below official list price, and we add no fee on top-ups. Compare per-model prices in the table above.
Do I need a new tool?
No. Keep using OpenCode and add freeaiapi.ai as a custom OpenAI-compatible provider.
Related
Get your free API key
No card required. One key for every model, up to 30% below official pricing.
