> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seeoneapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 快速开始

> 5 分钟完成注册并发送第一个 API 请求

跟着下面 4 步线性主线走，即可从零跑通第一个请求：**① 注册 → ② 充值 → ③ 创建令牌 → ④ 跑通首个请求**。

<Info>
  想先了解 SeeOneAPI 是什么，请看 [产品介绍](/introduction)；认证与密钥安全详见 [认证方式](/authentication)；计费规则详见 [定价说明](/pricing)。
</Info>

<Steps>
  <Step title="① 注册账号">
    前往 [SeeOneAPI 控制台](https://www.seeoneapi.com/console) 注册账号。支持邮箱注册。
  </Step>

  <Step title="② 充值">
    在控制台的「充值」页面选择充值金额，支持支付宝和微信支付。充值后余额即刻到账。

    <Tip>
      充值后余额永不过期，用多少扣多少。计费规则详见 [定价说明](/pricing)。
    </Tip>
  </Step>

  <Step title="③ 创建令牌（API Key）">
    进入控制台「令牌」页面：

    * 可以直接复制**默认令牌**使用
    * 或点击「新建令牌」创建新的 API Key，设置名称和额度上限

    <Warning>
      请妥善保管你的 API Key，不要将其提交到公开代码仓库或分享给他人。更多安全建议见 [认证方式](/authentication)。
    </Warning>
  </Step>

  <Step title="④ 跑通首个请求">
    SeeOneAPI 完全兼容 OpenAI API 格式，只需修改 `base_url` 和 `api_key`：

    <CodeGroup>
      ```python Python theme={null}
      from openai import OpenAI

      client = OpenAI(
          api_key="sk-你的API密钥",
          base_url="https://api.seeoneapi.com/v1"
      )

      response = client.chat.completions.create(
          model="claude-sonnet-4-5-20250929",
          messages=[
              {"role": "user", "content": "你好，请介绍一下你自己"}
          ]
      )

      print(response.choices[0].message.content)
      ```

      ```javascript Node.js theme={null}
      import OpenAI from 'openai';

      const client = new OpenAI({
        apiKey: 'sk-你的API密钥',
        baseURL: 'https://api.seeoneapi.com/v1',
      });

      const response = await client.chat.completions.create({
        model: 'claude-sonnet-4-5-20250929',
        messages: [
          { role: 'user', content: '你好，请介绍一下你自己' }
        ],
      });

      console.log(response.choices[0].message.content);
      ```

      ```bash cURL theme={null}
      curl https://api.seeoneapi.com/v1/chat/completions \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer sk-你的API密钥" \
        -d '{
          "model": "claude-sonnet-4-5-20250929",
          "messages": [
            {"role": "user", "content": "你好，请介绍一下你自己"}
          ]
        }'
      ```
    </CodeGroup>

    <Check>
      如果你看到了 Claude 的回复，恭喜你！你已经成功接入 SeeOneAPI。
    </Check>
  </Step>
</Steps>

## 接入你的工具

大多数开发者会在 IDE 插件或聊天客户端中使用 API。我们支持所有 OpenAI 兼容的工具：

| 工具             | 配置 Base URL                    | 说明       |
| -------------- | ------------------------------ | -------- |
| Cherry Studio  | `https://api.seeoneapi.com`    | 不带 `/v1` |
| Cline（VS Code） | `https://api.seeoneapi.com/v1` | 带 `/v1`  |
| NextChat       | `https://api.seeoneapi.com`    | 不带 `/v1` |
| LobeChat       | `https://api.seeoneapi.com/v1` | 带 `/v1`  |

<Info>
  详细的工具配置教程请查看左侧「接入教程」分组。
</Info>

## 下一步

<CardGroup cols={2}>
  <Card title="认证方式" icon="key" href="/authentication">
    了解 API Key 的使用和安全最佳实践
  </Card>

  <Card title="模型广场介绍" icon="list" href="/models/overview">
    查看所有可用模型和参数
  </Card>

  <Card title="图像生成" icon="image" href="/image-generation/gpt-image-2">
    使用 gpt-image-2 生成图像
  </Card>

  <Card title="接入教程" icon="plug" href="/scenarios/chat/cherry-studio">
    在 Cherry Studio、Cline 等工具中使用
  </Card>
</CardGroup>
