GET
/v1/schemas/fal/image/rundiffusion-fal/rundiffusion-photo-flux
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source tracea3c56bd50384335697449695a6f0e038c1a3df9d07b3c954370958c03221849b{
"fetchedAt": 1783331098,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
11 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | The prompt to generate an image from. | |
| num_images | integer | The number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
| image_size | ImageSize | enum | The size of the generated image. | default: "landscape_4_3" |
| output_format | enum | The format of the generated image. | jpeg | png · default: "jpeg" |
| loras | LoraWeight[] | The LoRAs to use for the image generation. You can use any number of LoRAs and they will be merged together to generate the final image. | default: [] |
| sync_mode | boolean | If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN. | default: false |
| guidance_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. | 0 ≤ n ≤ 35 · default: 3.5 |
| num_inference_steps | integer | The number of inference steps to perform. | 1 ≤ n ≤ 50 · default: 28 |
| photo_lora_scale | number | LoRA Scale of the photo lora model | default: 0.75 |
| seed | integer | The same seed and the same prompt given to the same version of the model will output the same image every time. | |
| enable_safety_checker | boolean | If set to true, the safety checker will be enabled. | default: true |
Types
2 $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 |
LoraWeightobject
| path* | string | URL or the path to the LoRA weights. | |
| scale | number | The scale of the LoRA weight. This is used to scale the LoRA weight before merging it with the base model. | 0 ≤ n ≤ 4 · default: 1 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"rundiffusion-fal/rundiffusion-photo-flux","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}