Request
- URL:
https://www.ailabapi.com/api/portrait/editing/ai-face-swap
- Method:
POST
- Content-Type:
multipart/form-data
Image requirements
Body
This API is asynchronous. Submit the request, keep the returned task_id, and call Querying Async Task Results to obtain the final image result.
Response
Response Field Handling Flow
-
Handle
Public Response Fields
Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
-
Handle
Business Response Fields
If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.
Public Response Fields
Viewing Public Response Fields and Error Codes
Business Response Fields
Response Example
Querying Async Task Results Response
Response Field Handling Flow
-
Handle
Public Response Fields
Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
-
Handle
Business Response Fields
If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.
Public Response Fields
Viewing Public Response Fields and Error Codes
Business Response Fields
All result URLs are temporarily available and will expire after 24 hours.
Response Example