GET
/v1/schemas/fal/image/fal-ai/glm-image/image-to-image
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace7f1bc315a13ea3e2e9a9dccdd824ce17c179ed1179e227a8cb034a54f2f6a082{
"fetchedAt": 1786338105,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
11 properties · 2 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | Text prompt for image generation. | |
| image_urls* | string[] | URL(s) of the condition image(s) for image-to-image generation. Supports up to 4 URLs for multi-image references. | |
| output_format | enum | Output image format. | jpeg | png · default: "jpeg" |
| guidance_scale | number | Classifier-free guidance scale. Higher values make the model follow the prompt more closely. | 1 ≤ n ≤ 10 · default: 1.5 |
| seed | integer | Random seed for reproducibility. The same seed with the same prompt will produce the same image. | nullable |
| num_inference_steps | integer | Number of diffusion denoising steps. More steps generally produce higher quality images. | 10 ≤ n ≤ 100 · default: 30 |
| image_size | ImageSize | enum | Output image size. | default: "square_hd" |
| enable_prompt_expansion | boolean | If True, the prompt will be enhanced using an LLM for more detailed and higher quality results. | default: false |
| sync_mode | boolean | If True, the image will be returned as a base64 data URI instead of a URL. | default: false |
| enable_safety_checker | boolean | Enable NSFW safety checking on the generated images. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images. | default: true |
| num_images | integer | Number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
Types
1 $defsImageSizeobject
| height | integer | The height of the generated image. | 0 < n ≤ 14142 · default: 512 |
| width | integer | The width of the generated image. | 0 < n ≤ 14142 · default: 512 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/glm-image/image-to-image","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}