Skip to main content
POST
MiniMax H3 Character Replace

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be minimax-h3-swap.

Available options:
minimax-h3-swap
image_url
string<uri>
required

Publicly accessible URL of the person photo (max 10 MB). This person replaces the main person in the video. A clear, front-facing half-body or full-body photo of a single person works best.

video_url
string<uri>
required

Publicly accessible URL of the guide video (max 100 MB, at least 5 seconds). Its main person is replaced; the scene, camera motion, movement and audio are kept. Videos longer than 15 seconds are rejected unless you pass duration.

duration
integer

Optional. Render only the first N seconds of the guide video (5–15). Omit it to follow the video's length, rounded down to whole seconds. Must not exceed the actual video length — a longer value is rejected rather than silently clamped. Billing follows the output length.

Required range: 5 <= x <= 15
resolution
enum<string>
default:720p

Optional. Accepted values are 480p and 720p; the video is always generated at 720p, at the same price. The aspect ratio follows the guide video.

Available options:
480p,
720p
swap_target
string

Optional. In videos with several people, which person to replace. Describe them by position or action (for example "the man on the left" or "the player kicking the ball"), not by clothing. Longer text is truncated to 600 characters.

Maximum string length: 600
swap_details
string

Optional. An appearance description of the person in the photo, head to toe (for example "East Asian woman, long black hair, white T-shirt, blue jeans, white sneakers"). If omitted, the photo is described automatically. Longer text is truncated to 800 characters.

Maximum string length: 800
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