← All prompting guides

Image modelsUpdated

ERNIE Image prompting guide (ERNIE Image and ERNIE Image Turbo)

ERNIE-Image is Baidu's open text to image model: an 8 billion parameter diffusion transformer that reads prompts through a small Ministral 3B language model and decodes with the FLUX.2 VAE. Baidu position it on "complex instruction following, text rendering, and structured image generation": posters, comics, storyboards, multi-panel layouts, UI screenshots and infographics with real wording, in English and Chinese, alongside realistic photography and stylised looks.

SimpliGen has two presets:

  • ERNIE Image: Baidu's SFT model, 20 steps at CFG 4 (Baidu's reference is 50 steps).
  • ERNIE Image Turbo: the DMD and RL distilled model, 8 steps at CFG 1, tuned by Baidu for "faster speed and higher aesthetics".

Both read prompts the same way.

In short

  • Write the long, detailed description yourself: SimpliGen does not run Baidu's Prompt Enhancer, so a short prompt gives a generic image.
  • For a scene, give the medium and camera position, the subject placed in the frame, the surroundings, the light, then palette and atmosphere.
  • For a poster, slide, UI or infographic, give the layout first (blocks, rows, columns), then every text element in quotes with its position, size and font.
  • Keep important attributes short and attached to the right object; long chains of adjectives blur which object has which colour.
  • Never paraphrase or use placeholder text. On Turbo the negative prompt does nothing.

How this model reads a prompt

Baidu pair ERNIE-Image with a Prompt Enhancer (PE), a separate lightweight language model that "expands brief user inputs into richer structured descriptions" before generation. Its instruction (in Chinese) is to take the user's short image description and the target resolution and expand it into "a rich, detailed visual description" for the image model, outputting only the description. Baidu's showcase prompts and the model card example read like that expanded form: long, concrete and structured.

SimpliGen does not run the Prompt Enhancer. Your text goes to the model as written. So write the expanded description yourself: that is what the model is used to receiving.

Baidu's benchmarks show one subtlety. The enhancer helps overall quality and reasoning, but with it ERNIE-Image scores lower on attribute binding (which colour or material goes with which object: 0.79 without, 0.72 with). Flowery expansion can blur exact attributes. So expand the scene, but keep every attribute you care about stated plainly and attached to the right object.

The model card's example shows the expanded style well. It reads like a careful description of an existing photo:

This is a photograph depicting an urban street scene. Shot at eye level, it shows a covered pedestrian or commercial street. Slightly below the center of the frame, a cyclist rides away from the camera toward the background, appearing as a dark silhouette against backlighting with indistinct details. The ground is paved with regular square tiles... Light streams in diagonally from the right side of the frame, creating a strong backlight effect... The overall color palette is warm, dominated by golden yellows and dark browns, evoking the atmosphere of dusk or early morning.

Note what it does: it states the medium first ("This is a photograph depicting"), gives the camera position, places the subject relative to the frame ("slightly below the center"), describes surfaces, then the direction and quality of light, then secondary figures, then palette and atmosphere.

What ERNIE-Image responds to particularly well:

  • Layouts with explicit structure. Baidu's showcase prompts specify grids ("a 4 row by 6 column grid", even uneven rows such as 7-7-6-6), browser screenshots down to the tab title and address bar, and infographics divided into left, centre and right blocks.
  • Lots of exact text. A showcase web page carries a title, subtitle, two section headings, two paragraphs of body text and a bullet list, all spelled out. Baidu put each text in quotes and say where it sits and how it looks.
  • Mixed English and Chinese text. Several showcases describe the scene in Chinese with English text inside the image, or Chinese titles with English subtitles.
  • Photographic mood words used precisely. One showcase asks for "high-key lighting, low contrast", soft slight overexposure, cool blue-green shadows and fine film grain, and gets exactly that Japanese minimal look.

Structure and length

