Search docs

Search the TryOnCloud API docs

Get started

Introduction

Add AI virtual try-on to any website or app with one API call.

Add AI virtual try-on to any website, app or kiosk with one API call. Send a garment photo and a person photo, and the response is the finished try-on image. No polling, no webhooks, no SDK required. When you need them, async jobs, batches and signed webhooks are there too. For pricing, specs and code samples on one page, see the virtual try-on API overview.

Basics

Base URLhttps://www.tryoncloud.com/api/v1
AuthX-API-KEY: tk_dev_v1_... header on every request
Main endpointPOST /generate, returns the try-on as image/png
OpenAPI spec/api/v1/openapi.json (OpenAPI 3.1), for client generators and API tools
StatusLive success rate and speed, also as JSON at /api/v1/status
PriceFrom $0.11 down to $0.07 per try-on (₹9 to ₹6.50 in India). Credits never expire. Failed try-ons are refunded. See pricing
Free to start10 free try-ons on sign-up, and a free test mode (?mock=true)
SpeedMedian about 19 seconds per result (last 30 days of production traffic)
StorageNone by default. You get the image in the response and store it yourself
ErrorsJSON { "error", "code" }. See Errors
SDKOptional JavaScript/TypeScript SDK. Plain HTTP works everywhere

Choose your platform

How it works

Your server
TryOnCloud API

POST /api/v1/generate (garment + person)

â–¶

200 image/png (the finished try-on)

â—€
  1. Your server sends the garment image and the shopper's photo to POST /api/v1/generate with your API key.
  2. TryOnCloud checks both images, generates the try-on, and returns the finished PNG in the same response.
  3. You show it to the shopper and store it wherever you like. Nothing is kept on our side unless you ask us to enable result storage.
Note: Always call the API from your server. Never put your API key in a browser, mobile app or public repository.

What it supports

  • Every clothing type: sarees, lehengas, salwar suits, kurtas, sherwanis, dhotis, shirts, T-shirts, dresses, jeans, gowns, jackets and more, for men, women and kids.
  • Any input: a garment file, a public image URL, or base64. JPEG, PNG, WebP and HEIC up to 15MB.
  • White-label: no TryOnCloud branding on results. You may resell try-on under your own brand (Resellers).

Next steps