GET
/v1/schemas/fal/image/fal-ai/smart-resize?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source tracec32d6122e8118dcf8c5b690f2330adc26ad30de1c66c76339fdac9a0be2993b9{
"fetchedAt": 1783329487,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
3 properties · 3 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| 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* | string | The 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 $defsImageFileobject
| width | integer | The width of the image | nullable |
| file_size | integer | The size of the file in bytes. | nullable |
| content_type | string | The mime type of the file. | nullable |
| file_name | string | The name of the file. It will be auto-generated if not provided. | nullable |
| url* | string | The URL where the file can be downloaded from. | |
| height | integer | The height of the image | nullable |
SmartResizeResultobject
Per-target-size resize result: a list of ``ImageFile`` objects all at the exact requested (width, height).
| width* | integer | The requested target width in pixels. | |
| images* | ImageFile[] | The generated images. | |
| height* | integer | The requested target height in pixels. | |
| resolution* | string | The nano-banana-pro resolution tier that was used internally for this target size. | |
| description* | string | The description of the generated images. | |
| aspect_ratio* | string | The nano-banana-pro aspect ratio that was used internally for this target size. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/smart-resize","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}