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 URL | https://www.tryoncloud.com/api/v1 |
| Auth | X-API-KEY: tk_dev_v1_... header on every request |
| Main endpoint | POST /generate, returns the try-on as image/png |
| OpenAPI spec | /api/v1/openapi.json (OpenAPI 3.1), for client generators and API tools |
| Status | Live success rate and speed, also as JSON at /api/v1/status |
| Price | From $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 start | 10 free try-ons on sign-up, and a free test mode (?mock=true) |
| Speed | Median about 19 seconds per result (last 30 days of production traffic) |
| Storage | None by default. You get the image in the response and store it yourself |
| Errors | JSON { "error", "code" }. See Errors |
| SDK | Optional JavaScript/TypeScript SDK. Plain HTTP works everywhere |
Choose your platform
ShopifyNo codeNo-code app. Install and add the block.React and Next.jsPopularServer route plus a try-on component.Node.jsExpress, Fastify, NestJS.PythonDjango, Flask, FastAPI.PHP and LaravelcURL or Laravel's HTTP client.Mobile appsiOS, Android, Flutter, React Native.In-store kioskRetailTry-on screen or smart mirror.Klaviyo and webhooksSend try-on leads to your CRM.All platformsCompare every option.
How it works
Your server
TryOnCloud API
POST /api/v1/generate (garment + person)
â–¶
200 image/png (the finished try-on)
â—€
- Your server sends the garment image and the shopper's photo to
POST /api/v1/generatewith your API key. - TryOnCloud checks both images, generates the try-on, and returns the finished PNG in the same response.
- 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
- Quickstart: your first try-on in five minutes
- Generate a try-on: every parameter and response header
- AI coding assistants: let Claude Code, Codex or Cursor write the integration
- MCP server: connect AI assistants directly to the API