从视频生成视频
使用 CometAPI Runway POST /runwayml/v1/video_to_video 启动视频转视频生成任务,设置 X-Runway-Version,并转换源视频片段。
使用此端点可通过 Runway 的视频转视频工作流转换现有源视频片段。它会启动一个异步任务,而不是立即返回最终输出。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
调用前准备
- 准备一个符合提供商输入要求的源视频
- 包含所需的
X-Runway-Version请求头,以启用你需要的功能集 - 先使用一个简短的 Prompt 描述要进行的改动,而不是编写完整分镜
任务流程
轮询任务详情
授权
Bearer token authentication. Use your CometAPI key.
请求头
Runway API version header, for example 2024-11-06.
请求体
HTTPS URL of the source video, or a base64 data URI containing the video.
Text prompt describing the desired output. Maximum 1000 characters.
Random seed for reproducible results. Range: 0–4294967295.
Model variant to use.
Optional reference images to guide generation. Each item must include type (e.g. image) and uri (HTTPS URL).
Aspect ratio of the output video, e.g. 1280:720.
响应
success
The ID of the task that was created. Use this to retrieve the task later.