Skip to main content
Together AI 通过统一 API 提供对领先开源模型的访问,包括 Llama、DeepSeek、Kimi 等。 OpenClaw 将它内置为 together 提供商。
属性
提供商together
认证TOGETHER_API_KEY
APIOpenAI 兼容
基础 URLhttps://api.together.xyz/v1

入门指南

1

Get an API key

api.together.ai/settings/api-keys 创建 API key。
2

Run onboarding

openclaw onboard --auth-choice together-api-key
3

Set a default model

{
  agents: {
    defaults: {
      model: {
        primary: "together/meta-llama/Llama-3.3-70B-Instruct-Turbo",
      },
    },
  },
}

非交互式示例

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 设置为默认模型。

内置目录

费用以每百万 token 的美元价格计算。
模型引用名称输入上下文最大输出成本(输入/输出)备注
together/meta-llama/Llama-3.3-70B-Instruct-TurboLlama 3.3 70B Instruct Turbo文本131,0728,1920.88 / 0.88默认模型
together/moonshotai/Kimi-K2.6Kimi K2.6 FP4文本、图像262,14432,7681.20 / 4.50推理模型
together/deepseek-ai/DeepSeek-V4-ProDeepSeek V4 Pro文本512,0008,1922.10 / 4.40推理模型
together/Qwen/Qwen2.5-7B-Instruct-TurboQwen2.5 7B Instruct Turbo文本32,7688,1920.30 / 0.30快速,非推理
together/zai-org/GLM-5.1GLM 5.1 FP4文本202,7528,1921.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> 解析);不会读取 aspectRatio/resolution
要将 Together 用作默认视频提供商:
{
  agents: {
    defaults: {
      videoGenerationModel: {
        primary: "together/Wan-AI/Wan2.2-T2V-A14B",
      },
    },
  },
}
参阅视频生成,了解共享工具参数、提供商选择和故障转移行为。
如果 Gateway 网关 作为守护进程(launchd/systemd)运行,请确保 TOGETHER_API_KEY 可供该进程使用(例如,在 ~/.openclaw/.env 中,或通过 env.shellEnv)。
仅在你的交互式 shell 中设置的密钥,对守护进程管理的 Gateway 网关 进程不可见。请使用 ~/.openclaw/.envenv.shellEnv 配置来保证持久可用。
  • 验证你的密钥可用:openclaw models list --provider together
  • 如果模型没有出现,请确认 API key 已在你的 Gateway 网关 进程的正确环境中设置。
  • 模型引用使用 together/<model-id> 形式。

相关内容

Model providers

提供商规则、模型引用和故障转移行为。

Video generation

共享的视频生成工具参数和提供商选择。

Configuration reference

完整配置 schema,包括提供商设置。

Together AI

Together AI 仪表板、API 文档和定价。