跳轉到主要內容
POST
/
runwayml
/
v1
/
image_to_video
Create a Runway image-to-video task
curl --request POST \
  --url https://api.cometapi.com/runwayml/v1/image_to_video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Runway-Version: <x-runway-version>' \
  --data '
{
  "promptImage": "https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg",
  "model": "gen3a_turbo"
}
'
{
  "id": "3d957031-9a2a-45e2-9dc7-bc8513059c50"
}
使用此端點可將單一來源圖片製作成 Runway 影片動畫。

呼叫前準備

  • 傳送必要的 X-Runway-Version 標頭,例如 2024-11-06
  • 使用 model: gen3a_turbo
  • 提供穩定的 HTTPS promptImage
  • 建議從 duration: 5 和常見比例(例如 1280:720)開始

任務流程

1

提交圖片轉影片請求

使用來源圖片與可選的簡短動作 Prompt 建立任務。
2

保存回傳的 id

儲存任務 id 以供後續輪詢使用。
3

輪詢任務狀態

使用 取得任務詳細資訊。如果第一次輪詢回傳 task_not_exist,請等待幾秒後重試。
於 2026-03-13 的即時驗證確認,最小化的 gen3a_turbo 請求已被接受並回傳 id。在短暫延遲後,官方 task-details 與反向 feed 都為該任務回傳了相同的包裝 queued 狀態。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

標頭

X-Runway-Version
string
必填

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.

model
string
預設值:gen3a_turbo
必填

Runway image-to-video model ID. Choose a current model from the Models page.

seed
integer

Random seed for reproducible results. Range: 0–999999999.

promptText
string

Text prompt describing the desired motion or scene. Maximum 512 characters.

watermark
boolean
預設值:false

Whether to add a watermark to the output video.

duration
integer
預設值:5

Video duration in seconds. Accepted values: 5 or 10.

ratio
enum<string>
預設值:1280:720

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.

id
string
必填