Setup
- Subscribe to the byok plan from /app/plans (price shown there and on /pricing).
- Add OpenAI, Anthropic, and/or Gemini keys at /app/provider-keys (validated before save; encrypted at rest).
- Create a Zenith Cloud API key on the dashboard.
- List models with your Bearer key — only that account’s discovered models are returned.
Model IDs
BYOK model ids are namespaced: openai/…, anthropic/…, gemini/…. Hosted catalog ids such as auto are for wallet-metered hosted plans.
Example
Terminal
curl -sS "$ZENITH_CLOUD_URL/api/v1/chat/completions" \
-H "Authorization: Bearer $ZENITH_CLOUD_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'byok_chat.py
client = OpenAI(base_url="https://zenithgw.com/api/v1", api_key="zk_…")
client.chat.completions.create(
model="openai/gpt-4o",
messages=[{"role": "user", "content": "Hello"}],
)