Aumenta la resolución de un vídeo de Runway
Aumenta la resolución de un vídeo mediante CometAPI con Magnific, eligiendo una resolución de salida de 720p a 4k y controles de detalle opcionales.
magnific_video_upscaler_creative para aumentar la resolución de un vídeo de origen. La solicitud
devuelve un id de tarea para recuperar el resultado finalizado.
Prepara la solicitud
- Autentícate con tu clave de API de CometAPI.
- Establece
modelenmagnific_video_upscaler_creativey proporcionavideoUripara un vídeo de hasta 30 segundos. - Sustituye la URL de vídeo de ejemplo por una URL HTTPS accesible.
videoUritambién acepta un URI de datos de vídeo Base64 con un tamaño codificado de hasta 5 MB. - Elige
resolution:720p,1k,2ko4k. Omite el campo para2k.
Ajusta la mejora
0 se considera
una omisión, por lo que no selecciona explícitamente intensidad cero. Del mismo modo,
fpsBoost: false se considera una omisión y no desactiva explícitamente
la mejora de la velocidad de fotogramas. Omite los campos opcionales en lugar de enviar null.
Recupera el resultado
Guarda elid devuelto y usa
Obtener una tarea de Runway para recuperar el estado de la tarea.
Cuando status sea SUCCEEDED, lee las URL del resultado en output. Si la tarea
falla, inspecciona failure y failureCode cuando estén presentes.Autorizaciones
Your CometAPI API key.
Cuerpo
Magnific video-upscaling request.
Model ID for this request.
magnific_video_upscaler_creative 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.
13 - 2048^https://Target output resolution. Omit for 2k.
720p, 1k, 2k, 4k 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 <= 100Sharpness intensity. Use 1 through 100 for an explicit setting. Omit to use the model default; 0 is treated as omission.
0 <= x <= 100Grain 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 <= 100Processing style: vivid emphasizes color and detail; natural favors faithful reproduction.
vivid, natural Set true to request an increased output frame rate. Omit to leave this option unspecified; false is treated as omission.
Respuesta
The task was created. Save its id for task retrieval.
Task ID for GET /runwayml/v1/tasks/{id}.
Task state, when returned.
Task submission timestamp, when returned.
Result URLs, when returned.
Failure explanation, when returned.
Machine-readable failure code, when returned.
Task estimate metadata, when returned.
Task cost metadata, when returned.