GET
/v1/schemas/fal/image/fal-ai/moss-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace59ad239761187343395b9a8cc394821ec78edff54dd0adf7e331756adea6b8d5{
"fetchedAt": 1792386010,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
11 properties · 1 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | Text prompt for image generation. Supports natural language, tag sequences, and JSON layouts. | length ≥ 1 · length ≤ 16384 |
| sync_mode | boolean | Return images as data URIs instead of storing them in request history. | default: false |
| image_size | ImageSize | enum | Output image size. Width and height are rounded to multiples of 16 between 512 and 2048 pixels. | default: "square_hd" |
| seed | integer | Random seed for reproducible generation. | nullable |
| output_format | enum | Output image format. | jpeg | png | webp · default: "jpeg" |
| enable_safety_checker | boolean | Enable output content moderation. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images. | default: true |
| num_inference_steps | integer | Number of denoising steps. | 1 ≤ n ≤ 100 · default: 50 |
| enable_prompt_expansion | boolean | Plan a structured layout from your prompt before generation. Preserves requested visible text and uses the selected image dimensions. If enhancement is unavailable, uses the original prompt. | default: true |
| negative_prompt | string | Negative prompt. When empty, guidance uses transformer layer skipping for the negative branch. | length ≤ 16384 · default: "" |
| num_images | integer | Number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
| guidance_scale | number | Classifier-free guidance scale. | 0 ≤ n ≤ 10 · default: 3 |
Types
1 $defsImageSizeobject
| width | integer | The width of the generated image. | 0 < n ≤ 14142 · default: 512 |
| height | integer | The height 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/moss-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}