Skip to content

FASHN Virtual Try-On V1.5

Integrate

Model id fashn/tryon/v1.5
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/fashn/tryon/v1.5?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_image": "example",
    "garment_image": "example"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.075 75 API credits Run it on this page

Get API key
FASHN Image Editing #try-on#fashion#clothing

Virtual try-on that dresses a model photo in a garment image, at the v1.5 resolution

FASHN · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Model image supplied as a URL or base64 data.

•required

Garment image supplied as a URL or base64 data.

default 1

Image count for a single run, allowing multiple attempts together to improve the chance of a good result despite randomness in generation.

Advanced category · mode · garment_photo_type · moderation_level · output_format · seed · segmentation_free · enable_safety_checker
category default auto

Try-on garment category, with 'auto' requesting an attempt to detect it automatically.

mode default balanced

Operating mode for the speed–quality tradeoff: 'balanced' seeks a middle ground, 'quality' delivers better results with slower processing, and 'performance' runs faster with possible quality loss.

garment_photo_type default auto

Garment-photo category for performance tuning of internal parameters. Flat-lay shots and ghost mannequin images use 'flat-lay'; photos showing clothing worn by a model use 'model'. With 'auto', the system attempts to identify the category itself.

moderation_level default permissive

Garment-image moderation policy. Disabling filters with 'none' requires account authorization; without it, that selection behaves as 'permissive'. Blocking is limited to explicit content under 'permissive', whereas 'conservative' additionally excludes underwear and swimwear.

output_format default png

Image format choice between 'png' for maximum quality and 'jpeg' for faster generation.

Seed for reproducible generation: it fixes randomness so identical inputs can yield the same result, while a changed seed forces a different result.

POST /run/fashn/tryon/v1.5?wait=20 quote → $0.075
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/fashn/tryon/v1.5?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_image": "example",
    "garment_image": "example"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About FASHN Virtual Try-On V1.5

Takes a `model_image` and `garment_image` (URL or base64) and renders the garment on the person. `category` covers tops, bottoms, one-pieces or auto, and `garment_photo_type` handles on-model or flat-lay. `mode` trades speed for quality, and `num_samples` returns 1 to 4 images.

Parameters

NameType DefaultAllowed Description
model_imagerequired
Typestring
Model image supplied as a URL or base64 data.
garment_imagerequired
Typestring
Garment image supplied as a URL or base64 data.
categoryoptional
Typeenum
Defaultauto
topsbottomsone-piecesauto
Try-on garment category, with 'auto' requesting an attempt to detect it automatically.
modeoptional
Typeenum
Defaultbalanced
performancebalancedquality
Operating mode for the speed–quality tradeoff: 'balanced' seeks a middle ground, 'quality' delivers better results with slower processing, and 'performance' runs faster with possible quality loss.
garment_photo_typeoptional
Typeenum
Defaultauto
automodelflat-lay
Garment-photo category for performance tuning of internal parameters. Flat-lay shots and ghost mannequin images use 'flat-lay'; photos showing clothing worn by a model use 'model'. With 'auto', the system attempts to identify the category itself.
moderation_leveloptional
Typeenum
Defaultpermissive
nonepermissiveconservative
Garment-image moderation policy. Disabling filters with 'none' requires account authorization; without it, that selection behaves as 'permissive'. Blocking is limited to explicit content under 'permissive', whereas 'conservative' additionally excludes underwear and swimwear.
seedoptional
Typeinteger | null
Seed for reproducible generation: it fixes randomness so identical inputs can yield the same result, while a changed seed forces a different result.
num_samplesoptional
Typeinteger
Default1
1 – 4
Image count for a single run, allowing multiple attempts together to improve the chance of a good result despite randomness in generation.
segmentation_freeoptional
Typeboolean
Defaulttrue
Disable human parsing for the model image.
output_formatoptional
Typeenum
Defaultpng
pngjpeg
Image format choice between 'png' for maximum quality and 'jpeg' for faster generation.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "fashn/tryon/v1.5",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 75,
    "usd": "0.075",
    "charged": 75,
    "refunded": 0
  },
  "input": {
    "model_image": "example",
    "garment_image": "example"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size}

More models: Image Editing

For AI agents: this page as Markdown is at https://doitong.com/developers/models/fashn/tryon/v1.5.md. All models and guides: https://doitong.com/developers/llms.txt