Skip to content

AI product photo API

The usual job in e-commerce: the product stays the same while the background, the scene and the size change. You send the product photos as reference images to the edits endpoint and describe the scene. With Nano Banana 2.1 an image costs $0.012 at 1K, 2K or 4K.

Checked on 2026-11-19

One request

The edits endpoint is /v1/images/edits, sent as a form. A request takes up to 16 reference images of up to 20 MB each, in PNG, JPEG or WebP.

curl https://api.cheapestimagen.com/v1/images/edits \
  -H "Authorization: Bearer YOUR_KEY" \
  -F model=nano-banana-2.1 \
  -F size=2048x2048 \
  -F prompt="Place this exact product on a light oak table by a window, soft morning light, keep the label unchanged" \
  -F "image[]=@sneaker-front.png" \
  -F "image[]=@sneaker-side.png" \
  -F response_format=url
  • Send more than one angle. A front and a side shot keep the product more consistent than one photo.
  • Say what must not change. For example “keep the label unchanged” or “do not change the colour”.
  • No masks yet. You cannot repaint one area only; the whole image is generated.

Which size

UseRatio`size` at 2K`size` at 4K
Main image, square1:12048x20482880x2880
Portrait detail image4:51792x22402560x3200
Vertical poster, short-video cover9:161152x20482160x3840
Banner16:92048x11523840x2160

The full table is in the sizes guide. Google decides the exact pixels of a Nano Banana image, so they can differ a little from the value you pass; the ratio holds.

Which model

  • Nano Banana 2.1 ($0.012 an image): edits that keep the subject are what this family is for, and 2K and 4K cost no more, which suits scenes in volume.
  • Nano Banana Pro ($0.02): for dense detail and small print on packaging.
  • GPT Image 2 ($0.008): worth a try when the picture needs crisp copy on it (a headline, an offer); 1K only.

One key calls all three, and switching is one field, model. Run a dozen of your real product photos through each before you choose.

The cost

1,000 Nano Banana 2.1 images at 2K cost $12 here and about $50.4 on Google’s API (source). Four scenes for each of 1,000 products is therefore $48.

An image that fails or is refused by content checks is not charged, so the cost is the number of images you receive times the price. For running volume see Bulk image generation API.

Questions

Will the product look exactly like the original?

That cannot be guaranteed. The model keeps the product in the reference images as well as it can, but small text and patterns may drift; check each image before you publish it.

Can it return a product on a transparent background?

The API does not make transparent backgrounds at the moment. Ask for a plain background and cut it out yourself; in the generator on the site that step is automatic.

Can I use the product images commercially?

We claim no rights in your images and do not train on them. How you use them is your responsibility; see the terms.

Make your first image now

5 free images when you sign up, then from $0.008 an image.

Generate an image

Sign in

New accounts get 5 free images.