Skip to main content
POST
Use the same authorization headers as task creation.
Akool video replacement needs a completed person analysis of the same video. Image replacement uses face bounding boxes directly, and Kling video uses its own preparation workflow; neither needs an analyze_id.
Body Attributes

Request examples

Select a source scenario to view matching request and queued response examples. URLs and IDs are illustrative; replace them with your accessible source material.
Body
Response Attributes Save data._id as the analysis ID.
For input limits, billing, callbacks, and error codes, see the Character Swap V5 overview.

Authorizations

x-api-key
string
header
required

Body

application/json
url
string<uri>
required

Public source material URL. Use the identical URL during task creation.

media_type
enum<string>
required

image or video. Use the same media type and URL when creating an analysis-driven task.

Available options:
image,
video
type
enum<string>

This endpoint always performs person analysis. Omit type or send person; other accepted type values do not change the effective category.

Available options:
person,
head,
outfit

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