For a photograph or scene:

  1. Medium and shot: "This is a photograph of", "A cinematic film still of", "A flat vector illustration of"; then the camera position ("shot at eye level", "from a low angle", "an aerial view").
  2. Main subject, placed in the frame ("in the center", "in the lower left third").
  3. Surroundings and surfaces, front to back.
  4. Light: direction, quality, effects ("light streams in diagonally from the right, casting long shadows").
  5. Secondary elements and people.
  6. Palette and atmosphere last.

For a designed image (poster, slide, infographic, UI, sticker sheet):

  1. What it is and its overall style and background: "A wide educational infographic on a dark blue background with a faint geometric grid, modern 3D render style."
  2. The layout skeleton: blocks, columns, rows, grid size and count.
  3. Each text element in quotes, with position, size, weight, colour and font family ("bold rounded display font", "sans-serif", "handwritten").
  4. The content of each block or cell, in reading order.
  5. A closing line on overall finish: "balanced composition, clear hierarchy, all text sharp and legible without overlap."

Length: Baidu's photo example is about 170 words; their design showcases run to several hundred words, because every piece of text and every grid cell is written out. Simple images can be 60 to 120 words. ERNIE handles long prompts well, so length is not the constraint: clarity is.

Quoting: Baidu's showcases use single quotes ('Introduction to LLMs') and double quotes both. Either works; be consistent, and never paraphrase the text inside.

Language: English and Chinese both work, and you can mix them. When the image contains Chinese text, it often helps to write the whole prompt in Chinese, as Baidu do.

Sizes: Baidu recommend 1024 x 1024, 1264 x 848, 1376 x 768, 1200 x 896 and their portrait versions. SimpliGen's sizes are close (1024 x 1024, 1344 x 768 at 16:9). The Prompt Enhancer is told the target resolution; since it is not running, say the format in words when layout depends on it ("a wide 16:9 slide", "a tall vertical poster").

What SimpliGen adds: both presets append ". high quality, detailed, sharp focus." to your text. You do not need to write it.

Dialogue and audio

ERNIE-Image makes still images, so there is no sound. It is good at speech as visible text: comic panels and sticker sheets with a caption beside each character are among Baidu's showcases. Quote each line exactly and say where its bubble or caption sits.

Negative prompts

  • ERNIE Image runs real CFG 4, so a negative prompt is active. SimpliGen leaves it empty by default, and Baidu publish no recommended negative. If you need one, keep it to visible defects: blurry, low resolution, garbled text, extra fingers, watermark, jpeg artifacts.
  • ERNIE Image Turbo runs at CFG 1 and its workflow zeroes the negative conditioning. Anything in the negative field does nothing.

On both, describe what you want instead of listing what you do not: "a plain light beige background", "the sign carries only the words given", "an empty street".

Characters and identity

  • Describe people as the model card describes its street scene: as visible facts. Approximate age, gender, build, hair, clothing with colours, pose, and where they are in the frame.
  • Give expressions and actions concretely: "her mouth slightly open, gazing upward as if drawn by something off-screen" is the level of detail Baidu's showcases use.
  • For one character repeated across panels (a sticker sheet, a comic), describe the character once in full at the start ("all stickers show the same girl: light pink short hair with straight bangs, white cat-ear headband with a red bow, blue and white sailor uniform"), then give each panel only its expression, action and caption.
  • To reuse a character across separate images, repeat the same description word for word.
  • The ERNIE presets can also make the base portrait in SimpliGen's Character Studio; there the builder writes the description for you.

Common mistakes

  • Short prompts with the enhancer's job undone. "A girl at the beach" gives a generic image, because the expansion step is not running. Write the expansion.
  • Paraphrased or placeholder text. "A web page about AI with some paragraphs" gives filler. Write every heading and sentence.
  • Vague layouts. "Several icons" becomes a guess; "five icons in one row, evenly spaced" is followed.
  • Over-decorated attributes. Long chains of adjectives blur which object has which colour. Keep the important attributes short and attached to their object.
  • Negatives on Turbo. Ignored.
  • Tiny text at 1 megapixel. Dense body text renders, but keep the smallest text a reasonable size for the canvas.

