跳轉到主要內容
POST
使用此端點將來源圖片製作成動畫。請將您的 CometAPI API 金鑰透過 Bearer 驗證傳送,並提供 JSON 請求主體。

選擇模型

如為純文字請求,請使用 建立 Runway 文字轉影片任務.

提供第一個影格

將 promptImage 設為可存取的 HTTPS 圖片 URL 或 Base64 圖片資料 URI。 您也可以提供包含 uri 和 position: "first" 的單一項目陣列。 此介面僅接受一個起始影格;請勿新增最後影格項目。 HTTPS 圖片必須可直接存取、不得經過重新導向,且必須具有有效的 圖片內容標頭。編碼的圖片資料 URI 最大可達 5 MB。請參閱 Runway 媒體輸入要求 以瞭解圖片格式和尺寸。

設定時長與尺寸

使用整數 duration,範圍為 2 至 10 秒。此欄位為必填 適用於 gen4.5,對 gen4_turbo 則為選填。 將 ratio 設為 1280:720、720:1280、1104:832、960:960、832:1104 或 1584:672。這些是以冒號分隔的寬度與高度值。 如要指定明確的取樣種子,請使用 1 至 4294967295。省略該欄位或設為 0 時,會選擇隨機種子。若包含 contentModeration,請將其 publicFigureThreshold 設為 auto 或 low;否則請省略該物件。

選擇輸出格式

gen4.5 接受 outputFormat 以輸出 MP4、ProRes、PNG 序列,以及請求結構描述中列出的 HDR 格式。請省略此欄位以使用 H.264 MP4。 proresProfile 僅適用於 prores 和 hdr_prores;其允許的值 取決於所選格式。搭配 gen4_turbo 時請省略這兩個欄位。

取得結果

儲存傳回的 id,並使用 取得 Runway 任務. 當 status 為 SUCCEEDED 時,請讀取 output 中的結果 URL。

授權

Authorization
string
header
必填

Use your CometAPI API key.

主體

application/json

Request parameters for gen4.5.

model
enum<string>
必填

Model ID for this request variant.

可用選項:
gen4.5
Allowed value: "gen4.5"
promptText
string
必填

Describe the requested scene or motion in 1 to 1,000 UTF-16 code units.

Required string length: 1 - 1000
promptImage
必填

Image to use as the first frame. Supply a media URI or a one-item array with position set to first.

Maximum string length: 2048
Pattern: ^https://
ratio
enum<string>
必填

Requested output dimensions, expressed as width:height. Choose a value listed for this model and endpoint.

可用選項:
1280:720,
720:1280,
1104:832,
960:960,
832:1104,
1584:672
duration
integer
必填

Requested video duration in whole seconds, from 2 through 10.

必填範圍: 2 <= x <= 10
seed
integer

Optional sampling seed. Use a positive integer for an explicit seed. Omission or 0 selects a random seed.

必填範圍: 0 <= x <= 4294967295
contentModeration
object

Optional content moderation settings. Omit the object to use standard moderation.

outputFormat
enum<string>
必填 if proresProfile is set

Output encoding. Omit for mp4 (H.264). prores returns MOV; png_sequence returns a PNG ZIP; sdr_rec709_10bit returns 10-bit Rec.709 HEVC. hdr10 and hlg return 10-bit HDR MP4; hdr_pq_12bit_master returns 12-bit HEVC MOV; hdr_prores returns HDR ProRes MOV. The HDR PNG/EXR sequence formats return ZIP archives; the ACEScg variants target the named ACES version.

可用選項:
mp4,
prores,
png_sequence,
hdr10,
hlg,
sdr_rec709_10bit,
hdr_pq_12bit_master,
hdr_prores,
hdr_png_sequence,
hdr_exr_sequence,
hdr_exr_acescg_sequence_1_3,
hdr_exr_acescg_sequence_2_0
proresProfile
enum<string>

Profile for outputFormat prores or hdr_prores. Omit for 4444 with prores, or 422 HQ with hdr_prores. hdr_prores accepts only 422, 422 HQ, or 4444. Omit this field for other formats.

可用選項:
422,
4444,
422 Proxy,
422 LT,
422 HQ,
4444 XQ

回應

Task submitted. Save its id to retrieve task status.

id
string
必填

Task ID for GET /runwayml/v1/tasks/{id}.

status
string

Task state, when returned.

createdAt
string<date-time>

Task submission timestamp, when returned.

output
string<uri>[]

Result URLs, when returned.

failure
string

Failure explanation, when returned.

failureCode
string

Machine-readable failure code, when returned.

estimatedCost
object

Task estimate metadata, when returned.

cost
object

Task cost metadata, when returned.

最後修改於 2026年9月22日