GET

/v1/schemas/fal/image/microsoft/mai-image-2.7/flash/text-to-image

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

upstream-spec

Source trace
5e82b795a651686f529ca1247a0dd653960800e7795a1f3c81c0dafe4ea4a7b0
{
  "fetchedAt": 1794978001,
  "extractorVersion": "2",
  "verifiedAt": null
}

Request body

6 properties · 1 required · 1 $defs
propertytypedescriptionconstraints
prompt*stringThe text prompt to generate an image from.length ≥ 1 · length ≤ 32000
image_sizeImageSize | enumThe size of the generated image. 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.default: "square_hd"
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 generated 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/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}