GET
/v1/schemas/fal/image/microsoft/mai-image-2.5
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace75db5ddbcc4998e688f980326b64bf6d141aa26ee7b704b182fbd242872fff1c{
"fetchedAt": 1783329487,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
5 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The text prompt to generate an image from. | length ≥ 3 · length ≤ 5000 |
| 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 |
| output_format | enum | The format of the generated image. | jpeg | png | webp · default: "png" |
| aspect_ratio | enum | The aspect ratio of the generated image. Use "auto" to let the model decide based on the prompt. | auto | 1:1 | 4:3 | 3:4 | 16:9 | 9:16 · +2 more · default: "auto" |
| num_images | integer | The number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"microsoft/mai-image-2.5","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}