GET
/v1/schemas/fal/image/fal-ai/fashn/tryon/v1.6
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source traceedc5333103afbf8d6c88cdcf5e322133b031dc5fe697e2916ff3b0ea3ea4f151{
"fetchedAt": 1791522002,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
12 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| garment_image* | string | URL or base64 of the garment image | |
| model_image* | string | URL or base64 of the model image | |
| category | enum | Category of the garment to try-on. 'auto' will attempt to automatically detect the category of the garment. | tops | bottoms | one-pieces | auto · default: "auto" |
| seed | integer | Sets random operations to a fixed state. Use the same seed to reproduce results with the same inputs, or different seed to force different results. | nullable |
| moderation_level | enum | Content moderation level for garment images. 'permissive' blocks only explicit content; 'conservative' also blocks underwear and swimwear. 'none' disables moderation only for accounts authorized to disable safety filters; for all other accounts it is treated a… | none | permissive | conservative · default: "permissive" |
| segmentation_free | boolean | Disables human parsing on the model image. | default: true |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. | default: true |
| mode | enum | Specifies the mode of operation. 'performance' mode is faster but may sacrifice quality, 'balanced' mode is a balance between speed and quality, and 'quality' mode is slower but produces higher quality results. | performance | balanced | quality · default: "balanced" |
| garment_photo_type | enum | Specifies the type of garment photo to optimize internal parameters for better performance. 'model' is for photos of garments on a model, 'flat-lay' is for flat-lay or ghost mannequin images, and 'auto' attempts to automatically detect the photo type. | auto | model | flat-lay · default: "auto" |
| output_format | enum | Output format of the generated images. 'png' is highest quality, while 'jpeg' is faster | png | jpeg · default: "png" |
| num_samples | integer | Number of images to generate in a single run. Image generation has a random element in it, so trying multiple images at once increases the chances of getting a good result. | 1 ≤ n ≤ 4 · default: 1 |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | default: false |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/fashn/tryon/v1.6","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}