本服务面向非中国大陆地区 · ZetaAPI.AI 的网站与控制台主要面向非中国大陆市场,注册与开通功能在你当前地区不可用。

Quickstart — onboard to ZetaAPI in 30 seconds

From sign-up to your first call in three steps. Covers sign-in, getting an API key, and switching to ZetaAPI in Cursor / Claude Code / any OpenAI SDK.

Updated 2026-10-05

What you’ll get in 30 seconds

Step 1: Sign up & top up

  1. Open the console and sign in with Google / GitHub / email
  2. Your account is created automatically on first sign-in — no review beyond email
  3. On the “Top up” page, add credit from $1 via card / Alipay / WeChat (a guide walks you through the first one)

Step 2: Create an API key

Go to the API Keys page in the console:

⚠️ The full key is shown only at creation. Save it immediately to 1Password / macOS Keychain / a .env file or other secure place.

Step 3: Switch the upstream

Option A: Cursor

Settings → Models → OpenAI API Key:

After saving, Chat and Cmd+K all route through ZetaAPI. See the Cursor setup guide.

Option B: Claude Code

Add to ~/.zshrc or ~/.bashrc:

export ANTHROPIC_BASE_URL="https://api.staging.cosmos-router.com"
export ANTHROPIC_API_KEY="sk-xxxxx"
export CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING=1

After source, just run claude. See the Claude Code setup guide.

Option C: any OpenAI SDK

from openai import OpenAI

client = OpenAI(
    api_key="sk-xxxxx",
    base_url="https://api.staging.cosmos-router.com/v1",
)

resp = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

The official Node.js SDK / LangChain / LlamaIndex / any client that supports a custom base_url works the same way.

Option D: Claude Desktop

In the Claude Desktop menu bar, open Developer → Configure Third-Party Inference…, choose Gateway, set the Base URL to https://api.staging.cosmos-router.com and the API key to sk-xxxxx, then save and restart to use Claude models in Cowork and Code. You need to enable Developer Mode first; see the Claude Desktop setup guide for the full steps.

Verify it worked

After your first call, go back to the console home and you should see:

Next steps