GET
/v1/schemas/fal/image/fal-ai/qwen-image-2/pro/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace3049448557c5d1a105b669461f1377a8f2b698efa2b468263827e23e38814efc{
"fetchedAt": 1786338105,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
9 properties · 1 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | Text prompt describing the desired image. Supports Chinese and English;. | length ≥ 1 |
| negative_prompt | string | Content to avoid in the generated image. Max 500 characters. | length ≤ 500 · nullable |
| output_format | enum | The format of the generated image. | jpeg | png | webp · default: "png" |
| enable_safety_checker | boolean | Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked. | default: true |
| num_images | integer | The number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
| seed | integer | Random seed for reproducibility (0-2147483647). | nullable |
| 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 |
| image_size | ImageSize | enum | The size of the generated image. Total number of pixels must be between 512x512 and 2048x2048. | default: "square_hd" |
| enable_prompt_expansion | boolean | Enable LLM prompt optimization for better results. | default: true |
Types
1 $defsImageSizeobject
| height | integer | The height of the generated image. | 0 < n ≤ 14142 · default: 512 |
| width | integer | The width of the generated image. | 0 < n ≤ 14142 · default: 512 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/qwen-image-2/pro/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}