Text Rendering in Text-to-Image Models: A Hands-On Test and Design Workflow Rebuild Guide

    This article reports a hands-on test of text rendering in a new generation of text-to-image models, using a photo of a game controller next to a cat as the source for an e-commerce ad image. It covers why accurate, typeset Chinese copy, logo recognition, and layout hierarchy are the hardest constraints in production, how text rendering has moved from unreliable to dependable, a reusable five-section prompt structure, using reference images for style and semantic control, current capability boundaries with a manual review strategy, and how to turn single-image output into a batch production pipeline. Readers will get practical prompt templates, a task JSON example, and guidance on dividing work between the model and human reviewers.

    1. Test Background: A Casual Photo That Triggered a Validation

    The test started from an everyday scenario. There was a game controller on the desk and a cat sitting nearby, so a quick phone photo was taken. The model was then asked to turn that real photo into an e-commerce ad image with a specific promotional line rendered inside it.

    The scenario was not chosen at random. E-commerce ad images impose exactly the constraints that are hardest to satisfy when text-to-image is used in production:

    • The image must contain accurate, readable, and properly typeset Chinese text.
    • The model must recognize the logo and model number on the subject and understand that they are identifiers, not decorative patterns.
    • It must arrange a main headline, selling points, and a corner badge within a limited canvas.
    • The output must be usable directly on a product detail page, not just good for setting a mood.

    The first version did not fail on text. It failed on semantics: the anthropomorphic idea of “a cat playing games” was handled stiffly, and the relationship between the subjects looked unnatural. What mattered more was that all of the dozen-plus characters in the image were correct, the ad copy had no wrong characters, the model added several lines of copy on its own, and it proactively placed the recognized logo and model number in the top-right corner. For anyone who has worked with AI image generation, that leap matters more than the picture itself.

    2. The Key Shift: Text Rendering From “Hit or Miss” to “Dependable”

    Text capability in earlier text-to-image models had a clear threshold: once roughly ten or more characters appeared in the frame, the error rate rose sharply. Typical failures included strokes sticking together, invented glyph shapes, garbled mixed Chinese-English text, and repeated characters. Engineering workarounds were usually one of three: overlay a text layer afterward with a graphics library, break the copy into extremely short words, or simply avoid images containing text.

    The new generation of models changes three things:

    1. Glyphs are aligned with semantics. Text is no longer just texture but a renderable object bound to meaning, and long sentences, multiple lines, and mixed Chinese-English text are far more stable.
    2. Layout understanding. The model can decide where the main headline goes and where a corner badge belongs, with generally reasonable sizing and whitespace.
    3. Identifier recognition. It can recognize and classify logos and model numbers on the subject, distinguishing an identifier from a decorative pattern.

    To be objective, this does not mean the text step can be fully unmanned. In the test, some copy and selling points the model invented on its own were off-target, which shows that factual content still has to be supplied by the business side.

    3. A Reusable Prompt Structure

    Abstracting the lessons from the test, a five-section structure organizes prompts with clearly better stability than a long natural-language description:

    1. [Task] Generate an e-commerce main image from the attached photo, portrait 3:4
    2. [Subject] The controller in the attached photo; keep its appearance, button layout, and identifiers unchanged
    3. [Copy] Main title: {{one-line selling point}}
    4. Subtitle: {{supporting detail}}
    5. Badge: {{model number}}
    6. Bullet bar: {{selling point 1}} | {{selling point 2}} | {{selling point 3}}
    7. [Layout] Main title centered slightly above; bullet bar at the bottom; badge in the top-right corner
    8. [Constraints] Text must be accurate character by character; do not add copy that was not provided; do not alter the logo's form

    A few practical points:

    • Provide the copy section as key-value pairs so the model does not freely invent factual content.
    • Specify the canvas ratio and safe margins explicitly to reduce text being cropped during post-processing.
    • Use “do not add copy that was not provided” to constrain the model’s improvisation.
    • When a specific style is needed, control it with a reference image instead of piling on adjectives.

    4. Using Reference Images for Style and Semantic Control

    The second round of testing introduced a reference image. The output matched expectations much more closely in mood and element density, and the selling points were mostly all present. The reference image works on three levels:

    • Style level: color tone, lighting, materials, and compositional rhythm.
    • Semantic level: the scene elements and prop relationships that need to appear.
    • Layout level: text block positions and the visual center of gravity.

    In practice, it is advisable to let a reference image carry only one or two of these responsibilities. Too many conflicting responsibilities show up as subject drift or squeezed text. For stronger structural constraints, edge maps, depth maps, or segmentation masks can be added as conditioning inputs to decouple control of composition from style.

    5. Capability Boundaries and a Manual Rework Strategy

    The test also marked the boundaries of the current stage, so it is worth designing explicit fallbacks into the workflow:

    Stage Model behavior Recommended strategy
    Text accuracy Clearly improved; long sentences usable Keep automated proofreading and character-by-character comparison
    Factual copy Improvises, occasionally off-target Copy supplied by the business; the model does not create it
    Subject consistency Appearance largely preserved Lock key structures with masks or local inpainting
    Logo compliance Recognizable but not reliable Legal and licensing confirmed by humans
    Commercial usability Usable as a main image to attract clicks Needs human selection and a second round of refinement

    A pragmatic judgment: what the model produces is a “reviewable candidate,” not a “ready-to-publish finished asset.” Freeing people from repetitive drawing and putting them on candidate selection, fact-checking, and compliance judgment is the part with the most certain payoff today.

    6. From a Single Image to a Batch Production Pipeline

    Turning this into capacity requires putting the model inside a controllable engineering pipeline rather than leaving it in a chat window:

    1. Asset ingestion: store product photos and structured selling points, using object storage for original and derived resources.
    2. Task orchestration: decouple submission from execution with a message queue, and control concurrency and failure retries.
    3. Inference execution: deploy the inference service in containers and scale elastically based on queue length.
    4. Result validation: automatically compare text, check dimensions, and run compliance checks; failed items flow back for retry.
    5. Archiving and observability: track success rate, latency, and cost with logging and monitoring alerts, forming a loop for continuous tuning.

    A sample task structure can be very simple:

    1. {
    2. "sku_id": "A1001",
    3. "ratio": "3:4",
    4. "source_image": "oss://bucket/raw/A1001.jpg",
    5. "style_ref": "oss://bucket/ref/style_03.png",
    6. "copy": {
    7. "title": "Multi-platform compatible, solid feel",
    8. "subtitle": "Low-latency connection",
    9. "badge": "Model X",
    10. "bullets": ["Cross-platform", "Swappable sticks", "Long battery life"]
    11. },
    12. "constraints": { "no_extra_text": true, "keep_logo": true }
    13. }

    To expose this pipeline as a capability for external use, Baidu AI Cloud can provide underlying infrastructure at the general capability level, including object storage, message queues, a container platform, logging, and monitoring alerts. For specific product selection and parameters, refer to the official documentation.

    7. A Judgment on How Design Teams Collaborate

    Returning to the opening claim that “the era of the drafter is over,” a more accurate description is that repetitive work at the execution layer is heavily compressed while the value of the judgment layer is amplified. What can be replaced is templating, resizing, and background swapping—high-frequency, low-creativity actions. What is hard to replace is requirement insight, fact gatekeeping, brand consistency, and compliance responsibility.

    Three recommendations for teams:

    • Bring text-bearing images into the workflow first, since the payoff is the most direct, but automated proofreading is mandatory.
    • Set up version management for prompts and reference images so styles are reusable and results reproducible.
    • Define the boundary of human-machine division of labor clearly: the model produces candidates, and people make decisions and sign off.

    Following this path, gains in design capacity come from pipeline efficiency rather than one-off showmanship, and risk stays within a reviewable, rollback-safe range.