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

# 快速开始

3 步开始使用 Portix

## 1. 获取 API Key

1. 注册 [https://portix.ai/dashboard/overview](https://portix.ai/dashboard/overview)
2. 充值余额
3. 创建 API Key

## 2. 发起第一个请求

<Tabs>
  <Tab title="OpenAI">
    ```bash theme={null}
    curl https://api.portix.ai/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "model": "gpt-4o",
        "messages": [{"role": "user", "content": "你好！"}]
      }'
    ```
  </Tab>

  <Tab title="Anthropic">
    ```bash theme={null}
    curl https://api.portix.ai/v1/messages \
      -H "Content-Type: application/json" \
      -H "x-api-key: YOUR_API_KEY" \
      -H "anthropic-version: 2023-06-01" \
      -d '{
        "model": "claude-sonnet-4-5-latest",
        "max_tokens": 1024,
        "messages": [{"role": "user", "content": "你好！"}]
      }'
    ```
  </Tab>

  <Tab title="Gemini">
    ```bash theme={null}
    curl "https://api.portix.ai/v1beta/models/gemini-3-flash-preview:generateContent" \
      -H "Content-Type: application/json" \
      -H "x-goog-api-key: $PIPELLM_API_KEY" \
      -d '{
        "contents": [
          {
            "role": "user",
            "parts": [{"text": "你好！"}]
          }
        ]
      }'
    ```
  </Tab>
</Tabs>

## 3. 探索更多

<Columns cols={3}>
  <Card title="OpenAI 通用" href="/api-reference/openai/overview.zh">
    GPT 系列、Grok 系列、GLM 系列、DeepSeek 系列
  </Card>

  <Card title="Anthropic" href="/api-reference/anthropic/overview.zh">
    Opus 系列、Sonnet 系列、Haiku 系列
  </Card>

  <Card title="Gemini" href="/api-reference/gemini/overview.zh">
    Gemini 3 系列、2.5 系列、2.0 系列
  </Card>
</Columns>
