Generate Background
generate_backgroundReplace the background of an image by providing a mask that defines the background area and a prompt describing the new scene.
Instructions
Generate a background for an image using a mask to define the background area. The mask indicates which areas should be filled with the generated background.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of output images (1-6). | |
| mask | Yes | Mask defining the background area as a URL or base64-encoded string. | |
| 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 background to generate. | |
| 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. |