GET
/v1/schemas/fal/image/fal-ai/wan-25-preview/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace1a592d0209248b8b139062102302680f731ca76de9a710654cae6aaf44a672ac{
"fetchedAt": 1786338105,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
7 properties · 1 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The prompt for image generation. Supports Chinese and English, max 2000 characters. | length ≥ 1 |
| num_images | integer | Number of images to generate. Values from 1 to 4. | 1 ≤ n ≤ 4 · default: 1 |
| seed | integer | Random seed for reproducibility. If None, a random seed is chosen. | nullable |
| image_size | ImageSize | enum | The size of the generated image. Can use preset names like 'square', 'landscape_16_9', etc., or specific dimensions. Total pixels must be between 768×768 and 1440×1440, with aspect ratio between [1:4, 4:1]. | default: "square" |
| enable_safety_checker | boolean | If set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked. | default: true |
| enable_prompt_expansion | boolean | Whether to enable prompt rewriting using LLM. Improves results for short prompts but increases processing time. | default: true |
| negative_prompt | string | Negative prompt to describe content to avoid. Max 500 characters. | nullable |
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/wan-25-preview/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}