Skip to main content
POST
Request Headers
Each reference image produces a separate video task. Use a model returned by this operation’s models endpoint and its exact resolution values. Optional mode is forwarded for Wan; character_orientation is used for Kling. duration does not trim or replace the measured driving-video duration.
Body Attributes Response Attributes

Request examples

Select the model family matching your request. Replace the sample assets and model selection with values available to your account. Resolution is case-sensitive (for example, Kling 720P versus Wan/Pixverse 720p).
Body
For input limits, billing, callbacks, and error codes, see the Motion Swap V5 overview.

Authorizations

x-api-key
string
header
required

Body

application/json
video
string<uri>
required

Public driving video URL.

images
string<uri>[]
required

1–50 public character image URLs. Each image creates an independent video task.

Required array length: 1 - 50 elements
model_name
string
required

Motion-control model ID from the models endpoint.

resolution
string

Case-sensitive resolution supported by the selected model.

mode
enum<string>

Wan models: animate or replace; defaults to animate. Not forwarded to other model families.

Available options:
animate,
replace
prompt
string

Optional instructions, up to 5000 characters, for Wan/Kling models.

Maximum string length: 5000
negative_prompt
string

Optional negative instructions, up to 5000 characters, for Wan/Kling models.

Maximum string length: 5000
character_orientation
enum<string>

Kling models: image or video; defaults to video. image orientation supports at most 10 seconds. Not forwarded to other model families.

Available options:
image,
video
keep_original_sound
boolean

Keep source audio in the generated video; defaults to true.

duration
number

Optional compatibility field. Actual video duration is measured for limits and billing; this does not trim or override it.

Required range: 1 <= x <= 120
webhookUrl
string<uri>

Optional final-state callback URL; follow the Webhook guide.

Response

200 - application/json

Business response. Code 1000 means the request succeeded; inspect task status or data.errors for generation/submission outcomes.

code
integer
Example:

1000

msg
string
Example:

"OK"

data
object