Providers

Together AI

Together AI 透過統一的 API,提供對 Llama、DeepSeek、Kimi 等頂尖開源模型的存取。 OpenClaw 將其內建為 together 提供者。

屬性
提供者 together
驗證 TOGETHER_API_KEY
API 相容於 OpenAI
基礎 URL https://api.together.xyz/v1

開始使用

  • 取得 API 金鑰

    api.together.ai/settings/api-keys 建立 API 金鑰。

  • 執行初始設定

    bash
    openclaw onboard --auth-choice together-api-key
  • 設定預設模型

    json5
    {  agents: {    defaults: {      model: {        primary: "together/meta-llama/Llama-3.3-70B-Instruct-Turbo",      },    },  },}
  • 非互動式範例

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

    內建目錄

    費用以每百萬個權杖的美元價格計算。

    模型參照 名稱 輸入 上下文 最大輸出 費用(輸入/輸出) 備註
    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-A14Bminimax/Hailuo-02Kwai/Kling-2.1-Master
    模式 文字轉影片;僅 Wan-AI/Wan2.2-I2V-A14B 支援圖片轉影片(單張參考圖片)
    時長 1 至 10 秒
    支援的參數 size(解析為 <width>x<height>);不會讀取 aspectRatioresolution

    若要將 Together 設為預設影片提供者:

    json5
    {  agents: {    defaults: {      videoGenerationModel: {        primary: "together/Wan-AI/Wan2.2-T2V-A14B",      },    },  },}
    環境注意事項

    如果閘道以背景服務(launchd/systemd)執行,請確認該程序可存取 TOGETHER_API_KEY(例如在 ~/.openclaw/.env 中設定,或透過 env.shellEnv 提供)。

    疑難排解
    • 驗證金鑰是否有效:openclaw models list --provider together
    • 如果模型未顯示,請確認 API 金鑰已設定於閘道程序所使用的正確環境中。
    • 模型參照採用 together/<model-id> 格式。

    相關內容

    Was this useful?
    On this page

    On this page