POST /tryon-api
Generate a virtual try-on by combining a shopper photo with a product image. The call is synchronous: the response arrives when the image is generated, which can take over a minute. Set your HTTP client timeout to at least 150 seconds (see Limits and quotas).Endpoint
Request body
Image formats
BothuserPhoto and productImage accept a public http(s) URL or a Base64 string. Each image must be at least 1 KB once decoded; smaller files are rejected with a 400. URLs must be publicly reachable: Wearo fetches them with a 30 second timeout.
URL (recommended for server-to-server):
Wedding-dress mode (train rendering)
The try-on engine normally drops the train of long / wedding gowns. SetproductType: "wedding-dress" to render the full gown including the train spread on the floor.
Example request
productType: "wedding-dress" is specific to bridal mode — every other field is identical to a standard try-on.
Train evaluation and refunds
After generation, the engine scores how well the train (the gown’s trailing fabric) was rendered. The verdict is returned in thebridal object:
bridal.applied: true→ the train was rendered satisfactorily. 2 credits are consumed.bridal.applied: false→ the train was not rendered (lowtrainScore). No credit is consumed — both credits are refunded and the result is still delivered without regeneration.
Best results
- Both the customer and the gown photos should be full-length, front-facing, standing.
- A cropped, angled, or partial customer photo noticeably degrades the result.
Success response — 200 OK
Train not rendered (verdict fail)
Whenbridal.applied is false, the train was not rendered. Both credits are refunded and the result is still delivered — there is no regeneration.
trainScore is null when the scoring step is unavailable. The result is still delivered (bridal.applied: true), with the 2 credits consumed, because the verdict could not be evaluated.Error responses
Errors are JSON objects with anerror message, and for some cases an errorCode or code. Credits consumed by a request that then fails are refunded automatically.
If the wedding-dress pre-processing crashes, the request returns: