GET

/v1/schemas/fal/image/microsoft/mai-image-2.7/flash/edit

kind inputactivity imagehash 592b4f73…extracted Nov 18, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
09b2ed38468b8d95eed4d37fd40bc3f84d83c16e75f2017c0c45aebebf1c6842
{
  "fetchedAt": 1794978001,
  "extractorVersion": "2",
  "verifiedAt": null
}

Request body

7 properties · 2 required · 1 $defs
propertytypedescriptionconstraints
prompt*stringThe 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_sizeImageSize | enumThe 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
backgroundenumUse "transparent" for a transparent background (requires png or webp output).opaque | transparent · default: "opaque"
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.default: false
resolutionenumResolution of preset image sizes: "1K" (about 1 megapixel) or "2K" (each side doubled). Ignored for custom sizes.1K | 2K · default: "1K"
output_formatenumThe format of the edited image.jpeg | png | webp · default: "png"

Types

1 $defs

ImageSizeobject

heightintegerThe height of the generated image.0 < n ≤ 14142 · default: 512
widthintegerThe width of the generated image.0 < n ≤ 14142 · default: 512

Validate a payload

before you spend tokens
shell
$ 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", …}]}