Together AI

Together AI 透過統一 API 提供 Llama、DeepSeek、Kimi 等主流開源模型的存取。

  • 供應商:together
  • 認證:TOGETHER_API_KEY
  • API:OpenAI 相容

快速開始

  1. 設定 API 金鑰(建議存入 Gateway):
openclaw onboard --auth-choice together-api-key
  1. 設定預設模型:
{
  agents: {
    defaults: {
      model: { primary: "together/moonshotai/Kimi-K2.5" },
    },
  },
}

非互動模式範例

openclaw onboard --non-interactive \
  --mode local \
  --auth-choice together-api-key \
  --together-api-key "$TOGETHER_API_KEY"

這會將 together/moonshotai/Kimi-K2.5 設為預設模型。

環境注意事項

若 Gateway 以常駐程序(launchd/systemd)方式執行,請確保該程序能存取 TOGETHER_API_KEY(例如寫入 ~/.openclaw/.env 或透過 env.shellEnv 設定)。

可用模型

Together AI 提供多種熱門開源模型:

  • GLM 4.7 Fp8 — 預設模型,200K context window
  • Llama 3.3 70B Instruct Turbo — 快速高效的指令遵循
  • Llama 4 Scout — 具備圖片理解的視覺模型
  • Llama 4 Maverick — 進階視覺與推理
  • DeepSeek V3.1 — 強大的程式碼撰寫與推理模型
  • DeepSeek R1 — 進階推理模型
  • Kimi K2 Instruct — 高效能模型,262K context window

所有模型皆支援標準 chat completions,並與 OpenAI API 相容。