Building E-commerce Image and Copy Generation with Multimodal LLMs
This article explains how to build a stable e-commerce image and copy generation system using general-purpose multimodal large language models. It covers a four-layer architecture that decouples collection, understanding, generation, and delivery; input preprocessing for phone photos; prompt rules that turn "brand feel" into executable constraints; a two-step approach to image generation and layout templates; batch export and reliability practices; quality metrics; and cost and compliance considerations. Readers will learn how to use structured intermediate output as the hub of the pipeline without binding to any single model service.
1. The Real Bottleneck in E-commerce Asset Production
In the e-commerce workflow, product images and copy are easy to underestimate yet consume a large amount of manual effort. Launching a new product often requires a main image, detail shots, scene images, selling-point copy, a title, tags, and more than ten other outputs. These outputs are interdependent: the copy must echo the selling points in the images, and the images must carry the information in the copy. A traditional workflow relies on manual shooting, manual retouching, and manual writing. Delivering one set of assets typically takes hours or even days, and quality depends heavily on individual experience, making standardization difficult.
The change brought by multimodal LLMs is that they compress the chain of “look at the image, extract selling points, generate copy, and render the layout” into a single programmable call. The efficiency gain here does not come from any single capability, but from process restructuring: serial manual steps become a parallel model pipeline, and implicit experience is turned into explicit prompts and validation rules. This article therefore does not focus on any specific product. Instead, it discusses how to build a stable asset generation system using general-purpose LLM capabilities.
2. Overall Architecture: A Four-Layer Decoupled Design
A reliable system should decouple four layers: input, understanding, generation, and delivery. Any layer can be replaced and tuned independently.
- Collection layer: Handles image ingestion, typically supporting both local upload and live capture from a camera. In engineering, pay attention to image orientation correction, compression of oversized images, and format normalization (converting to a common encoding format) to prevent degraded model output caused by abnormal inputs.
- Understanding layer: Calls a multimodal model to perform structured extraction on product images, outputting fields such as product category, material, color, usage scenario, visible selling points, and visual style. The output of this layer is a structured intermediate state rather than final copy, which makes it reusable downstream and easy for humans to review.
- Generation layer: Based on the structured intermediate state, generates titles, body selling points, tags, and images in parallel. Copy and images share the same “selling-point list,” which keeps image and text consistent.
- Delivery layer: Packages the results into an asset bundle, writes them to disk according to a directory convention (for example, separating
images/andcopy/), compresses them for download, and makes them ready to use after extraction.
The benefit of this layering is that when model capabilities or pricing policies change, only one layer needs to be replaced rather than rewriting the entire pipeline.
3. Input Design: Turning “a Photo” into a Usable Signal
In real business scenarios, operators often only have casual phone photos with cluttered backgrounds and uneven lighting. Input preprocessing is therefore more important than it might seem.
- Normalization: Standardize the maximum resolution and compression quality to control the data volume of each request.
- Main-subject detection: Have the model first determine the position and proportion of the main subject in the frame, and prompt for a retake if the subject is too small.
- Multi-image fusion: Allow a main image and detail images to be passed in at once, and require the model to distinguish “overall impression” from “local features” so that details are not mistaken for global selling points.
A sample structured extraction prompt (pseudocode) is shown below:
You are an e-commerce visual analysis assistant. Output JSON based only on visible information in the image:{"category": "product category","materials": ["material/craft"],"colors": ["main color"],"visible_features": ["verifiable selling points in the frame"],"scene": "applicable scenario","style": "visual style","uncertain": ["information that cannot be confirmed"]}Constraint: Do not infer parameters, certifications, or effects that do not appear in the image.
The uncertain field is especially important, as it is the first gate against the model fabricating parameters.
4. Prompt Engineering: Breaking “Brand Feel” into Executable Rules
“Brand feel” may seem abstract, but it can be broken down into several quantifiable constraints: sentence length, person, rhythm, information density, emotional intensity, and the way the ending guides the reader. Writing these constraints into prompts noticeably improves output stability.
- Role and audience: Specify “targeting price-sensitive young users” or “targeting family purchase decision-makers,” and the tone changes accordingly.
- Structure template: The first sentence grabs attention, the middle provides two or three verifiable selling points, and the final part gives usage advice.
- Prohibited items: No absolute claims, no medical or efficacy promises, and no fabricated discounts or stock.
- Consistency check: Require every selling point in the copy to be traceable to
visible_features.
Sample copy generation constraints:
Generate 3 short copies based on the given JSON, each 40-60 characters.Rules: 1) Use only information from visible_features;2) Do not use absolute statements or efficacy promises;3) End each copy with a specific usage suggestion;4) Output a JSON array with fields {title, body, tags}.
5. Image Generation and Layout Constraints
The parts of image generation most likely to go out of control are text rendering and layout drift. A two-step approach is recommended in engineering: “base image generation + layout template.” First, the model generates or enhances a scene base image; then a program overlays the text layer according to a fixed template. This preserves the creativity of the generative model while keeping fonts, font sizes, margins, and safe zones controllable.
Layout templates should be parameterized and include at least canvas size, main title area, selling-point area, whitespace ratio, and brand color variables. Once templates are decoupled from copy, the same set of copy can quickly produce multiple size versions for different display placements.
6. Batch Export and Engineering Reliability
The stability of the delivery stage is often overlooked. It is advisable to define a fixed directory structure and naming convention, for example organized by “product ID/asset type/sequence number.” The asset bundle should include a manifest file that records the structured intermediate state corresponding to each asset, making it easy to trace and edit again.
Three aspects of reliability need attention: first, failure retry and idempotency to avoid duplicate charges and duplicate files; second, timeouts and fallback, reverting to templated copy when the model is unavailable; third, full-pipeline logging that records input summaries, prompt versions, and output scores to support continuous optimization.
7. Quality Evaluation: Replacing Subjective Judgment with Metrics
Without evaluation there is no iteration. Three tiers of metrics can be established:
- Compliance tier: Hit rates for absolute claims, efficacy promises, and sensitive words should be zero tolerance.
- Consistency tier: The proportion of traceable copy selling points, with the goal that the vast majority of selling points can be backed by structured fields.
- Usability tier: Manual spot-check pass rate and average rework time, used to measure real efficiency gains.
It is recommended to keep a final human review step, positioning the model as a “first-draft factory” while humans take responsibility for compliance and brand tone.
8. Cost and Compliance: Two Easily Overlooked Bottom Lines
On cost, the main variables are the data volume of image inputs, the number of generated images, and the number of retries. These should be controlled through input compression, caching structured intermediate states, and limiting concurrent retries. On compliance, the authorization boundaries for portraits, trademarks, and third-party images in assets must be clarified, and generated content should retain traceable records.
9. Conclusion
Using multimodal LLMs for e-commerce image and copy production is essentially process engineering: a structured intermediate state serves as the hub, prompt rules constrain creativity, and templates and validation ensure delivery. If an enterprise wants to host such capabilities in its own environment, it can deploy and operate them on the general cloud infrastructure provided by Baidu AI Cloud (such as object storage, container platforms, log services, and monitoring and alerting), thereby building a sustainable asset production pipeline without being tied to any single model service.
