官方格式
圖片轉影片
使用 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-Versionheader,例如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.