+ Manage payments methods. Contact us if you have any questions. +
++ Reload failed at{" "} + {balanceInfo()?.timeReloadError!.toLocaleString("en-US", { + month: "short", + day: "numeric", + hour: "numeric", + minute: "2-digit", + second: "2-digit", + })} + . Reason: {balanceInfo()?.reloadError?.replace(/\.$/, "")}. Please update your payment method and try + again. +
+ ++ You have ${balanceAmount() === "-0.00" ? "0.00" : balanceAmount()} remaining in + your account. You can continue using the API with your remaining balance. +
++ Your current balance is ${balanceAmount() === "-0.00" ? "0.00" : balanceAmount()} + . We'll automatically reload $20 (+$1.23 processing fee) when it reaches $5. +
+Manage your API keys for accessing opencode services.
+Create an opencode Gateway API key
+| Name | +Key | +Created | ++ |
|---|---|---|---|
| {key.name} | ++ + | ++ {formatDateForTable(key.timeCreated)} + | ++ + | +
Set a monthly spending limit for your account.
++ Current usage for {new Date().toLocaleDateString("en-US", { month: "long", timeZone: "UTC" })} is $ + {(() => { + const dateLastUsed = balanceInfo()?.timeMonthlyUsageUpdated + if (!dateLastUsed) return "0" + + const current = new Date().toLocaleDateString("en-US", { + year: "numeric", + month: "long", + timeZone: "UTC", + }) + const lastUsed = dateLastUsed.toLocaleDateString("en-US", { + year: "numeric", + month: "long", + timeZone: "UTC", + }) + if (current !== lastUsed) return "0" + return ((balanceInfo()?.monthlyUsage ?? 0) / 100000000).toFixed(2) + })()} + . +
+We've benchmarked and tested models specifically for coding agents to ensure the best performance.
+Access models configured for optimal performance - no downgrades or routing to cheaper providers.
+Use Zen with any coding agent, and continue using other providers with opencode whenever you want.
+{defaultKey()}
+
+ opencode auth login and select opencode
+ /models to select a model
+ Recent payment transactions.
+| Date | +Payment ID | +Amount | +
|---|---|---|
| + {formatDateForTable(date)} + | +{payment.id} | +${((payment.amount ?? 0) / 100000000).toFixed(2)} | +
Recent API usage and costs.
+Make your first API call to get started.
+| Date | +Model | +Input | +Output | +Cost | +
|---|---|---|---|---|
| + {formatDateForTable(date())} + | +{usage.model} | +{usage.inputTokens} | +{usage.outputTokens} | +${((usage.cost ?? 0) / 100000000).toFixed(4)} | +
Manage your API keys for accessing opencode services.
-Create an opencode Gateway API key
-| Name | -Key | -Created | -- |
|---|---|---|---|
| {key.name} | -- - | -- {formatDateForTable(key.timeCreated)} - | -- - | -
- Manage payments methods. Contact us if you have any questions. -
-- Reload failed at{" "} - {balanceInfo()?.timeReloadError!.toLocaleString("en-US", { - month: "short", - day: "numeric", - hour: "numeric", - minute: "2-digit", - second: "2-digit", - })} - . Reason: {balanceInfo()?.reloadError?.replace(/\.$/, "")}. Please update your payment method and try - again. -
- -- You have ${balanceAmount() === "-0.00" ? "0.00" : balanceAmount()} remaining in - your account. You can continue using the API with your remaining balance. -
-- Your current balance is ${balanceAmount() === "-0.00" ? "0.00" : balanceAmount()} - . We'll automatically reload $20 (+$1.23 processing fee) when it reaches $5. -
-Set a monthly spending limit for your account.
-- Current usage for {new Date().toLocaleDateString("en-US", { month: "long", timeZone: "UTC" })} is $ - {(() => { - const dateLastUsed = balanceInfo()?.timeMonthlyUsageUpdated - if (!dateLastUsed) return "0" - - const current = new Date().toLocaleDateString("en-US", { - year: "numeric", - month: "long", - timeZone: "UTC", - }) - const lastUsed = dateLastUsed.toLocaleDateString("en-US", { - year: "numeric", - month: "long", - timeZone: "UTC", - }) - if (current !== lastUsed) return "0" - return ((balanceInfo()?.monthlyUsage ?? 0) / 100000000).toFixed(2) - })()} - . -
-Recent API usage and costs.
-Make your first API call to get started.
-| Date | -Model | -Input | -Output | -Cost | -
|---|---|---|---|---|
| - {formatDateForTable(date())} - | -{usage.model} | -{usage.inputTokens} | -{usage.outputTokens} | -${((usage.cost ?? 0) / 100000000).toFixed(4)} | -
Recent payment transactions.
-| Date | -Payment ID | -Amount | -
|---|---|---|
| - {formatDateForTable(date)} - | -{payment.id} | -${((payment.amount ?? 0) / 100000000).toFixed(2)} | -
We've benchmarked and tested models specifically for coding agents to ensure the best performance.
-Access models configured for optimal performance - no downgrades or routing to cheaper providers.
-Use Zen with any coding agent, and continue using other providers with opencode whenever you want.
-{defaultKey()}
-
- opencode auth login and select opencode
- /models to select a model
-