API Documentation
  • Welcome!
  • Quick Start
  • API methods
  • Easy integration
  • Handling Large File Sets
  • Supported formats
  • Webhooks
  • Common usecases
    • Auto enhance image quality
    • Create business photo or avatar from face image
    • Face swap
    • Create beautiful product photo
    • Genarate image in high resolution
    • Remove background
    • AI Drawing to Image - Doodle
    • Real estate
    • Enhancing documents
    • Car dealer photo
  • Image processing
    • Resize and padding
    • Denoise and sharpen
    • Enhance lighting and colors
    • Enhance face details
    • Background removal and generation
    • Image generation
    • Inpainting and outpainting (uncrop)
    • Frame identification
    • Print
    • Captions
    • Additional parameters
    • Presets
  • Account & settings
    • Account information
  • storages
    • Description
    • AWS S3
    • AWS S3 IAM Configuration
  • Presets
    • E-commerce
    • Real-estate
    • Print/Photo
    • Digital Art
  • Technology
    • Algorithms
    • Upscale
    • Background removal
      • Remove BG recommendation
    • Sharpen & Noise reduction
    • Enhance Lighting
  • FAQ
Powered by GitBook
On this page
  1. Common usecases

Car dealer photo

PreviousEnhancing documentsNextResize and padding

Last updated 2 months ago

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"
        }
    }
}
Parameter
Description

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