GET
/v1/schemas/fal/image/fal-ai/krea-2/turbo/lora
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source traceb53cfdad0462635329ab2eeeecda05ac9891de8a870f6f0935f2a17b1c946ed8{
"fetchedAt": 1794546001,
"extractorVersion": "2",
"verifiedAt": null
} |
Request body
10 properties · 1 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | Base text description of the image to generate. | length ≥ 1 · length ≤ 5000 |
| enable_safety_checker | boolean | If true, the output safety checker is enabled. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images. | default: true |
| output_format | enum | The format of the generated image. Default value: "png". | jpeg | png · default: "png" |
| image_size | ImageSize | enum | The size of the generated image. | default: "square_hd" |
| seed | integer | Random seed for reproducible generation. Image *i* uses `seed + i`. | nullable |
| enable_prompt_expansion | boolean | If true, the prompt is expanded with an LLM into a more detailed image-generation prompt for higher quality results. On failure, the original prompt is used unchanged. | default: false |
| acceleration | enum | The acceleration level to use for the image generation. | none | regular · default: "none" |
| 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 |
| loras | LoRAInput[] | List of LoRA weights to apply (maximum 3). | items ≤ 3 · default: [] |
| num_images | integer | The number of images to generate. | 1 ≤ n ≤ 4 · default: 1 |
Types
2 $defsImageSizeobject
| width | integer | The width of the generated image. | 0 < n ≤ 14142 · default: 512 |
| height | integer | The height of the generated image. | 0 < n ≤ 14142 · default: 512 |
LoRAInputobject
| scale | number | Scale factor for LoRA application (0.0 to 4.0). | 0 ≤ n ≤ 4 · default: 1 |
| path* | string | URL or HuggingFace repo ID (owner/repo) of the LoRA weights. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/krea-2/turbo/lora","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}