Skip to main content

Together AI

Together AI 通过统一的 API 提供对 Llama、DeepSeek、Kimi 等领先开源模型的访问。
  • 提供商:together
  • 凭证:TOGETHER_API_KEY
  • API:与 OpenAI 兼容
  • 基础 URL:https://api.together.xyz/v1

快速开始

  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)。

内置目录

OpenClaw 当前内置了以下 Together 模型目录:
Model refNameInputContextNotes
together/moonshotai/Kimi-K2.5Kimi K2.5文本、图像262,144默认模型;已启用推理
together/zai-org/GLM-4.7GLM 4.7 Fp8文本202,752通用文本模型
together/meta-llama/Llama-3.3-70B-Instruct-TurboLlama 3.3 70B Instruct Turbo文本131,072快速指令模型
together/meta-llama/Llama-4-Scout-17B-16E-InstructLlama 4 Scout 17B 16E Instruct文本、图像10,000,000多模态
together/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8Llama 4 Maverick 17B 128E Instruct FP8文本、图像20,000,000多模态
together/deepseek-ai/DeepSeek-V3.1DeepSeek V3.1文本131,072通用文本模型
together/deepseek-ai/DeepSeek-R1DeepSeek R1文本131,072推理模型
together/moonshotai/Kimi-K2-Instruct-0905Kimi K2-Instruct 0905文本262,144次要 Kimi 文本模型
新手引导预设会将 together/moonshotai/Kimi-K2.5 设置为默认模型。

视频生成

内置的 together 插件还通过共享的 video_generate 工具注册了视频生成功能。
  • 默认视频模型:together/Wan-AI/Wan2.2-T2V-A14B
  • 模式:文生视频和单图参考流程
  • 支持 aspectRatioresolution
要将 Together 设为默认视频提供商:
{
  agents: {
    defaults: {
      videoGenerationModel: {
        primary: "together/Wan-AI/Wan2.2-T2V-A14B",
      },
    },
  },
}
有关共享工具参数、提供商选择和故障转移行为,请参阅视频生成