Skip to main content
POST
AI Dance Replace v2

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be ai_dance_replace_v2.

Available options:
ai_dance_replace_v2
image_url
string<uri>
required

Character image URL. This character replaces the person in the reference video. A full-body image of a single character works best.

video_url
string<uri>
required

Reference video URL, 5–30 seconds and at least 16 fps. The person in it is replaced; the background, motion and audio are kept. Videos longer than 30 seconds or shorter than 5 seconds are rejected. Use duration to render only the first N seconds of it.

duration
integer

Optional. Use only the first N seconds of the reference video. Defaults to the full video length. Must not exceed the actual video length — a longer value is rejected rather than silently clamped. Billing follows this value, so a shorter duration costs proportionally less.

Required range: 5 <= x <= 30
prompt
string

Optional. Describe the output video: the character's appearance (clothing, hair, style), the motion and the scene. Defaults to a neutral description.

Maximum string length: 2000
resolution
enum<string>
default:480p

Output resolution. Only 480p is supported; the aspect ratio follows the reference video.

Available options:
480p
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required