Videolar
Bir Runway videosunun çözünürlüğünü yükseltin
Magnific ile CometAPI üzerinden bir videonun çözünürlüğünü yükseltin; 720p ile 4k arasında bir çıktı çözünürlüğü ve isteğe bağlı ayrıntı denetimleri seçin.
POST
/
runwayml
/
v1
/
video_upscale
cURL
curl --request POST \
--url https://api.cometapi.com/runwayml/v1/video_upscale \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "magnific_video_upscaler_creative",
"videoUri": "https://example.com/source-video.mp4",
"resolution": "2k"
}'import os
import requests
response = requests.post(
"https://api.cometapi.com/runwayml/v1/video_upscale",
headers={"Authorization": f"Bearer {os.environ['COMETAPI_KEY']}"},
json={
"model": "magnific_video_upscaler_creative",
"videoUri": "https://example.com/source-video.mp4",
"resolution": "2k"
},
)
response.raise_for_status()
print(response.json())const response = await fetch(
"https://api.cometapi.com/runwayml/v1/video_upscale",
{
method: "POST",
headers: {
Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "magnific_video_upscaler_creative",
"videoUri": "https://example.com/source-video.mp4",
"resolution": "2k"
}),
},
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/runwayml/v1/video_upscale",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'magnific_video_upscaler_creative',
'videoUri' => 'https://example.com/source-video.mp4'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/runwayml/v1/video_upscale"
payload := strings.NewReader("{\n \"model\": \"magnific_video_upscaler_creative\",\n \"videoUri\": \"https://example.com/source-video.mp4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/runwayml/v1/video_upscale")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"magnific_video_upscaler_creative\",\n \"videoUri\": \"https://example.com/source-video.mp4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/runwayml/v1/video_upscale")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"magnific_video_upscaler_creative\",\n \"videoUri\": \"https://example.com/source-video.mp4\"\n}"
response = http.request(request)
puts response.read_body{
"id": "00000000-0000-4000-8000-000000000000"
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Kaynak videonun çözünürlüğünü yükseltmek için
Model varsayılanını kullanmak için sayısal bir denetimi atlayın.
magnific_video_upscaler_creative kullanın. İstek
tamamlanan çıktıyı almak için bir görev id döndürür.
İsteği hazırlayın
- CometAPI API anahtarınızla kimlik doğrulaması yapın.
modeldeğerinimagnific_video_upscaler_creativeolarak ayarlayın vevideoUrideğerini 30 saniyeye kadar uzunluktaki bir video için sağlayın.- Örnek video URL’sini erişilebilir bir HTTPS URL’siyle değiştirin.
videoUriayrıca, kodlanmış boyutu 5 MB’a kadar olan bir Base64 video veri URI’sini kabul eder. resolutioniçin şu seçeneklerden birini belirleyin:720p,1k,2kveya4k.2kiçin alanı atlayın.
İyileştirmeyi ayarlayın
| Alan | Nasıl kullanılır |
|---|---|
creativity | Eklenecek oluşturulmuş ayrıntı miktarı, 1 ile 100. |
sharpen | Keskinlik yoğunluğu, 1 ile 100. |
smartGrain | Gren ve doku iyileştirme yoğunluğu, 1 ile 100. |
flavor | vivid renk ve ayrıntıyı vurgular; natural ise gerçeğe sadık üretimi destekler. |
fpsBoost | Artırılmış bir çıktı kare hızı istemek için true değerini ayarlayın. |
0 değeri
atlama olarak değerlendirilir; bu nedenle sıfır yoğunluk açıkça seçilmez. Benzer şekilde,
fpsBoost: false atlama olarak değerlendirilir ve açıkça devre dışı bırakmaz
kare hızı iyileştirmesini. İsteğe bağlı alanları null göndermek yerine atlayın.
Sonucu alın
Döndürülenid değerini kaydedin ve
Bir Runway görevi alma işlemini görev durumunu almak için kullanın.
status SUCCEEDED olduğunda, sonuç URL’lerini output içinden okuyun. Görev
başarısız olursa, mevcut olduklarında failure ve failureCode değerlerini inceleyin.Gövde
application/json
Magnific video-upscaling request.
Yanıt
The task was created. Save its id for task retrieval.
Son değiştirilme tarihi 21 Eylül 2026
⌘I
cURL
curl --request POST \
--url https://api.cometapi.com/runwayml/v1/video_upscale \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "magnific_video_upscaler_creative",
"videoUri": "https://example.com/source-video.mp4",
"resolution": "2k"
}'import os
import requests
response = requests.post(
"https://api.cometapi.com/runwayml/v1/video_upscale",
headers={"Authorization": f"Bearer {os.environ['COMETAPI_KEY']}"},
json={
"model": "magnific_video_upscaler_creative",
"videoUri": "https://example.com/source-video.mp4",
"resolution": "2k"
},
)
response.raise_for_status()
print(response.json())const response = await fetch(
"https://api.cometapi.com/runwayml/v1/video_upscale",
{
method: "POST",
headers: {
Authorization: `Bearer ${process.env.COMETAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "magnific_video_upscaler_creative",
"videoUri": "https://example.com/source-video.mp4",
"resolution": "2k"
}),
},
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/runwayml/v1/video_upscale",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'magnific_video_upscaler_creative',
'videoUri' => 'https://example.com/source-video.mp4'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/runwayml/v1/video_upscale"
payload := strings.NewReader("{\n \"model\": \"magnific_video_upscaler_creative\",\n \"videoUri\": \"https://example.com/source-video.mp4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/runwayml/v1/video_upscale")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"magnific_video_upscaler_creative\",\n \"videoUri\": \"https://example.com/source-video.mp4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/runwayml/v1/video_upscale")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"magnific_video_upscaler_creative\",\n \"videoUri\": \"https://example.com/source-video.mp4\"\n}"
response = http.request(request)
puts response.read_body{
"id": "00000000-0000-4000-8000-000000000000"
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}