GET
/v1/schemas/fal/image/xai/grok-imagine-image/v2.0/text-to-image?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracec139a63209dcda8aaae378708b61f4b8cd951ce9af2c977b5e7d24006a12108c{
"fetchedAt": 1786770058,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
2 properties · 1 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| images* | ImageFile[] | The URL of the generated image. | |
| revised_prompt | string | The enhanced prompt that was used to generate the image. | nullable |
Types
1 $defsImageFileobject
| width | integer | The width of the image | nullable |
| content_type | string | The mime type of the file. | nullable |
| file_size | integer | The size of the file in bytes. | 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 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"xai/grok-imagine-image/v2.0/text-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}