HERMES + LUMA

在 Hermes Agent 中使用 Luma。

Luma Ray 3.2 通过提示词驱动的变换修改现有视频,同时保持空间一致性和 3D 场景结构。发送源视频 URL 和描述变换的文本提示词——Luma 会以富有氛围的光照、环境细节以及物理一致的镜头运动重新渲染素材。Hermes Agent 通过 RunAPI 自定义端点调用它。

一个 API 密钥 · 视频修改端点 · 异步任务轮询
使用 RunAPI 通过 Luma Ray 3.2 修改视频。

要求:
- 从 RUNAPI_API_KEY 读取 API 密钥。
- 使用 custom:runapi 提供商,base_url 为 https://runapi.ai/v1。
- 调用 POST https://runapi.ai/api/v1/luma/modify_video
- 将 model 设为 "luma-modify-video"。
- 将 source_video_url 设为要变换的视频的 URL。
- 将 prompt 设为描述所需变换的内容。
- 该任务为异步任务。轮询返回的 task_id 直到 status 为 "completed"。
- 完成后,从响应 output 中读取修改后的视频 URL。
curl -X POST https://runapi.ai/api/v1/luma/modify_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "luma-modify-video",
    "prompt": "Transform the scene into a foggy autumn morning with golden light filtering through trees",
    "source_video_url": "https://example.com/park-walk.mp4"
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "luma-modify-video"
}
复制 curl 命令进行测试 luma
工作原理

三步在 Hermes Agent 中使用 Luma

1

Configure RunAPI

Set RUNAPI_API_KEY in the environment where Hermes Agent runs. If you already added RunAPI as a custom:runapi provider, the same key handles Luma video modification requests.

export RUNAPI_API_KEY=runapi_xxx
2

Call Luma modify_video

Send a POST request to the modify_video endpoint with model set to luma-modify-video, the source_video_url pointing to your input footage, and a prompt describing the transformation. Hermes Agent can build and send this request through the custom:runapi provider.

POST /api/v1/luma/modify_video
3

Poll for the result

The endpoint returns a task_id immediately. Poll the task status endpoint until the status is completed, then read the output video URL from the response. Video modification typically takes 30-120 seconds depending on complexity.

GET /api/v1/luma/modify_video/tsk_abc123
参数

Luma modify_video API 参数

参数 类型 说明
model string Required. Use luma-modify-video.
prompt string Required. Text description of the desired video transformation — style changes, lighting, atmosphere, or scene edits.
source_video_url string Required. URL of the source video to modify. Must be a publicly accessible MP4 or MOV file.
watermark boolean Optional. Whether to add a watermark to the output video.
callback_url string Optional. Webhook URL that receives a POST when the task completes.

Hermes Agent 上的 Luma 是什么?

Luma Ray 3.2(Dream Machine)以提示词驱动的变换重新渲染现有视频,同时保持 3D 空间一致性和物理上连贯的镜头运动。通过 Hermes Agent 的 custom:runapi provider,它可处理源素材上的大气调整、风格迁移和环境编辑。

Luma 使用场景

概念宣传片与动态静帧

将静态概念图或粗剪素材变换为风格化动态作品。Hermes Agent 可在单一工作流中先用 Kling 或 Wan 生成基础视频,再传给 Luma 进行大气感重新渲染。

季节性与品牌内容再利用

将现有视频素材重新渲染为季节性活动、新品牌规范或不同市场风格,无需重新拍摄。Luma 在改变视觉处理的同时保留原始构图。

抽象与超现实视觉内容

对源素材施加超现实、绘画感或抽象变换,用于创意项目、音乐可视化或实验性内容,充分发挥 Luma 梦幻渲染质感的优势。

常见问题

Luma + Hermes Agent 常见问题

Hermes Agent 通用配置

尚未配置?请从 Hermes Agent 的 RunAPI 配置指南开始。

Hermes Agent 配置指南 →

Luma 模型目录

查看 Luma 版本、定价和 API 文档。

Luma 模型 →

立即在 Hermes Agent 中试用 Luma。

免费获取 RunAPI 密钥,配置 custom:runapi 提供商,开始使用 Luma Ray 3.2 的空间感知变换修改视频。