Skip to main content
POST
Uploads a customer photo and returns an imageId. Pass it to Create Try-On as person.image.source.id, as many times as you want until it expires. JPEG, PNG, WebP or HEIC. 10 MB max. Send as multipart/form-data.

Body

file
required
The customer photo.
boolean
default:"true"
Crop to 4:5 around the person. Set false to keep the original framing.
string
Your own user ID, for GDPR deletion. No PII.
integer
1, 3 or 7. The image is deleted after that. Defaults to your account setting (7 days).

Response

string
required
Opaque token. Pass it back exactly as received.
string
required
Short-lived preview URL of the processed image.
Deprecated but still accepted: customerId and retentionDays form fields.