모델 API 페이지
Wan Animate Replace API 연동
Rivya Public API v1에서 Wan Animate Replace을 모델 ID wan-2-2-animate-replace, 지원 입력, 파라미터, Files API 규칙, 크레딧, 응답 예시와 함께 사용하세요.
API로 사용 가능준비 상태비디오
API 모델 ID
wan-2-2-animate-replace
입력
file
Files API
참조 모드에 필요
기본 크레딧
per_output_second · 480p=6 · 580p=9.5 · 720p=12.5 · ⌈total⌉
기능
비디오
과금
METERED
프롬프트 제한
문서화된 프롬프트 제한 없음
요청 계약
모델 ID는 최상위 수준에 보냅니다. 모델별 제어값은 params에 넣습니다.
| Key | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| model | string | 예 | wan-2-2-animate-replace | wan-2-2-animate-replace을 API 모델 ID로 사용합니다. |
| prompt | string | 예 | - | 텍스트 입력을 지원하는 모델에 보내는 프롬프트 텍스트입니다. |
| params | object | 아니요 | - | 모델별 파라미터 객체입니다. 허용되는 키는 아래 행을 확인하세요. |
| client_request_id | string | 아니요 | - | 자체 시스템에서 요청을 추적하기 위한 선택적 클라이언트 ID입니다. |
모델 파라미터
| Key | 유형 | 필수 | 기본값 | 범위 | 옵션 | 설명 |
|---|---|---|---|---|---|---|
| resolution | select | 아니요 | 480p | - | 480p, 580p, 720p | 현재 구간은 `480p`, `580p`, `720p`입니다. 더 높은 출력 구간은 보통 더 높은 크레딧 비용과 더 긴 대기 시간을 의미합니다. |
업로드 정책
참조 파일을 먼저 업로드한 다음 반환된 URL과 durationToken을 params.referenceMediaItems 안에 넣으세요.
참조 규칙
video: video, image
최대 파일 수
2
허용되는 파일 종류
video, image
재생시간 토큰
재생시간 검증이 필요한 경우 비디오 및 오디오 참조는 /api/v1/files의 durationToken을 포함해야 합니다.
| kind | 최대 크기 | MIME 유형 |
|---|---|---|
| video | 50 MB | video/mp4, video/quicktime, video/webm |
| image | 10 MB | image/jpeg, image/png, image/webp |
최소 요청
{
"model": "wan-2-2-animate-replace",
"params": {
"resolution": "480p"
}
}참조 파일 요청
{
"model": "wan-2-2-animate-replace",
"params": {
"resolution": "480p",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"kind": "video",
"name": "reference-video.mp4",
"mimeType": "video/mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_from_files_api"
}
]
}
}생성 응답
생성 엔드포인트는 공개 작업 ID를 반환합니다. 작업이 성공하거나 실패할 때까지 상태 엔드포인트를 폴링하세요.
{
"id": "task_wan_2_2_animate_replace_example",
"status": "queued",
"model": "wan-2-2-animate-replace",
"reserved_credits": 6,
"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 참조 업로드가 필요합니다.