GET

/v1/schemas/fal/image/fal-ai/flux-2-lora-gallery/add-background

kind inputactivity imagehash 776360da…extracted Aug 8, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
5f7589eba7b57d6e7a4009526c1cddbb590e0f68540ca7aa0333dbf44dc34ed9
{
  "fetchedAt": 1786165357,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

12 properties · 1 required · 1 $defs
propertytypedescriptionconstraints
image_urls*string[]The URLs of the images. Provide an image with a white or clean background.
image_sizeImageSize | enumThe size of the generated image. If not provided, the size of the input image will be used.nullable
output_formatenumThe format of the output imagepng | jpeg | webp · default: "png"
num_inference_stepsintegerThe number of inference steps to perform.4 ≤ n ≤ 50 · default: 40
enable_safety_checkerbooleanWhether to enable the safety checker for the generated image. Disabling it requires account authorization; unauthorized requests are always checked.default: true
seedintegerRandom seed for reproducibility. Same seed with same prompt will produce same result.nullable
guidance_scalenumberThe CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt.0 ≤ n ≤ 20 · default: 2.5
sync_modebooleanIf `True`, the media will be returned as a data URI and won't be saved in history.default: false
lora_scalenumberThe strength of the add background effect.0 ≤ n ≤ 2 · default: 1
accelerationenumAcceleration level for image generation. 'regular' balances speed and quality.none | regular · default: "regular"
num_imagesintegerNumber of images to generate1 ≤ n ≤ 4 · default: 1
promptstringThe prompt describing the background to add. Must start with 'Add Background' followed by your description.default: "Add Background forest"

Types

1 $defs

ImageSizeobject

heightintegerThe height of the generated image.0 < n ≤ 14142 · default: 512
widthintegerThe width of the generated image.0 < n ≤ 14142 · default: 512

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fal","endpointId":"fal-ai/flux-2-lora-gallery/add-background","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}