Car dealer photo
Let's say we want to create attractive car photo. We have plain car photos:


and the backdrops:


With below request we can place the car on the desired backdrop:
{
"url": "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/20241121_111223.jpg",
"background": {
"generate": {
"description": "item positioned on plain white background, diffused reflections",
"item_area_percentage": 0.65,
"position": "MB",
"background_url": "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/auto-backdrop.jpg"
}
}
}

{
"url": "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/20230315_101335.jpg",
"background": {
"generate": {
"description": "item positioned on plain white background, diffused reflections",
"item_area_percentage": 0.65,
"position": "MB",
"background_url": "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/auto-backdrop2.jpg"
}
}
}

item_area_percentage
Float value from 0.3 to 1.0 describing how much the item will be rescaled.
position
Possible values
LT - left top
MT - middle top
RT - right top
LM - left middle
MM - middle middle
RM - right middle
LB - left bottom
MB - middle bottom
RB - right bottom
background_url
Url to backdrop image
Additional hints:
To create a realistic effect, ensure the object's perspective matches the background. Otherwise, the effect may appear unrealistic.
The prompt description needs to similar to: "item positioned on plain white background, diffuse reflections", otherwise blend of generated background and the backdrop will be unrealistic.
Generated image will have resolution of the given backgrop
Last updated