{Unified try-on router}

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.

14models
7providers
1endpoint
OpenAIcompatible
tryon.ts
# 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.