GET
/v1/schemas/fal/image/fal-ai%2Fbria%2Fbackground%2Freplace
Accept:
Request body
9 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| image_url* | string | Input Image to erase from | |
| num_images | integer | Number of Images to generate. | 1 ≤ n ≤ 4 · default: 1 |
| negative_prompt | string | The negative prompt you would like to use to generate images. | default: "" |
| fast | boolean | Whether to use the fast model | default: true |
| ref_image_url | string | The URL of the reference image to be used for generating the new background. Use "" to leave empty. Either ref_image_url or bg_prompt has to be provided but not both. If both ref_image_url and ref_image_file are provided, ref_image_url will be used. Accepted f… | default: "" |
| refine_prompt | boolean | Whether to refine prompt | default: true |
| 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 |
| seed | integer | The same seed and the same prompt given to the same version of the model will output the same image every time. | 0 ≤ n ≤ 2147483647 · nullable |
| prompt | string | The prompt you would like to use to generate images. | length ≥ 1 · nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/bria/background/replace","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}