Model swap
Start a new job
POST
Start a new model swap batch processing job for the authenticated user. A maximum of 10 images can be processed in a single batch.
token_authheader
AuthorizationBearer <token>Token-based authentication using access tokens.
application/json- body
identity_code*Identity CodeThe original identity code to swap over the images.
project_id*Project IdThe project identifier where images are stored.
images*array<string>List of image UUIDs to be processed.
Items
items <= 10post_process?Post ProcessEnables or disables post processing for all images in the batch.
Default
falseswap_options?Default
{}review_config?|Optional review configuration. If provided, creates a review pipeline for this job. Fields: requires_review (bool), default_reviewer_type (str), default_retouch_method (str), auto_approve_threshold (float).
Default
nullSuccessful Response
application/json- response
job_id*Job IdThe ID of the created model swap job.
status*StatusThe initial status of the job.
message*MessageA message indicating the job creation status.
curl -X POST "https://example.com/model-swap" \ -H "Content-Type: application/json" \ -d '{ "identity_code": "string", "project_id": "string", "images": [ "string" ] }'{ "job_id": "string", "status": "string", "message": "string"}