Helenis API
Start for free

Web data & toolsEcommerce

Product Description Generator API: From Product Photos to a Full Listing

Product description generator API guide: turn product photos into a category, attributes and an Amazon, Etsy or eBay listing in Python, nothing invented.

Product Description Generator API cover: a T-shirt sticker, an arrow and a JSON response with marketplace amazon, product type armchair, category Armchairs, Google category 6499 and amazon_main_image true.
One photo of an armchair in, an Amazon listing out, with the Shopify and Google categories and the photo checked on its pixels.

A reseller photographs 300 second-hand items on a Sunday. Each one needs a category, a title within the marketplace's limit, bullets, a description, tags and alt text, and each marketplace counts differently: 80 characters for an eBay title, 140 and 13 tags for Etsy, 249 bytes of backend search terms for Amazon. Writing them by hand takes the week. Pasting the photos into a chatbot is faster, until a listing says "genuine leather" about a bag nobody tested, or names a brand that is not on the product.

A product description generator API should start from the photos, report only what they show, and write within each marketplace's rules. This article explains how to keep an AI listing writer honest, then builds the pipeline in Python on Product Photo to Listing: one call turns 1 to 4 photos and your notes into a Shopify category with its Google product category, attributes, visible defects, and a complete listing for Amazon, Shopify, Etsy, eBay or a generic store.

Why AI product descriptions invent things

A vision model asked to "write a listing for this photo" fills gaps with plausible words. A brown bag becomes "genuine leather", a plain chair "sturdy and comfortable", a perfume bottle gets a brand from its shape. On a marketplace these are claims, and a buyer can return the item over them.

The API splits the job in two so that cannot happen:

  1. A vision step reports facts with their source. Each attribute carries an evidence value: label (read on a tag or the packaging), logo, hint (given by you), or photo (judged from the look). A material judged from the look gets a confidence of 0.6 at most and goes to to_verify.
  2. A writer that never sees the photos. It receives the report and your notes, each attribute tagged with its source ("read on the label", "judged from appearance: do not state as fact"), and a list of promises it may not make (durable, sturdy, premium, authentic...).
  3. Code, not the model, enforces the rules. A brand is kept only if it appears in the text read on the product, comes from a visible logo, or is given by you. Titles, bullets, tags and search terms are cut at a word boundary to each marketplace's limit, and the HTML is built and escaped by code.

The category is chosen among real entries of the Shopify Standard Product Taxonomy (MIT licence, 64,000+ categories), and an invented id is replaced by the best search result.

Generate an Amazon listing from one photo in Python

POST /v1/product-listing/listing takes image_urls (1 to 4 photos of one product) and a marketplace (amazon, shopify, etsy, ebay, generic). Add what the photos cannot show in notes, and optionally your brand, the product name, your current title and description, and a language.

Python
import requests

HOST = "product-photo-to-listing-ai-tags-descriptions.p.rapidapi.com"
API = f"https://{HOST}"
HEADERS = {"x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": HOST}

product = {
    "image_urls": [
        "https://upload.wikimedia.org/wikipedia/commons/4/46/Sillon_Aloha.JPG"
    ],
    "marketplace": "amazon",
    "notes": "Seat height 44 cm, width 78 cm. Ships assembled.",
}
r = requests.post(
    f"{API}/v1/product-listing/listing", headers=HEADERS, json=product, timeout=90
)
r.raise_for_status()
data = r.json()

print(data["listing"]["title"])
print(data["product"]["category"]["path"], data["product"]["category"]["google_id"])

The real response, trimmed (10 credits, 7.8 seconds):

