Przejdź do głównej treści
POST
cURL
Użyj magnific_video_upscaler_creative, aby powiększyć jakość filmu źródłowego. Żądanie zwraca identyfikator zadania id, który służy do pobrania gotowego wyniku.

Przygotowanie żądania

  • Uwierzytelnij się za pomocą klucza API CometAPI.
  • Ustaw model na magnific_video_upscaler_creative i podaj videoUri dla filmu trwającego maksymalnie 30 sekund.
  • Zastąp przykładowy adres URL filmu dostępnym adresem HTTPS. videoUri akceptuje również identyfikator URI danych wideo Base64 o zakodowanym rozmiarze do 5 MB.
  • Wybierz resolution: 720p, 1k, 2k lub 4k. Pomiń to pole, aby użyć 2k.

Dostosowanie ulepszania

Pomiń ustawienie numeryczne, aby użyć domyślnej wartości modelu. Wartość 0 jest traktowana jak pominięcie, więc nie wybiera jawnie intensywności zerowej. Podobnie fpsBoost: false jest traktowane jako pominięcie i nie wyłącza jawnie ulepszania liczby klatek na sekundę. Pomiń pola opcjonalne zamiast wysyłać null.

Pobieranie wyniku

Zapisz zwrócony id i użyj Pobieranie zadania Runway aby pobrać status zadania. Gdy status ma wartość SUCCEEDED, odczytaj adresy URL wyników z output. Jeśli zadanie zakończy się niepowodzeniem, sprawdź failure i failureCode, jeśli są obecne.

Autoryzacje

Authorization
string
header
wymagane

Your CometAPI API key.

Treść

application/json

Magnific video-upscaling request.

model
enum<string>
wymagane

Model ID for this request.

Dostępne opcje:
magnific_video_upscaler_creative
videoUri
wymagane

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.

Dostępne opcje:
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.

Wymagany zakres: 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.

Wymagany zakres: 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.

Wymagany zakres: 0 <= x <= 100
flavor
enum<string>

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

Dostępne opcje:
vivid,
natural
fpsBoost
boolean

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

Odpowiedź

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

id
string
wymagane

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.

Ostatnia modyfikacja 21 września 2026