Skip to Content
TryItOn
DocsAPI ReferenceSDKsResources

Image Guidelines for Best Try-On Results

How to get the best virtual try-on results: accepted image formats and limits, photo tips for clothing, hairstyle, tattoo and live try-on, and common failures.

The input photos decide most of the result quality. This guide covers what the API accepts, how to pick photos for each try-on model, and the usual reasons a job fails or looks wrong.

Accepted inputs

Every image parameter (model_image, garment_image, face_image, body_image, design_image, and the live garment_image) takes one of two forms:

FormExampleLimits
Public image URLhttps://example.com/photos/model.jpghttp or https only. Fetched by TryItOn's servers: up to 25 MB, 15-second timeout, up to 5 redirects. Private and internal network addresses are refused.
Base64 data URLdata:image/jpeg;base64,/9j/4AAQ...Must start with data:image/<type>;base64,. The whole JSON body must stay under 12 MB, which leaves room for about 9 MB of image once encoded.

Prefer URLs for large images. A body over 12 MB is rejected with 413 PayloadTooLarge.

A URL must point at the image file itself, not at an HTML page that shows it. It must also stay reachable until the job finishes, which can take up to 3 minutes. If you use signed URLs, give them at least that long, plus margin.

Tips for each try-on model

Clothing and accessories

  • Person (model_image): one person, facing the camera, well lit. Show the whole body, or at least the region the item goes on: the torso for a top, the feet for shoes, the face for eyewear.
  • Item (garment_image): a product photo on a plain background, or a flat lay, with the item on its own.
  • Category: leave it out (or send auto) and the item type is detected for you. Send category and subcategory when you know them. See the fashion try-on reference.

Hairstyle

  • Face (face_image): a clear, front-facing photo of the face, well lit.

Tattoo

  • Body (body_image): a close-up of bare skin where the tattoo goes, evenly lit.
  • Design (design_image): the design alone. A transparent or white background is dropped, so only the design lands on the skin.
  • Position: use placement to describe where and how big, or region to mark the exact spot. See the tattoo try-on reference.

Live try-on

  • Garment: a product photo on a plain background. Send category when you prepare it, so it doesn't have to be detected. See live garments.

Common causes of failed jobs

A photo try-on submit only checks that each required image is present. Fetching and decoding happen inside the job, so most image problems don't return 400: the job is accepted and later ends with status: "failed" and a reason in error. Failed jobs cost nothing.

SymptomLikely causeFix
Job failedURL is private, needs a login or cookie, has expired, or returns a 404Use a public URL that works in a private browser window, or send base64.
Job failedImage over 25 MB, or the host took longer than 15 secondsResize the image or host it somewhere faster.
Job failedURL points at localhost, a private IP or an internal hostnameUse a public host. Internal addresses are always refused.
Job failedMalformed base64 (no data:image/...;base64, prefix, or truncated data)Send the full data URL with its prefix.
Job failed with "Timed out."The job ran over 3 minutesResubmit. If it keeps happening with the same inputs, try different photos.
413 PayloadTooLargeJSON body over 12 MBSend the image as a URL.
400 ImageLoadErrorA required image parameter is missing or emptyCheck the parameter name for the endpoint you're calling.

The safety filters of our AI sub-processors always apply.

If a job completes but the result looks wrong, check the photos against the tips above. A cluttered item photo, several people in the frame, or a crop that hides where the item goes are the usual problems.

On this page