OpenAI Compatible API
What is an OpenAI-compatible API?
Many AI clients use OpenAI-style fields such as base_url, API key and model. ZZSwitch supports this pattern, but not every tool uses the same endpoint.
What is base_url?
base_url is the API base address. OpenAI-compatible clients usually use https://api.zzswitch.com/v1.
Why /v1 matters
OpenAI-compatible APIs commonly place versioned routes under /v1. Codex, OpenCode, Cline and Cherry Studio often use this form.
When to use the root endpoint
Claude/CC-style tools may ask for the root endpoint https://api.zzswitch.com. Do not reuse /v1 blindly.
API key and token
Your ZZSwitch Token is used as the API key. Keep it private and never commit it to Git.
Готовы попробовать ZZSwitch?
Сначала пополните небольшой баланс, затем создайте токен для AI-инструментов.