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

# Global AI 快速开始：从注册到首次 API 调用

> 5 分钟走完 Global AI 的完整流程：注册账号、充值配额、创建令牌，并用 Python 或 curl 发起一次真实调用。

跟着这份指南，你将在几分钟内完成从注册到首次调用 Global AI 的完整流程。

<Steps>
  <Step title="注册账号">
    打开 [globalai.vip](https://globalai.vip)，点击右上角「登录」，在登录页面点击「注册」，或直接访问 [https://globalai.vip/sign-up](https://globalai.vip/sign-up)。

    填写用户名、密码和邮箱，点击「发送验证码」，收到验证码后填入并提交，即可完成注册。也可以在登录页选择 GitHub账号一键登录。

    详细步骤见 [注册与登录](/account/register-login)。
  </Step>

  <Step title="充值账户配额">
    登录后，左侧导航点击「钱包」，或访问 [https://globalai.vip/wallet](https://globalai.vip/wallet)。

    * **在线支付**：选择金额和支付方式（支付宝、微信、Stripe 等），跳转支付平台完成付款后，余额自动到账。
    * **兑换码**：把客服发送给您的兑换码粘贴到输入框，点击「兑换」即可。

    详细步骤见 [配额与充值](/billing/topup)。
  </Step>

  <Step title="创建 API 令牌">
    左侧导航点击「**API密钥**」，或访问 [https://globalai.vip/keys](https://globalai.vip/keys)，点击右上角「**创建API密钥**」。

    填写令牌名称（建议按用途命名，如「生产环境」「测试用」），按需设置过期时间、剩余配额、模型限制、IP 白名单等。

    提交后即可在表格中查看到**API密钥，**点击密钥旁边的**复制按钮**，即可得到密钥。

    详细步骤见 [令牌管理](/usage/tokens)。
  </Step>

  <Step title="发起第一次调用">
    在首页复制 API Base URL（形如 `https://globalai.vip/v1`），配合上一步的令牌 Key，即可开始调用。

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

      client = OpenAI(
          api_key="sk-xxxxxxxx",              # 平台颁发的令牌
          base_url="https://globalai.vip/v1"
      )

      response = client.chat.completions.create(
          model="gpt-5.6-sol",
          messages=[{"role": "user", "content": "你好，介绍一下你自己"}],
      )
      print(response.choices[0].message.content)
      ```

      ```bash curl theme={null}
      curl https://globalai.vip/v1/chat/completions \
        -H "Authorization: Bearer sk-xxxxxxxx" \
        -H "Content-Type: application/json" \
        -d '{
          "model": "gpt-5.6-sol",
          "messages": [{"role": "user", "content": "你好"}]
        }'
      ```
    </CodeGroup>

    调用成功后，返回内容将出现在响应体的 `choices[0].message.content` 中。
  </Step>

  <Step title="查看使用记录">
    左侧导航点击「使用日志」（[https://globalai.vip/usage-logs/common](https://globalai.vip/usage-logs/common)），可以看到刚才这次调用的模型、Token 消耗和配额扣减；点击「数据看板」（[https://globalai.vip/dashboard/models](https://globalai.vip/dashboard/models)）可查看每日调用量和消耗趋势图。

    详细说明见 [使用记录](/usage/logs)。
  </Step>
</Steps>

## 不写代码也能用

如果你只想在图形界面里体验模型，两种方式任选：

<CardGroup cols={2}>
  <Card title="内置操练场" icon="flask" href="/usage/api#操练场在线测试">
    控制台自带操练场 [https://globalai.vip/playground](https://globalai.vip/playground)，选择模型即可对话，适合快速验证令牌。
  </Card>

  <Card title="第三方客户端" icon="plug" href="/clients/overview">
    在 ChatBox、Cherry Studio、Claude Code 等客户端里填入平台地址与令牌即可使用。
  </Card>
</CardGroup>

## 下一步

<CardGroup cols={2}>
  <Card title="调用 API 详解" icon="code" href="/usage/api">
    支持的接口端点、Claude/Gemini 原生格式、流式输出等。
  </Card>

  <Card title="定价说明" icon="tag" href="/billing/pricing">
    查看模型定价、计费规则与配额换算。
  </Card>

  <Card title="个人设置" icon="shield-halved" href="/account/personal-settings">
    绑定邮箱、开启双因素认证、注册 Passkey。
  </Card>

  <Card title="常见问题" icon="circle-question" href="/faq">
    调用失败、余额异常、模型不可用等问题的排查思路。
  </Card>
</CardGroup>


## Related topics

- [欢迎](/index.md)
- [Global AI 令牌管理：创建、限额与安全保管](/usage/tokens.md)
- [Global AI 账号注册与登录方式说明](/account/register-login.md)
- [使用记录与数据看板：查看调用日志与消耗趋势](/usage/logs.md)
- [Global AI 定价说明：模型倍率与配额换算规则](/billing/pricing.md)
