Skip to content
TutujinAPI

E-commerce product images and marketing creatives

E-commerce imagery usually combines three kinds of models: a chat model writes image prompts from product data, an image generation model produces scenes and marketing creatives, and an image editing model swaps backgrounds on real product photos. Image models mostly charge per image. For 500 new products a month with 4 scenes and 2 background swaps each, at live prices in each model’s cheapest group, model costs are about ¥1,002 a month.

Prices updated Nov 13, 2026, 1:33 AM

Monthly cost estimate

Assumptions: 500 new products a month; for each, one set of prompts from the chat model (about 600 input and 400 output tokens), 4 generated scenes and 2 background swaps on the real photo, so 2,000 generations and 1,000 edits.

¥1,002per month

  • Writing image prompts¥1.68
  • Generating scenes¥600
  • Background swaps and edits¥400
See the usage assumed

The business problem

Every new product needs a white-background shot, lifestyle scenes, detail-page images and ad creatives. Photo shoots and retouching are expensive and slow, especially before big sales.

Image models can create scenes from a description or change the background and colors of a real photo. The hard part is keeping the product itself intact: logo, text and shape must match the real thing.

The common approach edits the real white-background photo and lets the model change only the background and mood. Fully generated images suit mood shots and creative tests, and someone checks product details before anything goes live.

Recommended models

Recommended models are picked from the live catalog; prices are each model's cheapest group, updated Nov 13, 2026, 1:33 AM. Click a model to see every group's price.

Reference architecture

  1. 1

    Collect inputs

    Prepare one clear white-background photo per product, plus its name, material, colors, target buyers and the scene you want to show.

  2. 2

    Write prompts

    Have the chat model turn product attributes into image prompts with a consistent style, lighting and composition, and list what must not appear.

  3. 3

    Generate and edit

    Generate 3 to 5 variants of mood shots; for main images that must match the product exactly, edit the real photo and swap only the background.

  4. 4

    Store immediately

    Image URLs in the response are temporary. Download them right away into your own object storage before review.

  5. 5

    Human review

    Check shape, logo, text and colors against the real product and confirm you have the right to use the material before listing or advertising.

Cost estimate

Assumptions: 500 new products a month; for each, one set of prompts from the chat model (about 600 input and 400 output tokens), 4 generated scenes and 2 background swaps on the real photo, so 2,000 generations and 1,000 edits.

ItemModelUsage assumedCost
Writing image promptsqwen3.5-plus500 × (600 input + 400 output tokens)¥1.68
Generating scenesdoubao-seedream-5-0-2601282,000 requests¥600
Background swaps and editsnano-banana-pro1,000 requests¥400
Total (per month)¥1,002

Calculated from live prices in each model's cheapest group, updated Nov 13, 2026, 1:33 AM.

Model usage only: storage and human review are not included. Image models mostly charge per image, and resolutions and groups of the same model are priced differently; the table uses the cheapest group. Count the regenerations you will need as well.

Sample code

Generate a scene from text, then swap the background of a white-background product photo. Results arrive as a temporary URL or as base64; save them immediately.

Sample code (Python, scene generation and background swap)
import base64
import os

import requests
from openai import OpenAI

client = OpenAI(base_url="https://www.tutujin.com/v1", api_key=os.environ["TUTUJIN_API_KEY"])


def save(image, path):
    """Results come back as a temporary URL or as base64. Store the file right away."""
    if image.b64_json:
        data = base64.b64decode(image.b64_json)
    else:
        # some image hosts reject requests without a browser-like User-Agent
        r = requests.get(image.url, headers={"User-Agent": "Mozilla/5.0"}, timeout=120)
        r.raise_for_status()
        data = r.content
    with open(path, "wb") as f:
        f.write(data)


# 1. a lifestyle scene from a text prompt (prompts can be written by qwen3.5-plus)
scene = client.images.generate(
    model="doubao-seedream-5-0-260128",
    prompt="A white ceramic mug on a wooden breakfast table, soft morning light, product photography",
)
save(scene.data[0], "mug-scene.png")

# 2. keep the real product, change only the background
with open("mug-white-background.png", "rb") as f:
    edited = client.images.edit(
        model="nano-banana-pro",
        image=f,
        prompt="Keep the mug exactly as it is and place it on a marble kitchen counter",
    )
save(edited.data[0], "mug-marble.png")

Try this with one key

Sign up, create an API key in the console, and put your base_url and key into the code above. For company purchasing or invoices, add our WeChat support JsnonoChat.

Tutujin support WeChat QR code
WeChatJsnonoChat

Scan the code or search the WeChat ID to add us

FAQ

What does imagery for 500 new products a month cost?

With 4 scenes and 2 background swaps per product plus one set of prompts, the cheapest groups come to about ¥1,002 a month. Image models charge per image, so more regenerations mean a higher bill.

Can generated product images differ from the real product?

Yes, especially with pure text-to-image, where logos, text and details can change. For main images that must match, edit the real photo, change only the background and check the result by eye.

Do the returned image URLs last?

No. They are temporary and expire after a while, so download and store the files as soon as you receive them.

Can I use generated images commercially?

Whether you can, and whether someone else’s trademark or likeness is involved, depends on the model provider’s terms and on where your uploaded material came from; confirm this yourself. We do not judge copyright ownership of generated content.

How do I choose between image models?

Run the same prompts on a few models, compare results and per-image prices, then pick your main model. For edits of real photos, choose a model that supports the image editing endpoint.