GET

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

kind inputactivity imagehash d84045ec…extracted Nov 26, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
278f7ec8760ec3c4ac4021b163fa73d287ec880aec6b62f92c5cc2319bccd82b
{
  "fetchedAt": 1795669202,
  "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 ≤ 20000
image_urls*string[]The URLs of the images to edit or reference (up to 5).items ≥ 1 · items ≤ 5
backgroundenumUse "transparent" for a transparent background (requires png or webp output).opaque | transparent · default: "opaque"
output_formatenumThe format of the edited image.jpeg | png | webp · default: "png"
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
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"

Types

1 $defs

ImageSizeobject

widthintegerThe width of the generated image.0 < n ≤ 14142 · default: 512
heightintegerThe height 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/edit","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}