GET
/v1/schemas/fal/image/fal-ai/recraft-20b
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source tracedf5ac4b6ff9f02a3b04b71c7f547702a062403de5579988b5746eccbd2b6eb1d{
"fetchedAt": 1786338105,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
6 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | length ≥ 1 · length ≤ 1000 | |
| image_size | ImageSize | enum | default: "square_hd" | |
| 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: false |
| colors | RGBColor[] | An array of preferable colors | default: [] |
| style | enum | The style of the generated images. Vector images cost 2X as much. | any | realistic_image | digital_illustration | vector_illustration | realistic_image/b_and_w | realistic_image/enterprise · +31 more · default: "realistic_image" |
| style_id | string | The ID of the custom style reference (optional) | format: uuid4 · nullable |
Types
2 $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 |
RGBColorobject
| g | integer | Green color value | 0 ≤ n ≤ 255 · default: 0 |
| r | integer | Red color value | 0 ≤ n ≤ 255 · default: 0 |
| b | integer | Blue color value | 0 ≤ n ≤ 255 · default: 0 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/recraft-20b","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}