inference-providers

OpenCode Go

subscription

DocsConsole

Getting credentials

plan-key

api_key via header (header Authorization: Bearer)

Environment: OPENCODE_API_KEY

Subscribe at opencode.ai/go; uses the OpenCode Zen API key. Provider IDs are opencode-go/<model>.

Credentials docs

Endpoints

IDURLProtocolAuth
go-responseshttps://opencode.ai/zen/go/v1/responsesopenai-responsesany
go-chat-completionshttps://opencode.ai/zen/go/v1/chat/completionsopenai-chatany
go-messageshttps://opencode.ai/zen/go/v1/messagesanthropic-messagesany

API surfaces

textstreaming

Plan

Price
$10 / monthly
Quota
$12 per 5 hours, $30/week, $60/month
Notes
$5 first month then $10/mo, on top of the Zen console (same API key mechanism); open coding models only — Grok 4.5, GPT 5.6 Luna, GLM-5.x, Kimi K3/K2.x, MiniMax M3/M2.7, Qwen3.x, DeepSeek V4, MiMo, Hy3; optional Zen-balance fallback. Routes per protocol: /responses for Grok/GPT, /chat/completions for GLM/Kimi/DeepSeek, /messages (Anthropic) for MiniMax/Qwen.
Docs
https://opencode.ai/docs/go/

Quirks

Models offered

ModelWire IDEndpointStatusReasoning
alibaba/qwen3-7-maxqwen3.7-maxgo-chat-completionsgaadaptive · default on · returns reasoning_content
alibaba/qwen3-7-plusqwen3.7-plusgo-messagesgatoggle · default on · returns reasoning_content
alibaba/qwen3-8-flashqwen3.8-flashgo-chat-completionsgatoggle · default off · returns reasoning_content
alibaba/qwen3-8-maxqwen3.8-maxgo-messagesgatoggle · default on · returns reasoning_content
deepseek/deepseek-v4-flashdeepseek-v4-flashgo-chat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
deepseek/deepseek-v4-prodeepseek-v4-progo-chat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
meituan/longcat-2-0longcat-2.0go-chat-completionsgatoggle · default on · returns reasoning_content
meta/muse-spark-1-2muse-spark-1.2-contributorgo-chat-completionsgaeffort · default on · mandatory · returns hidden
meta/muse-spark-1-2muse-spark-1.2go-chat-completionsretiredeffort · default on · mandatory · returns hidden
meta/muse-spark-1-3muse-spark-1.3-contributorgo-chat-completionsprevieweffort · default on · mandatory · returns reasoning_content
minimax/minimax-m2-5minimax-m2.5go-messagesgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
minimax/minimax-m2-7minimax-m2.7go-messagesgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
minimax/minimax-m3minimax-m3go-messagesgatoggle · default adaptive · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-5kimi-k2.5go-chat-completionsgatoggle · default on · returns reasoning_content
moonshot/kimi-k2-6kimi-k2.6go-chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-7-codekimi-k2.7-codego-chat-completionsgatoggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k3kimi-k3go-chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
openai/gpt-5-6gpt-5.6-lunago-responsesgaeffort · default on · returns reasoning_summary · round-trips encrypted_content
tencent/hy3hy3-previewgo-chat-completionsprevieweffort · default on · returns reasoning_content
tencent/hy3hy3go-chat-completionsgaadaptive · default on · returns reasoning_content
tencent/hy4hy4-previewgo-chat-completionsprevieweffort · default on · returns reasoning_content
xai/grok-4-5grok-4.5go-responsesgaeffort · default on · mandatory · returns hidden · round-trips encrypted_content
xai/grok-4-6grok-4.6go-responsesgaeffort · default on · mandatory · returns reasoning_content · round-trips encrypted_content
xiaomi/mimo-v2-5mimo-v2.5go-chat-completionsgaadaptive · default on · returns reasoning_content · round-trips reasoning_content
xiaomi/mimo-v2-5-promimo-v2.5-progo-chat-completionsgaadaptive · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-1glm-5.1go-chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-2glm-5.2go-chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-3glm-5.3go-chat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
zai/glm-5-3-flashglm-5.3-flashgo-chat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content