Chuyển đến nội dung chính
POST
cURL
Dùng magnific_video_upscaler_creative để nâng cấp độ phân giải video nguồn. Yêu cầu này trả về id của tác vụ để truy xuất đầu ra đã hoàn tất.

Chuẩn bị yêu cầu

  • Xác thực bằng API key CometAPI của bạn.
  • Đặt model thành magnific_video_upscaler_creative và cung cấp videoUri cho video dài tối đa 30 giây.
  • Thay URL video ví dụ bằng một URL HTTPS có thể truy cập. videoUri cũng chấp nhận URI dữ liệu video Base64 có kích thước mã hóa tối đa 5 MB.
  • Chọn resolution: 720p, 1k, 2k hoặc 4k. Bỏ qua trường này để dùng 2k.

Điều chỉnh tính năng nâng cấp

Bỏ qua một tùy chọn điều khiển dạng số để dùng giá trị mặc định của model. Giá trị 0 được coi là không cung cấp, vì vậy không chọn rõ ràng cường độ bằng không. Tương tự, fpsBoost: false được coi là không cung cấp và không vô hiệu hóa rõ ràng tính năng cải thiện tốc độ khung hình. Hãy bỏ qua các trường tùy chọn thay vì gửi null.

Truy xuất kết quả

Lưu id được trả về và dùng Lấy một tác vụ Runway để truy xuất trạng thái tác vụ. Khi status là SUCCEEDED, hãy đọc các URL kết quả từ output. Nếu tác vụ thất bại, hãy kiểm tra failure và failureCode nếu có.

Ủy quyền

Authorization
string
header
bắt buộc

Your CometAPI API key.

Nội dung

application/json

Magnific video-upscaling request.

model
enum<string>
bắt buộc

Model ID for this request.

Tùy chọn có sẵn:
magnific_video_upscaler_creative
videoUri
bắt buộc

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.

Tùy chọn có sẵn:
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.

Phạm vi bắt buộc: 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.

Phạm vi bắt buộc: 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.

Phạm vi bắt buộc: 0 <= x <= 100
flavor
enum<string>

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

Tùy chọn có sẵn:
vivid,
natural
fpsBoost
boolean

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

Phản hồi

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

id
string
bắt buộc

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.

Lần sửa đổi cuối 21 tháng 9, 2026