# Car dealer photo

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

<figure><img src="/files/FeTvLqBj7DsAxfWKQLQB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9FYfCIFMLRnNN90mCLTz" alt=""><figcaption></figcaption></figure>

and the backdrops:

<figure><img src="/files/25hf5zf7foWJ6N2tAhTm" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PzYt5T7taW1PKNDMFjIi" alt=""><figcaption></figcaption></figure>

#### Image Blending Techniques

When it comes to integrating a product image with various backdrops, two primary image blending techniques can be employed:

1. **Fully Generative**:

   * This technique allows for the generation of entirely new visuals by seamlessly integrating the product with the chosen backdrop. It can also amend or alter the product image itself, ensuring that it aesthetically aligns with the overall composition. Fully generative blending is particularly useful for creative and flexible visual storytelling where customization and independence from the original image are desired.

2. **Plain Blending**

   This type of blending preserves item/product but can have problems with perspective. By not changing item/product it also will not remove uncecessary reflections, dirt, etc.

Each method offers distinct advantages, depending on whether the emphasis is on creative freedom or product fidelity.

### Example of fully generative blending

<figure><img src="/files/qYmfQADtgvDdhqayE1fw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4pNR8ZDv002akbsVSiAU" alt=""><figcaption></figcaption></figure>

```json
{
  "background": {
    "generate": {
      "description": "place the car in place from second photo, car dealer photo",
      "model_type": "gemini-3-pro-image-preview",
      "adapter_type": "img2img",
      "context_images": [
        "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/gitbook1.jpg",
        "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/gitbook2.jpg"
      ]
    }
  },
  "width": 1344,
  "height": 768
}
```

and the result is:

<figure><img src="/files/5V4QNXavo4WwZ4orU6Sf" alt=""><figcaption></figcaption></figure>

### Example of plain blending

```json
{
    "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"
        }
    }
}
```

<figure><img src="/files/EYEs5kj0p77cYUqRyqVt" alt=""><figcaption></figcaption></figure>

| Parameter              | Description                                                                                                                                                                                                                                                      |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| item\_area\_percentage | Float value from 0.3 to 1.0 describing how much the item  will be rescaled.                                                                                                                                                                                      |
| position               | <p>Possible values</p><ul><li>LT - left top</li><li>MT - middle top</li><li>RT - right top</li><li>LM - left middle</li><li>MM - middle middle</li><li>RM - right middle</li><li>LB - left bottom</li><li>MB - middle bottom</li><li>RB - right bottom</li></ul> |
| 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.deep-image.ai/common-usecases/car-dealer-photo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
