Replace Background
replace_backgroundReplace the background of any image by describing the new scene in a text prompt while keeping the foreground subject intact.
Instructions
Replace the background of an image while preserving the foreground subject. Provide a text prompt describing the new background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of output images (1-6). | |
| image | Yes | Source image as a URL or base64-encoded string. | |
| model | No | Model to use. | |
| style | No | Style category. | |
| prompt | Yes | Description of the new background. | |
| style_id | No | Custom style ID. | |
| substyle | No | Substyle. | |
| random_seed | No | Seed for reproducibility. | |
| image_format | No | Output format. | |
| negative_prompt | No | What to avoid. |