JSON
{
  "listing": {
    "marketplace": "amazon",
    "language": "English",
    "title": "Armchair with Fabric-Look Upholstery Brown Grey Cream 78 cm Wide",
    "bullets": [
      "Dimensions provided are a seat height of 44 cm and a total width of 78 cm.",
      "Upholstery features a fabric-look finish with a concentric oval design.",
      "Colour palette includes shades of brown, grey, and cream.",
      "Support structure consists of wooden legs finished with metallic feet.",
      "Delivery includes the item fully assembled for immediate use."
    ],
    "seo_title": "Patterned Fabric-Look Armchair Brown Grey Cream 78 cm",
    "search_terms": "chair patterned living room furniture retro style wooden leg vintage look accent upholstered",
    "limits": { "title": 200, "bullet": 500, "description": 2000, "search_terms_bytes": 249 }
  },
  "product": {
    "product_type": "armchair",
    "category": {
      "id": "fr-7-1-1",
      "name": "Armchairs",
      "path": "Furniture > Chairs > Armchairs, Recliners & Sleeper Chairs > Armchairs",
      "google_id": "6499",
      "google_path": "Furniture > Chairs > Arm Chairs, Recliners & Sleeper Chairs",
      "confidence": 1.0
    },
    "attributes": {
      "material": { "value": "fabric", "confidence": 0.5, "evidence": "photo" },
      "pattern": { "value": "geometric", "confidence": 0.8, "evidence": "photo" },
      "size": ["Seat height 44 cm", "width 78 cm"]
    },
    "to_verify": ["Exact fabric composition", "Total height and depth dimensions", "Weight capacity"],
    "photos": [
      {
        "index": 1,
        "width": 1280,
        "height": 851,
        "background": "white",
        "white_background": true,
        "product_fill": 0.95,
        "amazon_main_image": true,
        "issues": []
      }
    ]
  }
}

Three things to notice. The dimensions and "ships assembled" come from the notes, and the photo never claims them. The fabric was judged from the look (evidence: photo, 0.5), so the title, bullets and description all say "fabric-look", never a composition. And search_terms holds 92 bytes with no word of the title, as Amazon's backend keywords should.

The photo report is measured on the pixels, not guessed: the border is white if 97 % of its pixels are at 248 or above, and product_fill is the share of the frame the product's bounding box covers. With a long side of 1,000 px or more and no added text, props or blur, amazon_main_image is true.

With curl:

Terminal
curl -X POST "https://product-photo-to-listing-ai-tags-descriptions.p.rapidapi.com/v1/product-listing/listing" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: product-photo-to-listing-ai-tags-descriptions.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"image_urls": ["https://upload.wikimedia.org/wikipedia/commons/4/46/Sillon_Aloha.JPG"], "marketplace": "etsy"}'

Second-hand listings: condition and defects for eBay

Resale is where invented praise hurts most. A worn pair of shoes, photographed once, sent with "marketplace": "ebay" and nothing else:

JSON
{
  "listing": {
    "title": "GEOX Unisex Athletic Sneakers Dark Grey Red Hook and Loop Used Condition",
    "bullets": [
      "Brand: GEOX",
      "Colour: Dark grey with red accents",
      "Closure: Hook and loop straps",
      "Condition: Used with heavy wear and damage",
      "Defects: Torn upper material, side separation, dirt and scuffs"
    ],
    "limits": { "title": 80, "bullet": 250, "description": 4000 }
  },
  "product": {
    "category": { "id": "aa-8-8", "name": "Sneakers", "google_id": "187", "confidence": 1.0 },
    "brand": { "name": "GEOX", "evidence": "label" },
    "visible_text": ["GEOX"],
    "attributes": {
      "condition": { "value": "used", "confidence": 1.0, "evidence": "photo" },
      "defects": [
        "heavily worn and torn upper material on both shoes",
        "large tear and separation on the side of the bottom shoe",
        "dirt and scuffs throughout"
      ]
    },
    "to_verify": ["exact material composition", "exact size", "wearability"]
  }
}

The brand is there because "GEOX" is printed on the shoes (evidence: label), not because the model recognised a shape. Each defect seen on the photo becomes a bullet and a paragraph of the description. description_html is built by code from the same text, ready for the eBay description field:

JSON
{
  "description_html": "<p>These pre-owned GEOX sneakers feature a dark grey exterior with red detailing. The shoes are designed with a hook and loop closure system for adjustment. They are suitable for casual or athletic wear throughout the seasons.</p><ul><li>Brand: GEOX</li><li>Colour: Dark grey with red accents</li>...</ul><p>Please note that these sneakers are heavily worn and show significant signs of damage. ...</p>"
}

/tag (7 credits) returns the same product part without the listing. Both endpoints share one analysis of the same photos, so tagging first and writing the listing later gives the same category, attributes and defects.

The opposite case matters as much. A perfume bottle whose engraved logo cannot be read comes back as "Perfumes & Colognes" with no brand at all, and to_verify lists "brand and fragrance name" and "whether the bottle is empty or contains liquid". The photo report adds "Other objects in the frame", so it is not an Amazon main image.

Etsy listings in French, with 13 tags

language takes any language name or code (French, de, pt-BR). Two photos of a vintage tooled handbag, "marketplace": "etsy", "language": "French":

