官方格式
图像转视频
使用 CometAPI 调用 Runway 的 image_to_video,将静态图片 URL 转换为原始视频输出,并支持通过 X-Runway-Version 实现兼容性。
POST
Create a Runway image-to-video task
使用此端点可将一张源图片制作成 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请求头,例如2024-11-06 - 使用
model: gen3a_turbo - 提供稳定可用的 HTTPS
promptImage - 从
duration: 5和常见比例(如1280:720)开始
任务流程
轮询任务状态
使用 获取任务详情。如果首次轮询返回
task_not_exist,请等待几秒后重试。授权
Bearer token authentication. Use your CometAPI key.
请求头
Runway version header, for example 2024-11-06.
请求体
application/json
promptImage
string
默认值:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
必填
Source image URL.
Runway image-to-video model ID. Choose a current model from the Models page.
Random seed for reproducible results. Range: 0–999999999.
Text prompt describing the desired motion or scene. Maximum 512 characters.
Whether to add a watermark to the output video.
Video duration in seconds. Accepted values: 5 or 10.
Aspect ratio of the output video.
可用选项:
1280:720, 720:1280, 1104:832, 832:1104, 960:960, 1584:672, 1280:768, 768:1280 响应
200 - application/json
Task accepted.