curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "alibaba/wan/v2.2-14b/animate/replace",
"input": {
"image_urls": [
"https://example.com/image.png"
],
"video_url": "https://example.com/video.mp4",
"resolution": "480p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Alibaba
Wan Animate Replace
Replace the character in a source video with the character from a reference image using Wan Animate Replace.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "alibaba/wan/v2.2-14b/animate/replace",
"input": {
"image_urls": [
"https://example.com/image.png"
],
"video_url": "https://example.com/video.mp4",
"resolution": "480p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- Submit the request with
VIDGO_API_KEY. Vidgo validates the request and checks the source video before creating the task. Atask_idis returned after the task is successfully created. - Use the returned
task_idwith Query Task Status until the task reachesfinishedorfailed. If you provide acallback_url, Vidgo also sends the result to your webhook when the task finishes or fails.
Wan Animate Replace
Replace the character in a source video with the character from a reference image using Wan Animate Replace.Available Models
- alibaba/wan/v2.2-14b/animate/replace - Replace the character in a source video with the character from a reference image using Wan Animate Replace.
Source Video Requirements
video_urlmust point to a publicly accessible HTTP(S) video file.- The entire video file must be no larger than 100 MiB (104,857,600 bytes), and its duration must be greater than zero.
- Vidgo reads the source video to determine its duration for billing.
Key Features
- Replace the character in a source video with the character from a reference image using Wan Animate Replace.
- Accepts an
image_urlsarray containing exactly one image URL. - Supports
480p,580p, and720poutput resolutions.
Request Parameters
Setmodel and optional callback_url at the request root. The input object accepts only video_url, image_urls, and resolution.
Unsupported input fields are rejected before credits are deducted. Input URLs must use HTTP(S), include a hostname, and contain no embedded credentials or whitespace.
Source Video
video_url: Required string. The source video containing the character to replace. The video must meet the source video requirements above.
Character Image
image_urls: Required array containing exactly one publicly accessible HTTP(S) image URL. The reference image containing the replacement character. A single URL string instead of an array, an empty array, multiple URLs, and Base64 images are rejected.
Resolution
resolution: Optional string. Accepted values:480p,580p,720p. Defaults to480ponly when the field is omitted. Null, empty strings, other values, and values with surrounding whitespace are rejected.
Billing Factors
Billing depends on the selected resolution (resolution) and the measured source-video duration (video_url). Move and Replace use the same rates.
Source-video duration is rounded up to whole seconds before billing. For example, a source video lasting 5.1 seconds is billed as 6 seconds. If Vidgo cannot read the video or determine its duration, the request is rejected before credits are deducted.
Credits are deducted when a valid request is submitted for generation and refunded if the task fails.Authorizations
Use VIDGO_API_KEY.
Body
application/json
Keep model and callback_url at the root. Unknown root fields are ignored; unsupported input fields are rejected.