One API for every virtual try-on model
TryOn-API is the OpenRouter for virtual try-on. Route to Kling, Gemini, gpt-image-1, FLUX Kontext and more through a single OpenAI-compatible endpoint — unified billing, one key, zero lock-in.
# Any OpenAI-compatible SDK — change three things: const client = new OpenAI({ baseURL: "https://tryon-api.com/api/v1", // 1. base URL apiKey: process.env.TRYON_API_KEY, // 2. your key }); const res = await client.chat.completions.create({ model: "kling/kolors-v1-5", // 3. a try-on model modalities: ["image"], messages: [{ role: "user", content: [ { type: "text", text: "put the garment on the person" }, { type: "image_url", image_url: { url: personUrl }, tryon_role: "person" }, { type: "image_url", image_url: { url: garmentUrl }, tryon_role: "garment" }, ]}], }); const url = res.choices[0].message.images[0].image_url.url;
One endpoint, many models
Dedicated try-on (Kling Kolors) and generative image models (Gemini, gpt-image-1, FLUX) behind one schema.
OpenAI-compatible
Chat completions, streaming SSE, modalities:["image"]. Drops into your existing SDK.
Unified credits
One balance across every provider. Transparent per-request pricing in credits.
Native or chat
Use the OpenAI-style chat route, or a simple multipart /tryon with person + garment files.
Models
Browse the catalog, capabilities and pricing.
Rankings
See every model's try-on side by side, ranked.
Playground
Upload a person + garment and run a try-on live.
API Keys
Create and manage keys for your account.
Credits
Check your balance and usage.
Docs
Quickstart, SDK drop-in, native endpoint and async.