GET
/v1/schemas/fal/image/microsoft/mai-image-2.5-pro
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace4c4c6f5f05285380f1f28e8c38e693fc00c4baf75aaf369ecfc4eacb104f2c4a{
"fetchedAt": 1785560543,
"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 |
| 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" |
| output_format | enum | The format of the generated image. | jpeg | png | webp · default: "png" |
| num_images | integer | The number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
| 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 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"microsoft/mai-image-2.5-pro","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}