跳轉到主要內容
POST
cURL
使用 magnific_video_upscaler_creative 將來源影片升頻。此請求 會傳回用於擷取完成輸出的任務 id。

準備請求

  • 使用您的 CometAPI API 金鑰進行驗證。
  • 將 model 設為 magnific_video_upscaler_creative,並提供 videoUri 以處理最長 30 秒的影片。
  • 將範例影片 URL 替換為可存取的 HTTPS URL。videoUri 也接受編碼後大小最多 5 MB 的 Base64 影片資料 URI。
  • 選擇 resolution:720p、1k、2k 或 4k。若要使用 2k,請省略此欄位。

調整增強效果

省略數值控制項即可使用模型預設值。值為 0 時會被視為 省略,因此不會明確選擇零強度。同樣地, fpsBoost: false 會被視為省略,且不會明確停用 影格率增強。請省略選用欄位,而非傳送 null。

擷取結果

儲存傳回的 id,並使用 取得 Runway 任務 以擷取任務狀態。 當 status 為 SUCCEEDED 時,從 output 讀取結果 URL。如果任務 失敗,請在存在時檢查 failure 與 failureCode。

授權

Authorization
string
header
必填

Your CometAPI API key.

主體

application/json

Magnific video-upscaling request.

model
enum<string>
必填

Model ID for this request.

可用選項:
magnific_video_upscaler_creative
videoUri
必填

Video to upscale, with a maximum duration of 30 seconds. Use an accessible HTTPS URL or a Base64 data URI with an encoded size of up to 5 MB.

Required string length: 13 - 2048
Pattern: ^https://
resolution
enum<string>

Target output resolution. Omit for 2k.

可用選項:
720p,
1k,
2k,
4k
creativity
integer

Amount of generated detail to add. Use 1 through 100 for an explicit setting. Omit to use the model default; 0 is treated as omission.

必填範圍: 0 <= x <= 100
sharpen
integer

Sharpness intensity. Use 1 through 100 for an explicit setting. Omit to use the model default; 0 is treated as omission.

必填範圍: 0 <= x <= 100
smartGrain
integer

Grain and texture enhancement intensity. Use 1 through 100 for an explicit setting. Omit to use the model default; 0 is treated as omission.

必填範圍: 0 <= x <= 100
flavor
enum<string>

Processing style: vivid emphasizes color and detail; natural favors faithful reproduction.

可用選項:
vivid,
natural
fpsBoost
boolean

Set true to request an increased output frame rate. Omit to leave this option unspecified; false is treated as omission.

回應

The task was created. Save its id for task retrieval.

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月21日