GET
/v1/schemas/fal/image/xai/grok-imagine-image/quality/edit
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source traceb3df917eaff5e95aff4bed7bc6c857f3e5d1cf7305be7603f20cbfae8e1b45fe{
"fetchedAt": 1791522002,
"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 |
| num_images | integer | Number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. | default: true |
| image_urls | string[] | List of URLs of the images to edit. A maximum of 3 images are supported. | |
| output_format | enum | The format of the generated image. | jpeg | png | webp · default: "jpeg" |
| resolution | enum | Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution. | 1k | 2k · default: "1k" |
| aspect_ratio | enum | Aspect ratio of the edited image. When set to `auto` (the default), the output preserves the aspect ratio of the first input image. | auto | 2:1 | 20:9 | 19.5:9 | 16:9 | 4:3 · +8 more · default: "auto" |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"xai/grok-imagine-image/quality/edit","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}