快速开始

5 分钟上手 BytePass。一把 API Key,即可使用 Claude、GPT 等全球顶尖 AI 模型——无需 VPN,无需境外信用卡。


1. 注册账号

访问 bytepass.ai/register,用邮箱注册。

2. 充值额度

登录后进入 控制台,兑换充值码;或前往 充值页面 直接购买额度。

BytePass 采用余额制,不是订阅制。用多少扣多少,不用不扣费。

3. 创建 API Key

进入 控制台 → API Keys(或访问 bytepass.ai/keys),点击 创建令牌

复制你的 Key(以 sk- 开头),下一步会用到。

4. 发出第一个请求

方式 A:一键导入到 CC-Switch(推荐)

如果你已安装 CC-Switch,直接在 Key 管理页 点击 Key 旁边的 「导入到 CCS」 按钮——一键搞定。

方式 B:cURL

curl https://api.bytepass.ai/v1/chat/completions \
  -H "Authorization: Bearer 你的API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-5.4", "messages": [{"role": "user", "content": "你好!"}]}'

方式 C:Python

from openai import OpenAI

client = OpenAI(
    api_key="你的API_KEY",
    base_url="https://api.bytepass.ai/v1"
)

response = client.chat.completions.create(
    model="gpt-5.4",
    messages=[{"role": "user", "content": "你好!"}]
)
print(response.choices[0].message.content)

方式 D:JavaScript / TypeScript

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "你的API_KEY",
  baseURL: "https://api.bytepass.ai/v1",
});

const response = await client.chat.completions.create({
  model: "gpt-5.4",
  messages: [{ role: "user", content: "你好!" }],
});
console.log(response.choices[0].message.content);

你的API_KEY 替换为第 3 步复制的 Key。


下一步