---
title: "Virtual try-on (v2)"
method: POST
path: "/v1/flux-tools/vto-v2"
tags: ["Models"]
---

# Virtual try-on (v2)

`POST /v1/flux-tools/vto-v2`

Submits a virtual try-on task against the v2 model. Identical request shape to /vto-v1, with reference and output resolution supported up to 4MP. Person and garment images are mapped to the underlying input image slots; prompts steer attribute transfer.

## Request body

- Flux2KleinTryonInputs — Input model for FLUX.2 Klein VTO endpoint. Exposes only person/garment image fields for cleaner API ergonomics.
  - `prompt` string, required — Text prompt for VTO generation.
  - `person` string, required — Person image (maps internally to input_image).
  - `garment` string, required — Image of one more garments (maps internally to input_image_2).
  - `seed` integer, nullable — Optional seed for reproducibility.
  - `safety_tolerance` integer — Tolerance level for input and output moderation. Between 0 and 5 for public use.
  - `output_format` 'jpeg' | 'png' | 'webp'
  - `webhook_url` string, uri, nullable — URL to receive webhook notifications
  - `webhook_secret` string, nullable — Optional secret for webhook signature verification

## Response `200`

Successful Response

- union
  - AsyncResponse
    - `id` string, required
    - `polling_url` string, required
    - `cost` number, nullable — Cost in credits for this request
    - `input_mp` number, nullable — Input megapixels (2 decimal places)
    - `output_mp` number, nullable — Output megapixels (2 decimal places)
  - AsyncWebhookResponse
    - `id` string, required
    - `status` string, required
    - `webhook_url` string, required
    - `cost` number, nullable — Cost in credits for this request
    - `input_mp` number, nullable — Input megapixels (2 decimal places)
    - `output_mp` number, nullable — Output megapixels (2 decimal places)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/bfl/apis/bfl-api.md) · [All operations](https://skmtc.net/bfl/apis/bfl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bfl/bfl-api/revisions/86b239145f28/schema)
