AI Dance Replace v2 API for Character Replacement

Send a character image and a 5 to 30 second reference video to 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.
Get API Key
Empty urban dance spot at night with a spotlight on the pavement

Keep the Scene, Change the Dancer

Background, motion and audio kept

Only the person is swapped. Everything else in the frame stays as-is, including any logos, watermarks or text in the original video, and the audio track is carried over.
Dance studio with mirrors and a speaker, a figurine in the centre of the floor

Render only the part you need

By default the whole reference video is used. Set duration (5 to 30) to render only its first N seconds; billing follows that value.
Film strip with a section of frames marked off by a clip

Steer the look with a prompt

Optional 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.
Costume rack and a sketchbook of outfit designs in a wardrobe room
Two media inputs are required; output is 480p with the reference video's aspect ratio.

AI Dance Replace v2 Request Fields and Limits

model

Always ai_dance_replace_v2.

image_url (required)

The character that replaces the person. A full-body image of a single character works best.

video_url (required)

Reference video, 5 to 30 seconds and at least 16 fps, with one clearly visible person. Shorter or longer videos are rejected.

duration

Optional integer from 5 to 30. Uses only the first N seconds; must not exceed the video length, otherwise the request is rejected.

prompt

Optional, up to 2000 characters, describing appearance, motion and scene. Defaults to a neutral description.

resolution

Only 480p (default).
One rate per second of generated video, rounded up.

AI Dance Replace v2 API Pricing

480p: 2 tokens ($0.04) per second

The only resolution and the only rate.

5 seconds: 10 tokens ($0.20)

The shortest accepted render.

30 seconds: 60 tokens ($1.20)

The longest accepted render.

duration controls the bill

Without duration the whole reference video is billed; with it, only the first N seconds. Failed jobs are refunded automatically.

Integrate the AI Dance Replace v2 API

1

1. Create an API key

Generate a key at /keys and send it as Authorization: Bearer <key> from your server.
2

2. Pick the inputs

Use a full-body image of one character and a 5 to 30 second clip with a single clearly visible person at 16 fps or more.
3

3. Submit the job

POST {"model": "ai_dance_replace_v2", "image_url": "https://…", "video_url": "https://…"} to /api/v1/videos/generations, adding duration or prompt if needed.
4

4. Get the video

Store img_uuid, poll GET /api/v1/jobs/detail or wait for your callback, and download the result.
Create an API Key
Put a new character into an existing performance.

What Developers Build with AI Dance Replace v2

Dance trend apps

Let users drop their own photo or avatar into a trending dance clip while keeping the original song.

Mascot and character content

Have a brand mascot or game character perform an existing routine in its original setting.

Creator remix tools

Offer one-click character swaps on short-form clips without re-editing the background or audio.

Previsualization

Preview how a costume or character design looks performing real choreography.
Inputs, limits, pricing and output.

AI Dance Replace v2 API FAQ

What is the AI Dance Replace v2 API endpoint?

POST https://api.goenhance.ai/api/v1/videos/generations with model: ai_dance_replace_v2.

What is kept from the reference video?

The background, lighting, motion and audio track. Only the person is swapped; logos, watermarks or text in the original stay as they are.

How long can the reference video be?

5 to 30 seconds, at least 16 fps. Videos outside that range are rejected.

How is it priced?

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.

What happens if duration is longer than my video?

The request is rejected rather than silently clamped, so set duration no higher than the actual video length.

What resolution is the output?

480p only; the aspect ratio follows the reference video.

Start Building with the AI Dance Replace v2 API