SDXL Ad Inpaint
Generate product advertisement images with inpainting using SDXL. Place products in professional ad settings with configurable composition, refinement steps, and product fill options.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "sdxl-ad-inpaint",
"version": "0.0.1",
"input": {
"prompt": "a premium skincare product on a marble surface with rose petals, luxury beauty advertisement, studio lighting",
"image": "https://example.com/product-cutout.jpg",
"guidance_scale": 7.5,
"num_inference_steps": 40,
"img_size": "1024, 1024"
}
}'
Parameters
| Parameter |
Type |
Default |
Description |
| apply_img |
boolean |
true |
Apply image as input to guide the model |
| condition_scale |
number |
0.9 |
Condition scale for ControlNet strength |
| guidance_scale |
number |
7.5 |
Guidance scale for generation |
| image |
string |
- |
Input image to guide the output |
| img_size |
string |
1024, 1024 |
Image size dimensions |
| negative_prompt |
string |
low quality, out of frame, illustration, 3d, sepia, painting, cartoons, sketch, watermark, text, Logo, advertisement |
Negative prompt |
| num_inference_steps |
integer |
40 |
Number of inference steps |
| num_refine_steps |
integer |
10 |
Additional refinement passes |
| product_fill |
string |
Original |
Product fill mode. enum: Original, 80, 70, 60, 50, 40, 30, 20 |
| prompt |
string |
- |
Text prompt for ad generation |
| scheduler |
string |
K_EULER |
Scheduler. enum: DDIM, DPMSolverMultistep, HeunDiscrete, KarrasDPM, K_EULER_ANCESTRAL, K_EULER, PNDM |
| seed |
integer |
- |
Random seed for reproducibility |
Examples
Luxury product ad:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "sdxl-ad-inpaint",
"version": "0.0.1",
"input": {
"prompt": "a premium perfume bottle on a reflective gold surface, dramatic studio lighting, luxury advertisement, bokeh background",
"image": "https://example.com/perfume-bottle.jpg",
"guidance_scale": 8,
"num_inference_steps": 50,
"num_refine_steps": 15,
"product_fill": "70",
"scheduler": "KarrasDPM"
}
}'
Food product photography:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "sdxl-ad-inpaint",
"version": "0.0.1",
"input": {
"prompt": "a fresh juice bottle on a rustic wooden table with fresh fruits and herbs, natural daylight, food photography",
"image": "https://example.com/juice-bottle.jpg",
"guidance_scale": 7.5,
"num_inference_steps": 40,
"condition_scale": 0.85,
"seed": 42
}
}'
Related Models
Documentation
1---2name: sdxl-ad-inpaint3description: SDXL Ad Inpaint | Product Ad Image Generation. Generate product advertisement images with inpainting using SDXL. Triggers: sdxl ad inpaint, product ad, ad generation, product photography, ad inpainting4---56# SDXL Ad Inpaint78Generate product advertisement images with inpainting using SDXL. Place products in professional ad settings with configurable composition, refinement steps, and product fill options.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314```bash15curl -X POST https://api.eachlabs.ai/v1/prediction \16 -H "Content-Type: application/json" \17 -H "X-API-Key: $EACHLABS_API_KEY" \18 -d '{19 "model": "sdxl-ad-inpaint",20 "version": "0.0.1",21 "input": {22 "prompt": "a premium skincare product on a marble surface with rose petals, luxury beauty advertisement, studio lighting",23 "image": "https://example.com/product-cutout.jpg",24 "guidance_scale": 7.5,25 "num_inference_steps": 40,26 "img_size": "1024, 1024"27 }28 }'29```3031## Parameters3233| Parameter | Type | Default | Description |34|-----------|------|---------|-------------|35| apply_img | boolean | true | Apply image as input to guide the model |36| condition_scale | number | 0.9 | Condition scale for ControlNet strength |37| guidance_scale | number | 7.5 | Guidance scale for generation |38| image | string | - | Input image to guide the output |39| img_size | string | 1024, 1024 | Image size dimensions |40| negative_prompt | string | low quality, out of frame, illustration, 3d, sepia, painting, cartoons, sketch, watermark, text, Logo, advertisement | Negative prompt |41| num_inference_steps | integer | 40 | Number of inference steps |42| num_refine_steps | integer | 10 | Additional refinement passes |43| product_fill | string | Original | Product fill mode. enum: Original, 80, 70, 60, 50, 40, 30, 20 |44| prompt | string | - | Text prompt for ad generation |45| scheduler | string | K_EULER | Scheduler. enum: DDIM, DPMSolverMultistep, HeunDiscrete, KarrasDPM, K_EULER_ANCESTRAL, K_EULER, PNDM |46| seed | integer | - | Random seed for reproducibility |4748## Examples4950**Luxury product ad:**51```bash52curl -X POST https://api.eachlabs.ai/v1/prediction \53 -H "Content-Type: application/json" \54 -H "X-API-Key: $EACHLABS_API_KEY" \55 -d '{56 "model": "sdxl-ad-inpaint",57 "version": "0.0.1",58 "input": {59 "prompt": "a premium perfume bottle on a reflective gold surface, dramatic studio lighting, luxury advertisement, bokeh background",60 "image": "https://example.com/perfume-bottle.jpg",61 "guidance_scale": 8,62 "num_inference_steps": 50,63 "num_refine_steps": 15,64 "product_fill": "70",65 "scheduler": "KarrasDPM"66 }67 }'68```6970**Food product photography:**71```bash72curl -X POST https://api.eachlabs.ai/v1/prediction \73 -H "Content-Type: application/json" \74 -H "X-API-Key: $EACHLABS_API_KEY" \75 -d '{76 "model": "sdxl-ad-inpaint",77 "version": "0.0.1",78 "input": {79 "prompt": "a fresh juice bottle on a rustic wooden table with fresh fruits and herbs, natural daylight, food photography",80 "image": "https://example.com/juice-bottle.jpg",81 "guidance_scale": 7.5,82 "num_inference_steps": 40,83 "condition_scale": 0.85,84 "seed": 4285 }86 }'87```8889## Related Models9091- [realistic-background](../realistic-background/) - Background replacement92- [flux-fill-pro](../flux-fill-pro/) - Flux-based inpainting93- [stable-diffusion-inpainting](../stable-diffusion-inpainting/) - Standard SD inpainting9495## Documentation9697- [each::labs Docs](https://docs.eachlabs.ai)98- [API Reference](https://docs.eachlabs.ai/api/overview)