OpenCode Zen
aggregator
Getting credentials
api-key
api_key via header (header Authorization: Bearer)
Environment: OPENCODE_API_KEY
Create a key at opencode.ai/auth (in the TUI: /connect). ~90+ curated models billed at cost, pay-as-you-go.
Endpoints
| ID | URL | Protocol | Auth |
|---|---|---|---|
| chat-completions | https://opencode.ai/zen/v1/chat/completions | openai-chat | any |
| responses | https://opencode.ai/zen/v1/responses | openai-responses | any |
| messages | https://opencode.ai/zen/v1/messages | anthropic-messages | any |
| gemini-style | https://opencode.ai/zen/v1/models/{model-id} | google-generate-content | any |
API surfaces
textstreaming
Quirks
- Four protocol surfaces; models are assigned per surface (Responses for GPT/Grok, Anthropic Messages for Claude/Qwen, chat-completions for DeepSeek/MiniMax/GLM/Kimi, Gemini-style for Google models). No documented reasoning normalization — controls follow each upstream provider's wire format per surface; community-verified: thinking {type: enabled} and reasoning_effort (low/high/max) pass through for DeepSeek V4 on the chat surface. Offerings verified against the live GET /zen/v1/models list (2026-08-19). (docs)
Models offered
| Model | Wire ID | Endpoint | Status | Reasoning |
|---|---|---|---|---|
| allenai/olmo-3-32b-think | olmo-3-32b-think | chat-completions | retired | always_on · default on · mandatory · returns reasoning_content |
| anthropic/claude-fable-5 | claude-fable-5 | messages | ga | adaptive · default adaptive · mandatory · returns thinking_blocks · round-trips signature |
| anthropic/claude-fable-5-1 | claude-fable-5-1 | messages | ga | adaptive · default adaptive · mandatory · returns thinking_blocks · round-trips signature |
| anthropic/claude-haiku-4-5 | claude-haiku-4-5 | messages | ga | budget · default on · returns thinking_blocks · round-trips signature |
| anthropic/claude-opus-4-6 | claude-opus-4-6 | messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |
| anthropic/claude-opus-4-7 | claude-opus-4-7 | messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |
| anthropic/claude-opus-4-8 | claude-opus-4-8 | messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |
| anthropic/claude-opus-5 | claude-opus-5 | messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |
| anthropic/claude-sonnet-5 | claude-sonnet-5 | messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |
| deepseek/deepseek-v4-flash | deepseek-v4-flash | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| deepseek/deepseek-v4-pro | deepseek-v4-pro | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| google/gemini-3-1-pro | gemini-3.1-pro | chat-completions | ga | effort · default on · mandatory · returns thought_parts · round-trips thought_signature |
| google/gemini-3-5-flash | gemini-3.5-flash | chat-completions | ga | effort · default on · returns reasoning_content |
| google/gemini-3-5-flash-lite | gemini-3.5-flash-lite | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| google/gemini-3-6-flash | gemini-3.6-flash | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| google/gemini-3-7-flash | gemini-3.7-flash | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| google/gemini-3-8-flash | gemini-3.8-flash | chat-completions | ga | effort · default on · returns reasoning_content · round-trips reasoning_content |
| google/gemini-3-flash | gemini-3-flash | chat-completions | ga | effort · default on · mandatory · returns thought_parts · round-trips thought_signature |
| meituan/longcat-2-0 | longcat-2.0 | chat-completions | retired | toggle · default on · returns reasoning_content |
| meta/muse-spark-1-2 | muse-spark-1.2 | chat-completions | ga | effort · default on · mandatory · returns hidden |
| meta/muse-spark-1-3 | muse-spark-1.3-contributor-free | chat-completions | ga | effort · default on · mandatory · returns hidden |
| meta/muse-spark-1-3 | muse-spark-1.3 | responses | ga | effort · default on · mandatory · returns hidden |
| minimax/minimax-m2-5 | minimax-m2.5 | chat-completions | ga | always_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| minimax/minimax-m2-7 | minimax-m2.7 | chat-completions | ga | always_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| minimax/minimax-m3 | minimax-m3 | chat-completions | ga | toggle · default adaptive · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k2-5 | kimi-k2.5 | chat-completions | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k2-6 | kimi-k2.6 | chat-completions | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k2-7-code | kimi-k2.7-code | chat-completions | ga | toggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k3 | kimi-k3 | chat-completions | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| nvidia/nemotron-3-5-lightning | nemotron-3.5-lightning-free | chat-completions | ga | toggle · default on · returns reasoning_content |
| nvidia/nemotron-3-ultra | nemotron-3-ultra-free | chat-completions | ga | toggle · default on · returns reasoning_content |
| openai/gpt-5 | gpt-5 | responses | ga | effort · default on · mandatory · returns hidden · round-trips encrypted_content |
| openai/gpt-5-1 | gpt-5.1 | responses | ga | effort · default off · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-4 | gpt-5.4-pro | responses | ga | effort · default on · mandatory · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-4 | gpt-5.4 | responses | ga | effort · default off · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-4-mini | gpt-5.4-mini | responses | ga | effort · default off · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-4-nano | gpt-5.4-nano | responses | ga | effort · default off · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-5 | gpt-5.5-pro | responses | ga | effort · default on · mandatory · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-5 | gpt-5.5 | responses | ga | effort · default on · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-6 | gpt-5.6-luna | responses | ga | effort · default on · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-6 | gpt-5.6-sol | responses | ga | effort · default on · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-5-6 | gpt-5.6-terra | responses | ga | effort · default on · returns reasoning_summary · round-trips encrypted_content |
| openai/gpt-6 | gpt-6-astra | responses | ga | effort · default on · mandatory · returns reasoning_summary · round-trips encrypted_content |
| xai/grok-4-5 | grok-4.5 | responses | ga | effort · default on · mandatory · returns hidden · round-trips encrypted_content |
| xai/grok-4-6 | grok-4.6 | responses | ga | effort · default on · mandatory · returns reasoning_content · round-trips encrypted_content |
| zai/glm-5-1 | glm-5.1 | chat-completions | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| zai/glm-5-2 | glm-5.2 | chat-completions | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| zai/glm-5-3 | glm-5.3 | chat-completions | ga | always_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content |
| zai/glm-5-3-flash | glm-5.3-flash | chat-completions | ga | always_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content |