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

# Together AI

[Together AI](https://together.ai) 透過統一 API 提供對 Llama、DeepSeek、Kimi 等領先開源模型的存取。
OpenClaw 將其內建為 `together` 供應器。

| 屬性     | 值                             |
| ------ | ----------------------------- |
| 供應器    | `together`                    |
| 驗證     | `TOGETHER_API_KEY`            |
| API    | OpenAI 相容                     |
| 基礎 URL | `https://api.together.xyz/v1` |

## 開始使用

<Steps>
  <Step title="取得 API 金鑰">
    在
    [api.together.ai/settings/api-keys](https://api.together.ai/settings/api-keys)
    建立 API 金鑰。
  </Step>

  <Step title="執行入門設定">
    ```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
    openclaw onboard --auth-choice together-api-key
    ```
  </Step>

  <Step title="設定預設模型">
    ```json5 theme={"theme":{"light":"min-light","dark":"min-dark"}}
    {
      agents: {
        defaults: {
          model: {
            primary: "together/meta-llama/Llama-3.3-70B-Instruct-Turbo",
          },
        },
      },
    }
    ```
  </Step>
</Steps>

### 非互動式範例

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw onboard --non-interactive \
  --mode local \
  --auth-choice together-api-key \
  --together-api-key "$TOGETHER_API_KEY"
```

<Note>
  入門設定會將 `together/meta-llama/Llama-3.3-70B-Instruct-Turbo` 設為
  預設模型。
</Note>

## 內建目錄

費用以每百萬個 token 的美元計價。

| 模型參照                                               | 名稱                           | 輸入    | 內容脈絡    | 最大輸出   | 費用（輸入/輸出）   | 備註     |
| -------------------------------------------------- | ---------------------------- | ----- | ------- | ------ | ----------- | ------ |
| `together/meta-llama/Llama-3.3-70B-Instruct-Turbo` | Llama 3.3 70B Instruct Turbo | 文字    | 131,072 | 8,192  | 0.88 / 0.88 | 預設模型   |
| `together/moonshotai/Kimi-K2.6`                    | Kimi K2.6 FP4                | 文字、圖片 | 262,144 | 32,768 | 1.20 / 4.50 | 推理模型   |
| `together/deepseek-ai/DeepSeek-V4-Pro`             | DeepSeek V4 Pro              | 文字    | 512,000 | 8,192  | 2.10 / 4.40 | 推理模型   |
| `together/Qwen/Qwen2.5-7B-Instruct-Turbo`          | Qwen2.5 7B Instruct Turbo    | 文字    | 32,768  | 8,192  | 0.30 / 0.30 | 快速、非推理 |
| `together/zai-org/GLM-5.1`                         | GLM 5.1 FP4                  | 文字    | 202,752 | 8,192  | 1.40 / 4.40 | 推理模型   |

## 影片生成

內建的 `together` 外掛也會透過共用的 `video_generate` 工具註冊影片生成。

| 屬性     | 值                                                                      |
| ------ | ---------------------------------------------------------------------- |
| 預設影片模型 | `Wan-AI/Wan2.2-T2V-A14B`                                               |
| 其他模型   | `Wan-AI/Wan2.2-I2V-A14B`, `minimax/Hailuo-02`, `Kwai/Kling-2.1-Master` |
| 模式     | 文字轉影片；圖片轉影片僅適用於 `Wan-AI/Wan2.2-I2V-A14B`（單一參考圖片）                       |
| 時長     | 1-10 秒                                                                 |
| 支援的參數  | `size`（解析為 `<width>x<height>`）；不會讀取 `aspectRatio`/`resolution`         |

若要使用 Together 作為預設影片供應器：

```json5 theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  agents: {
    defaults: {
      videoGenerationModel: {
        primary: "together/Wan-AI/Wan2.2-T2V-A14B",
      },
    },
  },
}
```

<Tip>
  請參閱[影片生成](/zh-TW/tools/video-generation)，了解共用工具參數、
  供應器選擇與容錯移轉行為。
</Tip>

<AccordionGroup>
  <Accordion title="環境注意事項">
    如果閘道以常駐程式（launchd/systemd）執行，請確保該程序可使用
    `TOGETHER_API_KEY`（例如位於 `~/.openclaw/.env`，或透過
    `env.shellEnv`）。

    <Warning>
      只在互動式 shell 中設定的金鑰，對常駐程式管理的閘道程序不可見。
      請使用 `~/.openclaw/.env` 或 `env.shellEnv` 設定以確保持久可用。
    </Warning>
  </Accordion>

  <Accordion title="疑難排解">
    * 驗證你的金鑰可用：`openclaw models list --provider together`
    * 如果模型沒有出現，請確認 API 金鑰已在閘道程序的正確環境中設定。
    * 模型參照使用 `together/<model-id>` 格式。
  </Accordion>
</AccordionGroup>

## 相關內容

<CardGroup cols={2}>
  <Card title="模型供應器" href="/zh-TW/concepts/model-providers" icon="layers">
    供應器規則、模型參照與容錯移轉行為。
  </Card>

  <Card title="影片生成" href="/zh-TW/tools/video-generation" icon="video">
    共用影片生成工具參數與供應器選擇。
  </Card>

  <Card title="設定參考" href="/zh-TW/gateway/configuration-reference" icon="gear">
    完整設定結構描述，包含供應器設定。
  </Card>

  <Card title="Together AI" href="https://together.ai" icon="arrow-up-right-from-square">
    Together AI 儀表板、API 文件與定價。
  </Card>
</CardGroup>
