# Introduction

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](/docs/async) are there too. For pricing, specs and code samples on one page, see the [virtual try-on API overview](/virtual-try-on-api).

## 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`](/api/v1/openapi.json) (OpenAPI 3.1), for client generators and API tools |
| Status | [Live success rate and speed](/status), 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](/pricing#developer-api) |
| 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](/docs/errors) |
| SDK | Optional [JavaScript/TypeScript SDK](/docs/sdk). Plain HTTP works everywhere |

## Choose your platform

```cards
Shopify | No-code app. Install and add the block. | /docs/shopify | No code
React and Next.js | Server route plus a try-on component. | /docs/nextjs | Popular
Node.js | Express, Fastify, NestJS. | /docs/nodejs
Python | Django, Flask, FastAPI. | /docs/python
PHP and Laravel | cURL or Laravel's HTTP client. | /docs/php
Mobile apps | iOS, Android, Flutter, React Native. | /docs/mobile
In-store kiosk | Try-on screen or smart mirror. | /docs/kiosk | Retail
Klaviyo and webhooks | Send try-on leads to your CRM. | /docs/klaviyo
All platforms | Compare every option. | /docs/platforms
```

## How it works

```flow
Your server -> TryOnCloud API: POST /api/v1/generate (garment + person)
TryOnCloud API --> Your server: 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](/docs/resellers)).

## Next steps

- [Quickstart](/docs/quickstart): your first try-on in five minutes
- [Generate a try-on](/docs/generate): every parameter and response header
- [AI coding assistants](/docs/ai-assistants): let Claude Code, Codex or Cursor write the integration
- [MCP server](/docs/mcp): connect AI assistants directly to the API
