upload_photo | POST /images/upload | Upload a person photo (publicly accessible URL or base64). Returns an imageId to pass to generate_try_on; photos expire after the retention window. |
get_uploaded_photo | — | Return the most recent non-expired upload (imageId, expiry, a preview link, and an inline preview when available) — reuse it across conversations without re-uploading. |
generate_try_on | POST /try-on | Generate a try-on. A person photo is required — pass exactly one of person_image_id or person_image_url. The garment goes in garments (an array; exactly one for now, mirroring the REST API’s products). Waits for the result and returns the image. |
get_generation | GET /generations/:id | Poll a generation by id; returns the image once COMPLETED. |
get_account | GET /account/credits | Remaining credits and the top-up URL. |