summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-10-27 21:25:56 -0400
committerFrank <[email protected]>2025-10-27 21:25:56 -0400
commit78169017136048fc65fb6cb9d13095a0c6c50af3 (patch)
tree1d855a8e338ff70b52cd97bfbd02f8b574746a5b
parent71abca9571b74830908bf5d2aff0c9864b1c5191 (diff)
downloadopencode-78169017136048fc65fb6cb9d13095a0c6c50af3.tar.gz
opencode-78169017136048fc65fb6cb9d13095a0c6c50af3.zip
wip: zen doc
-rw-r--r--packages/web/src/content/docs/zen.mdx32
1 files changed, 30 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/zen.mdx b/packages/web/src/content/docs/zen.mdx
index ab48c2c14..a53ad3131 100644
--- a/packages/web/src/content/docs/zen.mdx
+++ b/packages/web/src/content/docs/zen.mdx
@@ -71,9 +71,10 @@ You can also access our models through the following API endpoints.
| Claude Haiku 4.5 | claude-haiku-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
| Claude Haiku 3.5 | claude-3-5-haiku | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
| Claude Opus 4.1 | claude-opus-4-1 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
+| GLM 4.6 | glm-4.6 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
+| Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
| Qwen3 Coder 480B | qwen3-coder | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
| Grok Code Fast 1 | grok-code | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
-| Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
The [model id](/docs/config/#models) in your OpenCode config
uses the format `opencode/<model-id>`. For example, for GPT 5 Codex, you would
@@ -81,14 +82,41 @@ use `opencode/gpt-5-codex` in your config.
---
+### Unified
+
+All models in Zen can also be accessed through a single unified endpoint:
+
+```
+https://opencode.ai/zen/v1/chat/completions
+```
+
+This endpoint is OpenAI-compatible, so it works seamlessly with the `@ai-sdk/openai-compatible` package and any OpenAI-compatible SDKs or tools.
+
+Use this if you want to simplify integration across multiple models without changing endpoints or SDKs.
+
+This feature is currently in beta.
+
+---
+
+### Models
+
+You can fetch the full list of available models and their metadata from:
+
+```
+https://opencode.ai/zen/v1/models
+```
+
+---
+
## Pricing
We support a pay-as-you-go model. Below are the prices **per 1M tokens**.
| Model | Input | Output | Cached Read | Cached Write |
| --------------------------------- | ------ | ------ | ----------- | ------------ |
-| Qwen3 Coder 480B | $0.45 | $1.50 | - | - |
+| GLM 4.6 | $0.60 | $1.90 | $0.11 | - |
| Kimi K2 | $0.60 | $2.50 | $0.36 | - |
+| Qwen3 Coder 480B | $0.45 | $1.50 | - | - |
| Grok Code Fast 1 | Free | Free | - | - |
| Code Supernova | Free | Free | - | - |
| Claude Sonnet 4.5 (≤ 200K tokens) | $3.00 | $15.00 | $0.30 | $3.75 |