halonumber
Halo reduction level (0.0-1.0). Default varies by model.
ขั้นต่ำ: 0
สูงสุด: 1
topaz/upscale/videoUpscale Video is Topaz Labs's video-to-video AI model. Transform, enhance, and edit video content using text prompts - from style changes to object manipulation and scene modification.
ลองใช้โมเดล
ต้องการทำอะไรต่อ
เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
{
"video": "https://static.sandbase.ai/examples/1e4dfe61-979e-46cb-b89b-febca05cad88/input/b80bd4f4-a0df-434c-98c9-e7f418ff0cb3.mp4"
}Topaz upscales and enhances video, with optional frame interpolation to 60fps.
| Field | Type | Default | Notes |
|---|---|---|---|
video | video URL, required | — | Video to upscale. |
noise | number 0–1 | — | Noise reduction level (0.0-1.0). |
upscale_factor | number 1–4 | 2 | 1–4×. |
halo | number 0–1 | — | Halo reduction level (0.0-1.0). |
compression | number 0–1 | — | Compression artifact removal level (0.0-1.0). |
grain | number 0–0.1 | — | Film grain amount (0.0-0.1). |
recover_detail | number 0–1 | — | Recover original detail level (0.0-1.0). |
target_fps | integer 16–60 | — | Interpolate to this frame rate (16–60). |
H264_output | boolean | false | Whether to use H264 codec for output video. |
Per output second (minimum 5): $0.01 up to 720p, $0.02 up to 1080p, $0.08 above; 60fps doubles the rate.
| Output | 720p | 1080p | 4K |
|---|---|---|---|
| 10s | $0.10 | $0.20 | $0.80 |
Failed runs are not charged.
Related: bytedance/upscaler/video.
เริ่มสร้าง
ส่งโมเดลนี้ผ่าน SandBase Unified Run API
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "Proteus",
"video": "https://static.sandbase.ai/examples/topaz/upscale/video/input_video_0.mp4",
"H264_output": false,
"upscale_factor": 2
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"สร้าง SandBase API key และตั้งค่าไว้ในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอทั้งหมดใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์หรือคอมมิตลง repository
POST ไปที่ /v1/run ด้วย model ID นี้และอินพุตของมัน ตัวอย่างคำขอด้านบนมีทั้งการส่งและการ polling
ใช้ run ID ที่ส่งกลับมาเพื่อ polling จนกว่าสถานะจะเป็น completed, failed หรือ timeout ให้อ่าน output หลังจาก completed เท่านั้น
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"ส่ง URL ไฟล์ที่เข้าถึงได้สาธารณะในช่อง image, video หรือ audio ของโมเดล รูปแบบและข้อจำกัดที่รองรับแสดงอยู่ข้างแต่ละอินพุตใน Playground
ใช้ตัวควบคุม upload หรือ replace ในช่องรูปภาพที่รองรับใน Playground ช่อง URL ของวิดีโอรองรับวิดีโอ driving ที่โฮสต์ไว้; ไม่ได้หมายความว่าสามารถอัปโหลดวิดีโอได้
halonumberHalo reduction level (0.0-1.0). Default varies by model.
ขั้นต่ำ: 0
สูงสุด: 1
grainnumberFilm grain amount (0.0-0.1). Default varies by model.
ขั้นต่ำ: 0
สูงสุด: 0.1
modelstringVideo enhancement model, grouped by family. Precision: Proteus fits most footage, Artemis denoises and sharpens degraded sources, Gaia HQ/CG refine rendered content, Gaia 2 handles animation and motion graphics at 2x. Denoise: Nyx models are dedicated noise reduction. Generative: Starlight models use diffusion for restoration and upscaling. Starlight Precise 1, Starlight Precise 2 and Starlight Fast 1 are deprecated by Topaz; prefer Starlight Precise 2.5 or Starlight Fast 2.
ค่าเริ่มต้น: "Proteus"
ค่าที่เป็นไปได้: "Proteus", "Artemis HQ", "Artemis MQ", "Artemis LQ", "Gaia HQ", "Gaia CG", "Gaia 2", "Nyx", "Nyx Fast", "Nyx XL", "Nyx HF", "Starlight Precise 2.5", "Starlight HQ", "Starlight Mini", "Starlight Sharp", "Starlight Fast 2", "Starlight Precise 1", "Starlight Precise 2", "Starlight Fast 1"
noisenumberNoise reduction level (0.0-1.0). Default varies by model.
ขั้นต่ำ: 0
สูงสุด: 1
videostringจำเป็นURL of the video to upscale
target_fpsintegerTarget FPS for frame interpolation. If set, frame interpolation will be enabled.
ขั้นต่ำ: 16
สูงสุด: 60
H264_outputbooleanWhether to use H264 codec for output video. Default is H265.
ค่าเริ่มต้น: false
compressionnumberCompression artifact removal level (0.0-1.0). Default varies by model.
ขั้นต่ำ: 0
สูงสุด: 1
recover_detailnumberRecover original detail level (0.0-1.0). Higher values preserve more original detail.
ขั้นต่ำ: 0
สูงสุด: 1
upscale_factornumberFactor to upscale the video by (e.g. 2.0 doubles width and height)
ค่าเริ่มต้น: 2
ขั้นต่ำ: 1
สูงสุด: 4
{
"model": "Proteus",
"video": "https://static.sandbase.ai/examples/topaz/upscale/video/input_video_0.mp4",
"H264_output": false,
"upscale_factor": 2
}run ที่เสร็จสมบูรณ์จะแสดงผลลัพธ์ใน output ต่อไปนี้เป็นตัวอย่างที่บันทึกไว้ของโมเดล ไม่ใช่การสร้างใหม่
[
{
"poster": "https://static.sandbase.ai/examples/posters/85fcd8ed50a5b526b41c.jpg",
"source": "topaz schema mirror",
"source_url": "https://topaz.example/",
"url": "https://static.sandbase.ai/examples/1e4dfe61-979e-46cb-b89b-febca05cad88/output/6d5e0a6a-f6ea-44ac-9878-e9d6f9401f9e.mp4"
}
]