Examples

Photograph in the model card's style

This is a photograph of a small harbour at dawn, shot at eye level from the end of a wooden pier. In the center of the frame, a red fishing boat with a white cabin is moored, its reflection stretched across calm, glassy water. Coiled ropes and two blue plastic crates sit on the weathered planks in the foreground, their textures clearly visible. Low sunlight comes from the left, catching thin mist over the water and outlining the boat's mast in gold. Behind it, a row of pastel houses climbs a green hillside, softly lit. The palette is cool blue and pale gold, quiet and fresh.

Browser screenshot with exact text

A screenshot of a desktop web page in a browser window. The tab reads 'Trail Notes'. The address bar shows 'https://www.trailnotes.app/routes'. A white navigation bar at the top has a green mountain logo with the text 'Trail Notes' on the left and three links on the right: 'Routes', 'Gear', 'About'. Below, a large bold dark grey heading reads 'Best Autumn Hikes in the Alps', with a lighter subtitle 'Six routes picked by our editors'. The lower half shows three cards side by side, each with a landscape photo, a bold title ('Lake Oeschinen', 'Seealpsee', 'Tre Cime') and a small grey line 'Moderate, 4 hours'. Clean, bright, modern layout; all text sharp.

Comic strip, four panels

A four-panel comic strip in a clean webcomic style with thick black outlines and flat pastel colours, panels arranged left to right. All panels show the same small orange cat with a white chest and a blue collar. Panel 1: the cat stares at a full food bowl, caption 'Breakfast!'. Panel 2: the cat sniffs the bowl suspiciously, caption 'Wait...'. Panel 3: the cat turns its back on the bowl, caption 'Not this brand.'. Panel 4: the cat eats from a houseplant pot instead, caption 'Much better.'. Each caption sits in a white rounded box at the top of its panel.

Infographic in Chinese

一张横版科普信息图,深蓝色背景,带浅蓝色细网格纹理,现代扁平插画风格。顶部居中是白色粗体大标题'水的循环',下方是浅蓝色副标题'The Water Cycle'。画面从左到右分为四个步骤,用黄色箭头连接:太阳照射海面,配文'蒸发';云朵形成,配文'凝结';云中降雨,配文'降水';雨水流入河流回到大海,配文'汇流'。每个步骤下方有一行白色小字说明。整体排版清晰,文字锐利,无重叠。

Japanese minimal summer photo

A quiet corner of a Japanese neighbourhood park on a summer afternoon: a stone bench in the shade of trees holds a clear glass goldfish bowl, a pair of sunglasses, a bamboo coaster and a folded white parasol. Purple-blue hydrangeas crowd beside the bench. In the soft background, a sunflower field and a glimpse of a pale blue public pool. Japanese minimalist photography: airy, fresh, pale colours, soft and slightly overexposed light with cool blue-green shadows, high-key lighting, low contrast, clean composition, fine film grain.

Sticker sheet grid

A sheet of 12 cute chibi stickers on a pure white background, arranged in a 3 row by 4 column grid. Every sticker shows the same character: a round-faced boy with messy black hair, big brown eyes, a yellow hoodie with a small cloud logo. Row 1: waving with a smile, caption 'Hi!'; yawning, caption 'Sleepy'; thumbs up, caption 'Nice'; confused with a question mark, caption 'Huh?'. Row 2: crying waterfall tears, caption 'Nooo'; laughing on the floor, caption 'LOL'; holding a coffee, caption 'Need coffee'; blushing, caption 'Thanks'. Row 3: running, caption 'Late!'; hiding behind a pillow, caption 'Nope'; cheering with confetti, caption 'Yay!'; bowing, caption 'Sorry'. Each caption in bold hand-lettered text with a white outline.

Sources