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

# 快速接入

> 快速了解 Token Plan 订阅及接入

## 开始使用

<Steps>
  <Step title="获取 Token Plan Key">
    访问 [订阅管理 > Token Plan](https://platform.minimaxi.com/user-center/payment/token-plan) 查看您的 **Token Plan Key**。

    <Callout icon="album" color="#A8A8A8" iconType="regular">
      重要提示：

      * Token Plan Key 用于 Token Plan 额度和积分。
      * Token Plan Key 与按量计费 API Key 不互通。
      * 这把 Key 可以在您尚未拥有付费资源时就存在；当您拥有 Token Plan 席位或积分权限后才可实际使用资源。
      * 请妥善保存您的 API Key ，建议将其导出为环境变量或保存到配置文件
    </Callout>
  </Step>

  <Step title="获得资源">
    在 Default Team 中购买个人 Token Plan 订阅或积分，或使用 Team Owner / Admin 分配给您的资源。
  </Step>

  <Step title="测试 API 调用（可选）">
    通过 Anthropic API 兼容，快速测试 **MiniMax M2.7**

    **1. 安装 Anthropic SDK**

    <CodeGroup>
      ```bash Python theme={null}
      pip install anthropic
      ```

      ```bash Node.js theme={null}
      npm install @anthropic-ai/sdk
      ```
    </CodeGroup>

    **2. 配置环境变量**

    ```bash theme={null}
    export ANTHROPIC_BASE_URL=https://api.minimaxi.com/anthropic
    export ANTHROPIC_API_KEY=${YOUR_API_KEY}
    ```

    **3. 调用 API**

    ```python Python theme={null}
    import anthropic

    client = anthropic.Anthropic()

    message = client.messages.create(
        model="MiniMax-M2.7",
        max_tokens=1000,
        system="You are a helpful assistant.",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "Hi, how are you?"
                    }
                ]
            }
        ]
    )

    for block in message.content:
        if block.type == "thinking":
            print(f"Thinking:\n{block.thinking}\n")
        elif block.type == "text":
            print(f"Text:\n{block.text}\n")
    ```
  </Step>

  <Step title="接入 AI 编程工具">
    您可参考以下内容选择您常用的 AI 编程工具，体验最新 **MiniMax M 系列**模型能力

    <Columns cols={3}>
      <Card title="Claude Code" icon="sparkles" href="/token-plan/claude-code" arrow="true" />

      <Card title="Cursor" icon="mouse-pointer" href="/token-plan/cursor" arrow="true" />

      <Card title="Trae" icon="layers" href="/token-plan/trae" arrow="true" />
    </Columns>

    <Columns cols={3}>
      <Card title="OpenCode" icon="folder-open" href="/token-plan/opencode" arrow="true" />

      <Card title="Kilo Code" icon="zap" href="/token-plan/kilo-code" arrow="true" />

      <Card title="Cline" icon="code" href="/token-plan/cline" arrow="true" />
    </Columns>

    <Columns cols={3}>
      <Card title="Roo Code" icon="rocket" href="/token-plan/roo-code" arrow="true" />

      <Card title="Grok CLI" icon="terminal" href="/token-plan/grok-cli" arrow="true" />

      <Card title="Codex CLI" icon="file-code" href="/token-plan/codex-cli" arrow="true" />
    </Columns>

    <Columns cols={3}>
      <Card title="Droid" icon="bot" href="/token-plan/droid" arrow="true" />
    </Columns>
  </Step>
</Steps>

## 接入 MCP

快速接入 **Token Plan MCP**，获取 **图片理解** 和 **网络搜索** 能力

<Card title="MCP 使用指南" icon="plug" href="/token-plan/mcp-guide" arrow="true">
  了解如何配置和使用 Token Plan MCP
</Card>

## 了解更多

<Columns cols={2}>
  <Card title="积分" icon="coins" href="/token-plan/credits" arrow="true">
    了解积分如何与 Token Plan Key 配合使用。
  </Card>

  <Card title="Team 权益" icon="users" href="/token-plan/team" arrow="true">
    了解 Team 席位和共享积分的使用方式。
  </Card>
</Columns>

## 最佳实践

快速查看 MiniMax Token Plan 模型的 Prompt 模板、工具调用和长上下文实践

<Columns cols={2}>
  <Card title="M 系列模型使用技巧" icon="lightbulb" href="/token-plan/prompting-best-practices" arrow="true">
    掌握 Token Plan 模型的 Prompt 模板、工具调用和长上下文工作流
  </Card>

  <Card title="Mini Agent" icon="bot" href="/token-plan/mini-agent" arrow="true">
    使用 M 系列模型构建 Agent
  </Card>
</Columns>