JSON
{
  "listing": {
    "language": "French",
    "title": "Sac à main rectangulaire structuré bleu et rouge avec détails dorés ornementaux",
    "bullets": [
      "Sac à main de forme rectangulaire structurée",
      "Panneaux extérieurs aux tons bleu et rouge",
      "Détails ornementaux dorés avec motifs de volutes",
      "Fermeture par rabat avec patte de maintien",
      "Présence de légères rayures de surface sur les panneaux aspect cuir"
    ],
    "tags": [
      "sac a main", "sac vintage", "sac rectangulaire", "sac bleu", "sac rouge",
      "sac ornemental", "sac a rabat", "sac aspect cuir", "sac dore", "accessoire femme",
      "sac structure", "sac formel", "sac antique"
    ],
    "alt_texts": [
      { "photo": 1, "text": "Vue de trois-quarts avant d'un sac rectangulaire bleu et rouge avec des détails dorés." },
      { "photo": 2, "text": "Vue de trois-quarts arrière du sac montrant les panneaux colorés et la structure." }
    ],
    "limits": { "title": 140, "tags": 13, "tag_length": 20 }
  },
  "product": {
    "category": { "id": "aa-5-4", "name": "Handbags", "google_id": "3032", "confidence": 0.95 },
    "attributes": {
      "material": { "value": "leather", "confidence": 0.6, "evidence": "photo" },
      "condition": { "value": "used", "confidence": 0.7, "evidence": "photo" },
      "defects": ["light surface scratches on the leather-look panels"]
    },
    "photos": [
      { "index": 1, "width": 850, "height": 900, "amazon_main_image": false, "issues": ["Under 1000 px on the long side: no zoom on Amazon"] }
    ]
  }
}

Exactly 13 tags, none over 20 characters, made only of the letters, digits, spaces, hyphens and apostrophes Etsy accepts (code strips anything else), and one alt text per photo for accessibility and image search. Leather was only judged from the look, so every field says "aspect cuir" (leather-look), in the bullets, the tags and the description alike; the same rule holds in the other languages the writer was tested in.

Map products to Shopify and Google product categories

