try-on/run
- Run virtual try-on generationtry-on/status/:id
- Get generation statustry-on/run
https://api.getayna.com/v1/try-on/run
model
ayna-1.5
- Latest model with high-quality results, reduced cost, and broader garment supportayna-1.0
- The Ayna virtual try-on model, producing high-quality realistic try-on resultsinput
model_image
(string) - URL or base64 encoded string of the person/model imagegarment_image
(string) - URL or base64 encoded string of the clothing item to try ondata:image/jpeg;base64,/9j/4AAQ...
)queued
- Generation has been successfully queued for processingfailed
- Generation request failed (see error field for details)code
(string) - Error code identifiermessage
(string) - Human-readable error message/run
endpoint. Processing typically takes 8-15 seconds depending on image complexity and queue.
try-on/status/:id
https://api.getayna.com/v1/try-on/status/:id
Poll this endpoint to monitor the generation’s progress and retrieve the final output once available. Use the pollingUrl
returned from the /run
endpoint.
pollingUrl
returned from the /run
endpoint to check the generation status.
status
, output
, and error
fields.
queued
- Generation is waiting in the processing queueprocessing
- Generation is currently being processedcompleted
- Generation has finished successfullyfailed
- Generation has failed (see error field for details)code
(string) - Error code identifiermessage
(string) - Human-readable error message/run
- Up to 30 requests per 60 seconds/status
- Up to 1 request per 2 seconds per try-on generationerror
field in responses and handle failures gracefully