동영상 업스케일

Topaz Video Upscale

MegaBrain API로 쓰는 Topaz Video Upscale(동영상 업스케일): 동영상 1초당 $0.048. 모든 모델에 키 하나, 달러 선불 잔액에서 결제, 구독 없음.

topaz/video-upscale
가격
$0.048
동영상 1초당

작업이 대기열에 들어갈 때 차감되고, 생성에 실패하면 환불됩니다.

출력 예시

브라우저에서 사용해 보기

로그인하면 영어 페이지의 플레이그라운드에서 Topaz Video Upscale을(를) 브라우저로 실행할 수 있으며, API와 같은 잔액에서 결제됩니다.

플레이그라운드 열기

요청 파라미터

요청 JSON 본문의 필드입니다. 모델은 다른 필드를 받지 않으며, 포함하면 400 오류가 반환됩니다.

  • upscale_factor문자열선택
    기본값:
    2
    값:
    1, 2, 4
  • video_urlURL필수

API로 사용하기

작업을 보내고 status_url이 COMPLETED가 될 때까지 확인한 뒤 response_url에서 결과를 받으세요. 같은 키와 잔액으로 텍스트 모델도 쓸 수 있습니다. API 문서(영어)

curl

curl -X POST https://getmegabrain.com/api/gateway/v1/queue/topaz/video-upscale \
  -H "Authorization: Bearer $MEGABRAIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_url":"https://example.com/clip.mp4"}'

# Then poll status_url and fetch the result from response_url:
curl https://getmegabrain.com/api/gateway/v1/queue/requests/$REQUEST_ID -H "Authorization: Bearer $MEGABRAIN_API_KEY"

Python

import os, time, requests

BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}

job = requests.post(f"{BASE}/queue/topaz/video-upscale", headers=HEADERS, json={
  "video_url": "https://example.com/clip.mp4"
}).json()

while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
    time.sleep(2)

print(requests.get(job["response_url"], headers=HEADERS).json())

JavaScript

const BASE = 'https://getmegabrain.com/api/gateway/v1';
const headers = {
  Authorization: `Bearer ${process.env.MEGABRAIN_API_KEY}`,
  'Content-Type': 'application/json',
};

const job = await fetch(`${BASE}/queue/topaz/video-upscale`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    "video_url": "https://example.com/clip.mp4"
  }),
}).then(r => r.json());

let status = job.status;
while (status !== 'COMPLETED' && status !== 'FAILED') {
  await new Promise(r => setTimeout(r, 2000));
  ({ status } = await fetch(job.status_url, { headers }).then(r => r.json()));
}
console.log(await fetch(job.response_url, { headers }).then(r => r.json()));

자주 묻는 질문

Topaz Video Upscale API 가격은 얼마인가요?

동영상 1초당 $0.048. 달러 선불 잔액에서 차감되며, 실패한 생성은 전액 환불됩니다. 구독은 없습니다.

Topaz Video Upscale을(를) API로 어떻게 사용하나요?

MegaBrain API 키로 POST https://getmegabrain.com/api/gateway/v1/queue/topaz/video-upscale에 작업을 보내고, status_url이 COMPLETED가 될 때까지 확인한 뒤 response_url에서 결과를 받으세요. 같은 키와 잔액으로 텍스트 모델도 쓸 수 있습니다.

코드 없이 Topaz Video Upscale을(를) 써 볼 수 있나요?

네. 로그인하면 모델의 영어 페이지에 있는 플레이그라운드에서 Topaz Video Upscale을(를) 브라우저로 실행할 수 있으며, API와 같은 잔액에서 결제됩니다.