GET

/v1/schemas/fal/image/fal-ai/qwen-image-2/text-to-image

kind inputactivity imagehash ac771ea1…extracted Aug 10, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
b85613ae96d01653a0945aa15e1fa705855c91822d0f961e008cf8d044027db2
{
  "fetchedAt": 1786338105,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

9 properties · 1 required · 1 $defs
propertytypedescriptionconstraints
prompt*stringText prompt describing the desired image. Supports Chinese and English.length ≥ 1
negative_promptstringContent to avoid in the generated image. Max 500 characters.length ≤ 500 · nullable
output_formatenumThe format of the generated image.jpeg | png | webp · default: "png"
enable_safety_checkerbooleanEnable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked.default: true
num_imagesintegerThe number of images to generate.1 ≤ n ≤ 4 · default: 1
seedintegerRandom seed for reproducibility (0-2147483647).nullable
sync_modebooleanIf `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_sizeImageSize | enumThe size of the generated image. Total number of pixels must be between 512x512 and 2048x2048.default: "square_hd"
enable_prompt_expansionbooleanEnable LLM prompt optimization for better results.default: true

Types

1 $defs

ImageSizeobject

heightintegerThe height of the generated image.0 < n ≤ 14142 · default: 512
widthintegerThe width of the generated image.0 < n ≤ 14142 · default: 512

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fal","endpointId":"fal-ai/qwen-image-2/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}