← All models
Add a background to images with white/clean background
images
Details
- Accepts
- image
Pricing
- Price
- 2.63 cr / megapixel
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| seed | — | Random seed for reproducibility. Same seed with same prompt will produce same result. |
| prompt | string | The prompt describing the background to add. Must start with 'Add Background' followed by your description. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and won't be saved in history. |
| image_size | — | The size of the generated image. If not provided, the size of the input image will be used. |
| image_urlsrequired | array | The URLs of the images. Provide an image with a white or clean background. |
| lora_scale | number | The strength of the add background effect. |
| num_images | integer | Number of images to generate |
| acceleration | stringenum: none, regular | Acceleration level for image generation. 'regular' balances speed and quality. |
| output_format | stringenum: png, jpeg, webp | The format of the output image |
| guidance_scale | number | The CFG (Classifier Free Guidance) scale. Controls how closely the model follows the prompt. |
| num_inference_steps | integer | The number of inference steps to perform. |
| enable_safety_checker | boolean | Whether to enable the safety checker for the generated image. Disabling it requires account authorization; unauthorized requests are always checked. |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | The seed used for generation |
| images | array | The generated images with added background |
| prompt | string | The prompt used for generation |