POST /api/v1/videos/generations with model: ai_dance_replace_v2. The person in the video is replaced by your character; the original background, lighting, motion and audio track are kept. Track the job with the returned img_uuid.POST /api/v1/videos/generations with model: ai_dance_replace_v2. The person in the video is replaced by your character; the original background, lighting, motion and audio track are kept. Track the job with the returned img_uuid.

duration (5 to 30) to render only its first N seconds; billing follows that value.
prompt (up to 2000 characters) describes the character's clothing, hair and style, the motion and the scene. A full-body image of one character works best.
ai_dance_replace_v2.480p (default).duration the whole reference video is billed; with it, only the first N seconds. Failed jobs are refunded automatically.Authorization: Bearer <key> from your server.{"model": "ai_dance_replace_v2", "image_url": "https://…", "video_url": "https://…"} to /api/v1/videos/generations, adding duration or prompt if needed.img_uuid, poll GET /api/v1/jobs/detail or wait for your callback, and download the result.POST https://api.goenhance.ai/api/v1/videos/generations with model: ai_dance_replace_v2.
The background, lighting, motion and audio track. Only the person is swapped; logos, watermarks or text in the original stay as they are.
5 to 30 seconds, at least 16 fps. Videos outside that range are rejected.
2 tokens ($0.04) per second of generated 480p video, rounded up, from 10 tokens ($0.20) for 5 seconds to 60 tokens ($1.20) for 30 seconds.
The request is rejected rather than silently clamped, so set duration no higher than the actual video length.
480p only; the aspect ratio follows the reference video.