Plus plan

Product Shot

Put your product photo into a studio or real-life scene
POST
/v1/ai/generation/product

About this tool

This tool takes a photo of a product and places it in a new setting, such as a white studio, a soft gradient or a real-life scene like a kitchen table. You can describe the scene in your own words. It uses AI (a computer program that creates images), so the product may change slightly and you should check the result.
For example, you sell mugs and you want your mug photo shown on a wooden kitchen table instead of your messy desk.

How to use it

  1. Choose this tool.
  2. Add one product photo with Upload, or drag and drop it.
  3. Choose the Setting and, if you like, describe the scene.
  4. Choose the shape and size, then press Generate.
  5. Download the picture you like.

What you get back

You get new product pictures in the setting you chose, ready to download. Make more versions if you want to compare looks.
TEST IT LIVE

Try Product Shot in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Plus
Method
POST
Endpoint
/v1/ai/generation/product
Tool ID
ai.generation.product
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/generation/product" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'on_unsupported=error' \
  -F 'n=1' \
  -F 'aspect_ratio=1:1'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.generation.product({
    "files": 'document.pdf',
    "on_unsupported": "error",
    "n": 1,
    "aspect_ratio": "1:1"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->generation()->product([
    'files' => 'document.pdf',
    'on_unsupported' => 'error',
    'n' => 1,
    'aspect_ratio' => '1:1',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Place a product photo in a studio/lifestyle scene. Readiness: unbenchmarked (see GET /v1/ai/capabilities/generation.product).

Classification: ai. Deterministic stages: upload content sniffing, input image normalisation (Sharp), generated image validation and re-encoding (Sharp), signed-URL output.

Product Shot works from text and settings, so no file is needed. Every input is optional.

Not on the Free plan: Product Shot is available on the Plus plan and above. Free accounts can upgrade any time to use it. Each run uses credits from your monthly allowance.

Send a POST request to /v1/ai/generation/product with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.