GET

/v1/schemas/fal/image/fal-ai/smart-resize?kind=output

kind outputactivity imagehash 586b2acb…extracted Jul 6, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
c32d6122e8118dcf8c5b690f2330adc26ad30de1c66c76339fdac9a0be2993b9
{
  "fetchedAt": 1783329487,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

3 properties · 3 required · 2 $defs
propertytypedescriptionconstraints
images*ImageFile[]All generated images, flattened across every target size. Order matches the order of ``results`` below: the first ``num_images_per_size`` entries correspond to ``target_sizes[0]`` and so on.
description*stringThe description of the generated images.
results*SmartResizeResult[]Per-target-size breakdown with the requested width/height and the nano-banana-pro (aspect_ratio, resolution) preset that was used internally.

Types

2 $defs

ImageFileobject

widthintegerThe width of the imagenullable
file_sizeintegerThe size of the file in bytes.nullable
content_typestringThe mime type of the file.nullable
file_namestringThe name of the file. It will be auto-generated if not provided.nullable
url*stringThe URL where the file can be downloaded from.
heightintegerThe height of the imagenullable

SmartResizeResultobject

Per-target-size resize result: a list of ``ImageFile`` objects all at the exact requested (width, height).

width*integerThe requested target width in pixels.
images*ImageFile[]The generated images.
height*integerThe requested target height in pixels.
resolution*stringThe nano-banana-pro resolution tier that was used internally for this target size.
description*stringThe description of the generated images.
aspect_ratio*stringThe nano-banana-pro aspect ratio that was used internally for this target size.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fal","endpointId":"fal-ai/smart-resize","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}