GET
/v1/schemas/fal/image/microsoft/mai-image-2.7/flash/edit
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace09b2ed38468b8d95eed4d37fd40bc3f84d83c16e75f2017c0c45aebebf1c6842{
"fetchedAt": 1794978001,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
7 properties · 2 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The instruction describing how to edit the input images. | length ≥ 1 · length ≤ 32000 |
| image_urls* | string[] | The URLs of the images to edit or reference (up to 5). | items ≥ 1 · items ≤ 5 |
| image_size | ImageSize | enum | The size of the edited image. If not set, the model picks a size close to the input. Each side must be at least 768 pixels and the total pixel count at most 4,194,304 (2048x2048). Custom sizes are rounded down to a multiple of 16. | nullable |
| background | enum | Use "transparent" for a transparent background (requires png or webp output). | opaque | transparent · default: "opaque" |
| 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 |
| resolution | enum | Resolution of preset image sizes: "1K" (about 1 megapixel) or "2K" (each side doubled). Ignored for custom sizes. | 1K | 2K · default: "1K" |
| output_format | enum | The format of the edited image. | jpeg | png | webp · default: "png" |
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":"microsoft/mai-image-2.7/flash/edit","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}