DEV Community

Cover image for A SKU-First Prompt Architecture for AI Product Image Enhancement
yang rui
yang rui

Posted on

A SKU-First Prompt Architecture for AI Product Image Enhancement

Most AI image enhancement tutorials focus on making things pretty. This post takes the opposite approach: how to make things provably accurate before worrying about aesthetics.
The Core Problem
AI image enhancers hallucinate. They add zipper pulls that don't exist, smooth out fabric weaves into plastic, rewrite label text, shift colors across variant boundaries. For a product listing, each hallucination is a potential return.

The Architecture: Lock, Enhance, QA
Stage 1: Lock Product Facts (Before Enhancement)
Define a SKU constraint block. These facts must survive any enhancement pass:
SKU_LOCK {
lid_shape: flat_cap_with_flip_straw
mouth_diameter: 45mm
handle: integrated_top_loop
coating: matte_powder_olive_green
body_band: silicone_bottom_sleeve
scale: 10.5in_height_3.8in_diameter
included: 1_straw_1_lid_1_cleaning_brush
}
Stage 2: Write the Enhancement Prompt

Create a close-up product detail image from the provided bottle reference. Preserve the exact lid shape, straw opening, handle position, olive green body color, bottom band, coating texture, and included straw. Improve edge clarity and material readability. Do not add new accessories, logos, labels, ports, buttons, condensation, measurement marks, or alternate lid designs.
Notice the structure: preserve list first, then improve, then forbid. Style adjectives are absent. The job is clarity, not creative direction.
Stage 3: Run the QA Pipeline

Check Pass Condition
Shape Silhouette matches source
Color Within approved product color range
Parts No invented ports, lids, labels, badges
Label Text placement and blocks match real item
Clarity Target feature reads faster at listing size
Claims Visual proof matches bullets and packaging
Mobile Thumbnail still communicates the point

One failure = image rejected.

Enhancement vs. Regeneration: A Decision Matrix
if source_has(label && texture && correct_angle):
enhance() # Real information exists, just soft
elif source_misses(feature || color || hardware):
regenerate_or_reshoot() # Can't show hidden sides
elif gallery_lacks(scene || angle || reference):
generate_supporting_image() # Coverage, not clarity
Why This Matters
A compressed 45KB supplier JPG with correct product facts is a better starting point than a crisp AI output with hallucinated details.
— — —
Full workflow with prompt templates: https://loomadesign.ai/en/blog/ai-product-image-enhancer-sku-detail-qa

Top comments (0)