MakePhotos Docs
Guides

Product Photography

End-to-end guide for generating professional product photos with MakePhotos AI.

Product Photography Guide

This guide walks through a complete product photography workflow using the MakePhotos SDK.

The workflow

  1. Upload your raw product image
  2. Optionally remove the background
  3. Generate styled product shots
  4. Download or use the result URLs

Step 1: Upload your product image

If your image is already hosted at a public URL, skip this step. Otherwise:

import MakePhotos from 'makephotos';
import { readFileSync } from 'fs';

const client = new MakePhotos({
  apiKey: process.env.MAKEPHOTOS_API_KEY,
});

const uploaded = await client.upload.create({
  file: readFileSync('./raw-product.jpg'),
  filename: 'raw-product.jpg',
});

Step 2: Remove background (optional)

For best results with studio and Amazon styles, start with a clean cutout:

const noBg = await client.removeBg.create({
  imageUrl: uploaded.imageUrl,
});

Cost: 10 credits. Skip this if your product image already has a clean background.

Step 3: Generate styled shots

Studio shot (white background)

const studio = await client.generate.create({
  imageUrl: noBg.resultUrl,
  type: 'product',
  style: 'studio',
  aspectRatio: '1:1',
  resolution: '1K',
});

Amazon listing

const amazon = await client.generate.create({
  imageUrl: noBg.resultUrl,
  type: 'product',
  style: 'amazon',
  aspectRatio: '1:1',
});

Lifestyle context

const lifestyle = await client.generate.create({
  imageUrl: noBg.resultUrl,
  type: 'product',
  style: 'lifestyle',
  aspectRatio: '16:9',
  resolution: '2K',
  prompt: 'Modern kitchen counter, natural morning light',
});

Luxury editorial

const luxury = await client.generate.create({
  imageUrl: noBg.resultUrl,
  type: 'product',
  style: 'luxury',
  aspectRatio: '3:4',
  resolution: '2K',
});

Step 4: Use the results

Each result contains a permanent Cloudinary URL:

console.log(studio.resultUrl);
// https://res.cloudinary.com/.../makephotos/outputs/.../abc123.jpg

Use these URLs directly in your website, marketplace listings, or social media.

Cost summary

For a typical product with all four styles at 1K resolution:

StepCredits
Upload0
Background removal10
Studio shot (1K)1
Amazon shot (1K)1
Lifestyle shot (2K)2
Luxury shot (2K)2
Total16

Tips for best results

  • High-quality input: Start with a well-lit, in-focus product photo for the best AI output
  • Clean background: Remove the background first for studio and Amazon styles
  • Custom prompts: Use the prompt parameter on lifestyle shots to describe the scene you want
  • Resolution: Use 1K for thumbnails and previews, 2K for product pages, 4K for print

On this page