Saltar para o conteúdo principal
POST
cURL
Use magnific_video_upscaler_creative para aumentar a resolução de um vídeo de origem. A solicitação retorna um id de tarefa para recuperar a saída concluída.

Preparar a solicitação

  • Autentique-se com sua chave de API da CometAPI.
  • Defina model como magnific_video_upscaler_creative e forneça videoUri para um vídeo de até 30 segundos.
  • Substitua a URL de vídeo de exemplo por uma URL HTTPS acessível. videoUri também aceita um URI de dados de vídeo Base64 com um tamanho codificado de até 5 MB.
  • Escolha resolution: 720p, 1k, 2k ou 4k. Omita o campo para 2k.

Ajustar o aprimoramento

Omita um controle numérico para usar o padrão do modelo. Um valor de 0 é tratado como omissão, portanto não seleciona explicitamente intensidade zero. Da mesma forma, fpsBoost: false é tratado como omissão e não desativa explicitamente o aprimoramento da taxa de quadros. Omita campos opcionais em vez de enviar null.

Recuperar o resultado

Salve o id retornado e use Obter uma tarefa do Runway para recuperar o status da tarefa. Quando status for SUCCEEDED, leia as URLs de resultado em output. Se a tarefa falhar, inspecione failure e failureCode quando presentes.

Autorizações

Authorization
string
header
obrigatório

Your CometAPI API key.

Corpo

application/json

Magnific video-upscaling request.

model
enum<string>
obrigatório

Model ID for this request.

Opções disponíveis:
magnific_video_upscaler_creative
videoUri
obrigatório

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.

Opções disponíveis:
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.

Intervalo necessário: 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.

Intervalo necessário: 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.

Intervalo necessário: 0 <= x <= 100
flavor
enum<string>

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

Opções disponíveis:
vivid,
natural
fpsBoost
boolean

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

Resposta

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

id
string
obrigatório

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.

Última modificação em 21 de setembro de 2026