inference-providers

OpenCode Zen

aggregator

DocsConsole

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.

Credentials docs

Endpoints

IDURLProtocolAuth
chat-completionshttps://opencode.ai/zen/v1/chat/completionsopenai-chatany
responseshttps://opencode.ai/zen/v1/responsesopenai-responsesany
messageshttps://opencode.ai/zen/v1/messagesanthropic-messagesany
gemini-stylehttps://opencode.ai/zen/v1/models/{model-id}google-generate-contentany

API surfaces

textstreaming

Quirks

Models offered

ModelWire IDEndpointStatusReasoning
allenai/olmo-3-32b-thinkolmo-3-32b-thinkchat-completionsretiredalways_on · default on · mandatory · returns reasoning_content
anthropic/claude-fable-5claude-fable-5messagesgaadaptive · default adaptive · mandatory · returns thinking_blocks · round-trips signature
anthropic/claude-fable-5-1claude-fable-5-1messagesgaadaptive · default adaptive · mandatory · returns thinking_blocks · round-trips signature
anthropic/claude-haiku-4-5claude-haiku-4-5messagesgabudget · default on · returns thinking_blocks · round-trips signature
anthropic/claude-opus-4-6claude-opus-4-6messagesgaadaptive · default adaptive · returns thinking_blocks · round-trips signature
anthropic/claude-opus-4-7claude-opus-4-7messagesgaadaptive · default adaptive · returns thinking_blocks · round-trips signature
anthropic/claude-opus-4-8claude-opus-4-8messagesgaadaptive · default adaptive · returns thinking_blocks · round-trips signature
anthropic/claude-opus-5claude-opus-5messagesgaadaptive · default adaptive · returns thinking_blocks · round-trips signature
anthropic/claude-sonnet-5claude-sonnet-5messagesgaadaptive · default adaptive · returns thinking_blocks · round-trips signature
deepseek/deepseek-v4-flashdeepseek-v4-flashchat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
deepseek/deepseek-v4-prodeepseek-v4-prochat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
google/gemini-3-1-progemini-3.1-prochat-completionsgaeffort · default on · mandatory · returns thought_parts · round-trips thought_signature
google/gemini-3-5-flashgemini-3.5-flashchat-completionsgaeffort · default on · returns reasoning_content
google/gemini-3-5-flash-litegemini-3.5-flash-litechat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
google/gemini-3-6-flashgemini-3.6-flashchat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
google/gemini-3-7-flashgemini-3.7-flashchat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
google/gemini-3-8-flashgemini-3.8-flashchat-completionsgaeffort · default on · returns reasoning_content · round-trips reasoning_content
google/gemini-3-flashgemini-3-flashchat-completionsgaeffort · default on · mandatory · returns thought_parts · round-trips thought_signature
meituan/longcat-2-0longcat-2.0chat-completionsretiredtoggle · default on · returns reasoning_content
meta/muse-spark-1-2muse-spark-1.2chat-completionsgaeffort · default on · mandatory · returns hidden
meta/muse-spark-1-3muse-spark-1.3-contributor-freechat-completionsgaeffort · default on · mandatory · returns hidden
meta/muse-spark-1-3muse-spark-1.3responsesgaeffort · default on · mandatory · returns hidden
minimax/minimax-m2-5minimax-m2.5chat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
minimax/minimax-m2-7minimax-m2.7chat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
minimax/minimax-m3minimax-m3chat-completionsgatoggle · default adaptive · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-5kimi-k2.5chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-6kimi-k2.6chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-7-codekimi-k2.7-codechat-completionsgatoggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k3kimi-k3chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
nvidia/nemotron-3-5-lightningnemotron-3.5-lightning-freechat-completionsgatoggle · default on · returns reasoning_content
nvidia/nemotron-3-ultranemotron-3-ultra-freechat-completionsgatoggle · default on · returns reasoning_content
openai/gpt-5gpt-5responsesgaeffort · default on · mandatory · returns hidden · round-trips encrypted_content
openai/gpt-5-1gpt-5.1responsesgaeffort · default off · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-4gpt-5.4-proresponsesgaeffort · default on · mandatory · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-4gpt-5.4responsesgaeffort · default off · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-4-minigpt-5.4-miniresponsesgaeffort · default off · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-4-nanogpt-5.4-nanoresponsesgaeffort · default off · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-5gpt-5.5-proresponsesgaeffort · default on · mandatory · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-5gpt-5.5responsesgaeffort · default on · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-6gpt-5.6-lunaresponsesgaeffort · default on · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-6gpt-5.6-solresponsesgaeffort · default on · returns reasoning_summary · round-trips encrypted_content
openai/gpt-5-6gpt-5.6-terraresponsesgaeffort · default on · returns reasoning_summary · round-trips encrypted_content
openai/gpt-6gpt-6-astraresponsesgaeffort · default on · mandatory · returns reasoning_summary · round-trips encrypted_content
xai/grok-4-5grok-4.5responsesgaeffort · default on · mandatory · returns hidden · round-trips encrypted_content
xai/grok-4-6grok-4.6responsesgaeffort · default on · mandatory · returns reasoning_content · round-trips encrypted_content
zai/glm-5-1glm-5.1chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-2glm-5.2chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-3glm-5.3chat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
zai/glm-5-3-flashglm-5.3-flashchat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content