Every category comes with the Shopify id (id, and gid in the form Shopify's Admin API uses) and the Google product category (google_id, google_path) from the mapping table Shopify publishes. That is the value Google Merchant Center expects in google_product_category. To pick a category by hand, GET /v1/product-listing/categories searches the taxonomy without AI for 1 credit:

Python
r = requests.get(
    f"{API}/v1/product-listing/categories",
    headers=HEADERS,
    params={"q": "sneakers", "limit": 3},
    timeout=30,
)
for cat in r.json()["results"]:
    print(cat["id"], cat["path"], "| Google:", cat["google_id"])
JSON
{
  "query": "sneakers",
  "count": 3,
  "results": [
    { "id": "aa-8-8", "name": "Sneakers", "path": "Apparel & Accessories > Shoes > Sneakers", "google_id": "187", "google_path": "Apparel & Accessories > Shoes", "score": 15.55 },
    { "id": "aa-1-18-10", "name": "Sneaker Socks", "path": "Apparel & Accessories > Clothing > Socks > Sneaker Socks", "google_id": "209", "score": 15.13 },
    { "id": "sg-1-9-2-3", "name": "Dance Sneakers", "path": "Sporting Goods > Athletics > Dancing > Dancing Shoes > Dance Sneakers", "google_id": "187", "score": 14.7 }
  ],
  "taxonomy": "Shopify Standard Product Taxonomy 2026-11"
}

The Shopify taxonomy is finer than Google's (64,000+ categories against about 5,500), so several Shopify categories share one Google id, as Sneakers and Dance Sneakers do here.

Generate listings for a whole catalogue

A products.csv with sku, photos (URLs separated by |) and notes goes in; a CSV ready for review comes out. Rows with something to verify, a warning, or photos of different products are flagged. 400 errors (no product visible, unreadable photo) are recorded and not billed; 503s are retried.

Python
import csv
import time

MARKETPLACE = "etsy"


def write_listing(photos: list[str], notes: str, attempts: int = 3) -> dict:
    payload = {"image_urls": photos, "marketplace": MARKETPLACE}
    if notes:
        payload["notes"] = notes
    for attempt in range(attempts):
        r = requests.post(
            f"{API}/v1/product-listing/listing",
            headers=HEADERS,
            json=payload,
            timeout=90,
        )
        if r.status_code != 503:
            break
        time.sleep(5 * 2**attempt)  # AI busy: not billed, try again
    if r.status_code == 400:
        return r.json()  # not a product, bad photo: not billed
    r.raise_for_status()
    return r.json()


with (
    open("products.csv", newline="", encoding="utf-8") as src,
    open("listings.csv", "w", newline="", encoding="utf-8") as out,
):
    writer = csv.writer(out)
    writer.writerow(["sku", "title", "tags", "category", "google", "check", "status"])
    for row in csv.DictReader(src):
        data = write_listing(row["photos"].split("|"), row.get("notes") or "")
        if "error" in data:
            writer.writerow([row["sku"], "", "", "", "", "", data["error"]["code"]])
            continue
        listing, product = data["listing"], data["product"]
        check = product["to_verify"] + product["warnings"]
        if not product["same_product"]:
            check.append("photos show different products")
        writer.writerow(
            [
                row["sku"],
                listing["title"],
                ", ".join(listing["tags"]),
                product["category"]["id"],
                product["category"]["google_id"],
                " | ".join(check),
                "REVIEW" if check else "ok",
            ]
        )

A landscape photo sent by mistake comes back as 400 not_a_product ("No product to sell could be seen in the photos. Send photos of one physical product."), billed 0. If your catalogue already lives in a store, the Shopify scraper API returns its photos and titles ready for this loop, and the same photos and titles feed the HS code lookup API when you ship abroad.

Cost and speed

A full listing uses 10 credits, tags only (POST /v1/product-listing/tag, the product part without the listing) 7, a category search 1. The free BASIC plan gives 20 credits a day, two listings. PRO is $4.99 a month for 3,500 credits, about $0.014 per listing or $0.010 per tagging; ULTRA gives 11,000 credits for $14.99 and MEGA 37,000 for $49.99. For comparison, API4AI's Fashion API on RapidAPI charges $0.30 per image for clothing labels only, and the text-only description generators we found charge $0.02 to $0.033. Plans are on the Product Photo to Listing page, parameters in the API reference.

The calls in this article took 4.5 to 8.7 seconds; four large photos take up to about 15. Photos can also be uploaded as multipart (/listing/upload, /tag/upload, the field file repeated, 10 MB each).

What the product description generator does not do

  • A photo is not a spec sheet. Sizes, capacities, compositions and certifications come from your notes; to_verify lists what to check before you publish.
  • One product per call. Photos of different items set same_product to false with a warning; a photo of several products is described by the most prominent one.
  • Some categories are debatable. For containers and sets (a perfume or its bottle) more than one category can be defended; alternatives lists the other candidates. The worn GEOX shoes, for example, came back as "Sneakers" with "Athletic Shoes" as the first alternative.
  • The writer is careful, not infallible. Materials judged from a photo are written as a look ("fabric-look", "aspect cuir") and banned promises are filtered, but a listing is still generated text: proofread it, above all in languages you do not read.
  • Category search matches words, not meaning. It ranks taxonomy names that contain your head noun: "running shoes" returns "Triathlon Running Shoes" first, then "Shoes" and "Athletic Shoes", because the taxonomy has no plain "Running Shoes" category. Search with the words of the category you want ("sneakers", "athletic shoes").
  • No image editing and no publishing. It does not remove backgrounds or post to Amazon, Etsy or eBay; it returns the text and the ids your integration sends.

Frequently asked questions

Can AI write product descriptions from photos?

Yes, if the model that writes is not the one that looks. Here a vision step reports what the photos show, with the source of each fact, and a separate writer turns that report and your notes into a listing without seeing the photos, so it cannot describe what is not there.

Will the API name the brand of my product?

Only when the name is printed on the product, a label or the packaging, a logo is visible, or you pass brand. If the brand you give differs from the one printed, warnings says so.

Which marketplace limits are enforced?

Amazon (title 200 characters, bullets 500, backend search terms 249 bytes without title words), eBay (title 80), Etsy (title 140, 13 tags of 20 characters), Shopify (20 tags) and a generic store or Google Merchant feed (title 150). Texts are cut at a word boundary in code.

How do I get the Google product category for Merchant Center?

Every response carries google_id and google_path next to the Shopify category, from the mapping Shopify publishes. Put google_id in your feed's google_product_category column.

Which languages can the listings be written in?

Any language the model writes; it was tested in English, French, German, Spanish, Italian, Portuguese, Dutch and Japanese. Text read on the product stays as printed.

Get started

Product Photo to Listing API

Product photos to category, attributes, defects and a full listing for Amazon, Etsy or eBay.

  • Ecommerce
  • Product Content
  • Computer Vision
  • Python
  • LLM