GET
/v1/schemas/fal/image/xai/grok-imagine-image/v2.0/text-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace11f2954cd97107bf16da55c4dc944ad05020a3779255dfe8a3474a11f7d94e5b{
"fetchedAt": 1793250001,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
8 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | Text description of the desired image. | length ≤ 8000 |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | default: false |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. | default: true |
| aspect_ratio | enum | Aspect ratio of the generated image. Use auto to let the provider choose. | 2:1 | 20:9 | 19.5:9 | 16:9 | 4:3 | 3:2 · +10 more · default: "1:1" |
| output_format | enum | The format of the generated image. | jpeg | png | webp · default: "jpeg" |
| num_images | integer | Number of images to generate. | 1 ≤ n ≤ 10 · default: 1 |
| resolution | enum | Resolution of the generated image: 1k, 1.5k, or 2k. | 1k | 1.5k | 2k · default: "1k" |
| quality | enum | Quality level of the generated image. `auto` lets xAI choose; it currently uses `low` for generation. | low | medium | auto · default: "medium" |
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", …}]}