이미지 업스케일

SeedVR2 Upscale

MegaBrain API로 쓰는 SeedVR2 Upscale(이미지 업스케일): 메가픽셀당 $0.0012. 모든 모델에 키 하나, 달러 선불 잔액에서 결제, 구독 없음.

seedvr/upscale/image
가격
$0.0012
메가픽셀당

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

출력 예시

예시: SeedVR2 Upscale

브라우저에서 사용해 보기

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

플레이그라운드 열기

요청 파라미터

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

  • image_urlURL필수
  • upscale_factor숫자선택
    기본값:
    2
    범위:
    1–4
  • noise_scale숫자선택
    기본값:
    0.1
    범위:
    0–1
  • output_format문자열선택
    기본값:
    jpg
    값:
    jpg, png, webp
  • seed정수선택

API로 사용하기

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

curl

curl -X POST https://getmegabrain.com/api/gateway/v1/queue/seedvr/upscale/image \
  -H "Authorization: Bearer $MEGABRAIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://example.com/photo.png","upscale_factor":2}'

# 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/seedvr/upscale/image", headers=HEADERS, json={
  "image_url": "https://example.com/photo.png",
  "upscale_factor": 2
}).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/seedvr/upscale/image`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    "image_url": "https://example.com/photo.png",
    "upscale_factor": 2
  }),
}).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()));

자주 묻는 질문

SeedVR2 Upscale API 가격은 얼마인가요?

메가픽셀당 $0.0012. 달러 선불 잔액에서 차감되며, 실패한 생성은 전액 환불됩니다. 구독은 없습니다.

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

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

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

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

SeedVR2 Upscale은(는) 입력 이미지를 받나요?

네. 확대할 이미지를 image_url(이미지 URL 또는 data: URI)로 보내세요.