Skip to content

fal

OpenClaw 内置 fal Provider,提供托管图片和视频生成服务。

  • Provider ID:fal
  • 认证:FAL_KEY(推荐;FAL_API_KEY 也支持作为回退)
  • API:fal 模型端点

快速开始

1. 设置 API Key:

bash
openclaw onboard --auth-choice fal-api-key

2. 设置默认图片模型:

json5
{
  agents: {
    defaults: {
      imageGenerationModel: {
        primary: "fal/fal-ai/flux/dev",
      },
    },
  },
}

图片生成

内置 fal 图片生成 Provider 默认使用 fal/fal-ai/flux/dev

  • 每次请求最多生成 4 张图片
  • 支持编辑模式,最多传入 1 张参考图片
  • 支持 sizeaspectRatioresolution 参数
  • 注意:fal 图片编辑端点不支持 aspectRatio 覆盖

将 fal 设为默认图片 Provider:

json5
{
  agents: {
    defaults: {
      imageGenerationModel: {
        primary: "fal/fal-ai/flux/dev",
      },
    },
  },
}

视频生成

内置 fal 视频生成 Provider 默认使用 fal/fal-ai/minimax/video-01-live

  • 支持文生视频和单张参考图片流程
  • 运行时:队列式提交/状态查询/结果获取,适合长时运行任务

将 fal 设为默认视频 Provider:

json5
{
  agents: {
    defaults: {
      videoGenerationModel: {
        primary: "fal/fal-ai/minimax/video-01-live",
      },
    },
  },
}

延伸阅读