Rivya AI 문서
모델 API 페이지

Wan 2.6 API 연동

Rivya Public API v1에서 Wan 2.6을 모델 ID wan-2-6, 지원 입력, 파라미터, Files API 규칙, 크레딧, 응답 예시와 함께 사용하세요.

API로 사용 가능텍스트 또는 URL 준비됨; 참조 모드는 Files API 사용비디오
API 모델 ID

wan-2-6

입력

text, file

Files API

참조 모드에 필요

기본 크레딧

per_video · 720p_5=70 · 720p_10=140 · 720p_15=210 · 1080p_5=104.5 · 1080p_10=209.5 · 1080p_15=315 · ⌈total⌉

기능

비디오

과금

FIXED

프롬프트 제한

5000 자

요청 계약

모델 ID는 최상위 수준에 보냅니다. 모델별 제어값은 params에 넣습니다.

Key유형필수기본값설명
modelstringwan-2-6wan-2-6을 API 모델 ID로 사용합니다.
promptstring-이 모델은 최대 5000자까지 사용할 수 있습니다.
paramsobject아니요-모델별 파라미터 객체입니다. 허용되는 키는 아래 행을 확인하세요.
client_request_idstring아니요-자체 시스템에서 요청을 추적하기 위한 선택적 클라이언트 ID입니다.

모델 파라미터

Key유형필수기본값범위옵션설명
resolutionselect아니요1080p-720p, 1080p해상도
durationselect아니요5-5, 10, 15길이
multi_shotsselect아니요false-false, true샷 모드
nsfw_checkerselect아니요true-false, true콘텐츠 필터

업로드 정책

참조 파일을 먼저 업로드한 다음 반환된 URL과 durationToken을 params.referenceMediaItems 안에 넣으세요.

참조 규칙

참고 미디어: JPG/PNG/WebP 이미지 정확히 1장(256×256 이상, 10 MB 이하) 또는 MP4/MOV 비디오 1~3개(파일당 10 MB 이하)를 사용하세요.

최대 파일 수

3

허용되는 파일 종류

image, video

재생시간 토큰

재생시간 검증이 필요한 경우 비디오 및 오디오 참조는 /api/v1/files의 durationToken을 포함해야 합니다.

kind최대 크기MIME 유형
image10 MBimage/jpeg, image/png, image/webp
video10 MBvideo/mp4, video/quicktime

최소 요청

{
  "model": "wan-2-6",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "1080p",
    "duration": "5",
    "multi_shots": "false",
    "nsfw_checker": "true"
  }
}

참조 파일 요청

{
  "model": "wan-2-6",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "1080p",
    "duration": "5",
    "multi_shots": "false",
    "nsfw_checker": "true",
    "referenceMediaItems": [
      {
        "url": "https://cdn.example.com/reference-video-1.mp4",
        "kind": "video",
        "name": "reference-video-1.mp4",
        "mimeType": "video/mp4",
        "durationSeconds": 8,
        "durationToken": "video_duration_token_1_from_files_api",
        "width": 1280,
        "height": 720,
        "sizeBytes": 8388608,
        "framesPerSecond": 30,
        "videoBitrateMbps": 8,
        "videoMetadataToken": "video_metadata_token_1_from_files_api"
      },
      {
        "url": "https://cdn.example.com/reference-video-2.mp4",
        "kind": "video",
        "name": "reference-video-2.mp4",
        "mimeType": "video/mp4",
        "durationSeconds": 8,
        "durationToken": "video_duration_token_2_from_files_api",
        "width": 1280,
        "height": 720,
        "sizeBytes": 8388608,
        "framesPerSecond": 30,
        "videoBitrateMbps": 8,
        "videoMetadataToken": "video_metadata_token_2_from_files_api"
      },
      {
        "url": "https://cdn.example.com/reference-video-3.mp4",
        "kind": "video",
        "name": "reference-video-3.mp4",
        "mimeType": "video/mp4",
        "durationSeconds": 8,
        "durationToken": "video_duration_token_3_from_files_api",
        "width": 1280,
        "height": 720,
        "sizeBytes": 8388608,
        "framesPerSecond": 30,
        "videoBitrateMbps": 8,
        "videoMetadataToken": "video_metadata_token_3_from_files_api"
      }
    ]
  }
}

생성 응답

생성 엔드포인트는 공개 작업 ID를 반환합니다. 작업이 성공하거나 실패할 때까지 상태 엔드포인트를 폴링하세요.

{
  "id": "task_wan_2_6_example",
  "status": "queued",
  "model": "wan-2-6",
  "reserved_credits": 105,
  "final_credits": 0,
  "settlement_status": "RESERVED",
  "created_at": "2026-05-11T00:00:00.000Z",
  "updated_at": "2026-05-11T00:00:00.000Z",
  "result": null,
  "error": null
}

일반 오류

validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found

일부 모드는 Files API 참조 업로드가 필요합니다.