Logo SVG copied to clipboard

OpenCode Zen 401: "Model is not supported"

Last verified Aug 18, 2026

What this error means

OpenCode Zen returns HTTP 401 with ModelError when the model id in your request is not one the gateway currently serves. Despite the status code, the key is usually fine — free preview models get retired or renamed, and client model catalogs go stale.

How to fix it

  • Check the model id against the models Zen currently serves.
  • Update opencode or your harness so its model catalog matches the live list.
  • Pin a model that is still served instead of a retired free preview.
Example error message
{
  "type": "error",
  "error": {
    "type": "ModelError",
    "message": "Model trinity-large-preview-free is not supported"
  }
}

How Manifest handles it

Manifest auto-fixes deprecated and not-found model ids on the fly, and falls back to the next model in your chain when the gateway drops one.

Frequently asked

Why is this a 401 if my API key works?

The status code is misleading. Zen answers 401 for a model id it no longer serves; a key problem would fail on every model, not just one.

More Opencode-zen errors

CodeErrorAffected teams / 30 days
429 OpenCode Zen 429: FreeUsageLimitError on free models 136 View
View all Opencode-zen errors
Route Opencode-zen through Manifest Live token usage, every model, and automatic fallback when Opencode-zen rate-limits or fails.

Don't let your requests fail again and again

Manifest fixes your bad LLM requests on the fly so they return successful responses before it reaches your agent. No downtime.

  • Deprecated / Not-found models
  • Wrong parameters
  • Malformed requests
  • Exceeded context windows

Join the waitlist to get early access with a free month.