docs: zen

This commit is contained in:
Jay V
2025-09-16 13:26:49 -04:00
parent 32a045f60b
commit 7f9d08b556
3 changed files with 38 additions and 15 deletions

View File

@@ -49,8 +49,9 @@ opencode zen is an AI gateway that gives you access to these models.
opencode zen works like any other provider in opencode.
1. You sign in to **<a href={console}>opencode zen</a>** and get your API key.
2. You run `opencode auth login` and select opencode and add your API key.
1. You sign in to **<a href={console}>opencode zen</a>**, add your billing
details, and copy your API key.
2. You run `opencode auth login`, select opencode, and paste your API key.
3. Run `/models` in the TUI to see the list of models we recommend.
You are charged per request and you can add credits to your account.
@@ -75,8 +76,7 @@ You can also access our models through the following API endpoints.
## Pricing
Below are the models that we currently support and their prices **per 1M
tokens**.
We support a pay-as-you-go model. Below are the prices **per 1M tokens**.
| Model | Input | Output | Cached Read | Cached Write |
| ------------------------------- | ------ | ------ | ----------- | ------------ |
@@ -95,6 +95,10 @@ Credit card fees are passed along at cost; we dont charge anything beyond tha
Grok Code Fast 1 is currently free on opencode for a limited time. The xAI team is using this time to collect feedback and improve Grok Code.
:::tip
Subscription plans and a free tier are coming soon.
:::
<a href={email}>Contact us</a> if you have any questions.
---