Virtual try-on API: a developer's quick start
Short answer
Send a POST request to /api/v1/tryon with a bearer API key, a person_image and a garment_image (or up to four garments), and receive photorealistic result image URLs in the response. Each standard render costs one credit and studio quality costs two.
Request
POST https://cethora.com/api/v1/tryon
Authorization: Bearer ck_live_…
{ "person_image": "https://…/me.jpg", "garment_image": "https://…/shirt.jpg", "category": "tops", "quality": "balanced" }
Categories
tops, bottoms, one-pieces, outerwear, accessory, bag, shoes, eyewear, jewelry, hat
Errors
- 401: missing or invalid key
- 402: not enough credits
- 403: publishable key used from a website that isn't allowed
- 422: content blocked by the safety filter
FAQ
Is there a sandbox?
Use a Pro or Business API key against the same endpoint; each call spends credits from your balance, so start with a small credit pack while you integrate.
Free PDF · 13 pages
The Fashion Returns Playbook
24 fixes to cut apparel returns, a 30-day try-on pilot plan and copy-paste templates.