GET
/v1/schemas/fal/image/fal-ai/image2pixel?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace570244531544bbe3689370d79c8ab7cb54c3cdc1e86f676aa2da65a4f2003191{
"fetchedAt": 1783330412,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
4 properties · 4 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| palette* | string[] | The palette of the processed media. | |
| images* | ImageFile[] | The processed pixel-art image (PNG) and the scaled image (PNG). | |
| num_colors* | integer | The number of colors in the processed media. | |
| pixel_scale* | integer | The detected pixel scale of the input. |
Types
1 $defsImageFileobject
| content_type | string | The mime type of the file. | nullable |
| file_size | integer | The size of the file in bytes. | nullable |
| height | integer | The height of the image | nullable |
| width | integer | The width of the image | 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. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/image2pixel","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}