Model API Pages
Wan Animate Replace API Integration
Wan Animate Replace کو Rivya Public API v1 کے ذریعے model id wan-2-2-animate-replace، supported inputs، parameters، Files API rules، credits اور response examples کے ساتھ استعمال کریں۔
API کے ذریعے availableURL input readyویڈیو
API model id
wan-2-2-animate-replace
Inputs
url
Files API
Minimal request کے لیے required نہیں
Base credits
20
Capability
ویڈیو
Billing
FIXED
Prompt limit
کوئی documented prompt limit نہیں
Request contract
model id کو top level پر بھیجیں۔ Model-specific controls params میں رہتے ہیں۔
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | wan-2-2-animate-replace | wan-2-2-animate-replace API model id استعمال کریں۔ |
| prompt | string | No | - | Text input support کرنے والے models کے لیے prompt text۔ |
| params | object | No | - | Model-specific parameter object۔ allowed keys کے لیے نیچے والی rows استعمال کریں۔ |
| client_request_id | string | No | - | آپ کے system میں requests trace کرنے کے لیے optional client-side id۔ |
Model parameters
| Key | Type | Required | Default | Range | Options | Description |
|---|---|---|---|---|---|---|
| video_url | text | No | - | - | - | Public video URL paste کریں جسے generation service directly fetch کر سکے۔ یہ model local upload path نہیں بلکہ MP4، MOV، یا MKV جیسے hosted asset کی توقع رکھتا ہے۔ |
| image_url | text | No | - | - | - | Public replacement image URL paste کریں۔ JPEG، PNG، یا WebP best work کرتے ہیں؛ جب aspect ratio differ کرے تو upstream service اسے scale اور center-crop کرے گی۔ |
| resolution | select | No | 480p | - | 480p, 580p, 720p | Current tiers `480p`، `580p`، اور `720p` ہیں۔ Higher output tiers عموما higher credit cost اور longer waits کا مطلب ہوتے ہیں۔ |
Minimal request
{
"model": "wan-2-2-animate-replace",
"params": {
"video_url": "https://example.com/input.mp4",
"image_url": "https://example.com/reference.png",
"resolution": "480p"
}
}Create response
create endpoint ایک public task id واپس کرتا ہے۔ task succeeded یا failed ہونے تک status endpoint poll کریں۔
{
"id": "task_wan_2_2_animate_replace_example",
"status": "queued",
"model": "wan-2-2-animate-replace",
"reserved_credits": 20,
"final_credits": 0,
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Common errors
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
یہ model model parameters کے ذریعے public URL input قبول کرتا ہے۔