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.
Migrate in 3 lines
Already calling an OpenAI-style chat completions API? Point the base URL at us, swap in your TryOn-API key, and pick a try-on model.
# Any OpenAI-compatible SDK — just 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 TryOn-API 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: personDataUrl }, tryon_role: "person" }, { type: "image_url", image_url: { url: garmentDataUrl }, 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"]. Drop 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.