Replace clothing in images or videos using reference outfit images.Analyze the source material first.
Auto selects the clothing region automatically; it is not a vehicle category. Supply a reference outfit image for each selected person.API Endpoints
- List Models —
GET - Create Task —
POST - Get Task Result —
GET - Analyze Source Material —
POST - Get Analysis Result —
GET
Getting Started
- List the models available for this feature.
- If required by your model, analyze the source and wait for the analysis to complete.
- Create a task using the model-specific parameters.
- Poll task results or receive the final webhook notification.
Billing
Generation is priced using the selected model configuration and your account/team pricing. Image generation is charged per task; video pricing also depends on duration and resolution. Credits are reserved before queueing and finalized through the existing generation billing flow. Creation errors do not produce a billable task. Readdeduction_credit per created task rather than treating the sample value as a price quotation. AIGC website membership discounts do not automatically apply to OpenAPI; account and team pricing can change the final credit amount.
Response Code Description
A business code other than 1000 indicates that the API request failed. For batch creation, also check data.errors.
See the Webhook guide for callback verification and the complete error list for other account errors.
Callback
IfwebhookUrl is supplied, final task notifications follow the existing encrypted and signed Webhook format. After verification and decryption, read _id, status, type, and url. Fetch task detail to obtain operation-specific fields, including additional hairstyle views. Return HTTP 200 to acknowledge delivery.
Input limits
Video clothing replacement supports 1–120 seconds. Image and video mappings must select distinct IDs from a completed analysis of the same URL and media type.clothing_area defaults to Top. resolution defaults to 480p; 480p and 720p are accepted.