跳转到主要内容
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日