ERNIE Image
Baidu's 8B open-weight text-to-image model, the 50-step SFT release of ERNIE-Image. Its strength is images that carry a lot of text, such as posters, infographics and multi-panel comics.
Overview
ERNIE Image (ERNIE-Image in Baidu's spelling) is an open-weight text-to-image model from Baidu. It pairs an 8-billion-parameter single-stream Diffusion Transformer with a lightweight Prompt Enhancer that expands short prompts into structured descriptions. This page runs the SFT checkpoint, Baidu's stronger release for general use and instruction fidelity.
Baidu lists text rendering among its strengths, alongside instruction following and structured layouts, and says it does particularly well on long, dense text placed in a specific part of the layout. With the enhancer, Baidu reports a GenEval score of 0.8728, ahead of every other model in its table, and a LongText-Bench average over English and Chinese of 0.9733, second only to Seedream 4.5.
Choosing a variant: ERNIE Image Turbo is the lighter, distilled checkpoint, run at 8 steps with guidance 1.0. With the enhancer on both, it scores below this model on all four of Baidu's benchmark tables, and its clearest GenEval gaps are in position and colors, so stay here when objects must land where the prompt puts them.
What you can build
- Posters and ads that combine a headline with body copy and small print.
- Infographics and educational posters. A showcase prompt from Baidu asks for a 26-cell "Alphabet of Careers" grid with a letter, a cartoon child in work clothes and a job name in each cell.
- Mock screenshots of web pages, with the tab title and navigation links written out in the prompt.
- Comics, storyboards and sticker sheets laid out as panels or grids.
- Photographs, such as the backlit cyclist on a covered walkway and the grey tabby on a windowsill in the samples.
Inputs
Only the prompt is required. It opens with the street-scene description from Baidu's model card, a fair guide to the detail Baidu puts into prompts. Baidu evaluates in English and Chinese.
Under advanced settings you can add a negative prompt, change steps (50 by default, 1 to 100) and guidance (4.0, range 0 to 20), ask for up to 4 images, set width and height (848 by 1264 by default, up to 2048) and fix a seed. The Prompt Enhancer runs on every request here, even if you untick its checkbox. It receives the target size along with your prompt, so its rewrite fits the frame.
Outputs
One to four images per run at the size you set. There is no image input, so the model cannot edit an existing photo.
Recommended settings
- Baidu's values are 50 steps and guidance 4.0, the defaults here.
- Baidu recommends 1024x1024, 848x1264, 1264x848, 768x1376, 1376x768, 896x1200 and 1200x896. A width or height that is not a multiple of 16 is rounded down to the nearest multiple of 16 before generation.
- Put text that must appear in quotes and say where it goes, as Baidu's showcase prompts do.
- Baidu's numbers show the enhancer raising OneIG-EN reasoning (0.2950 to 0.3566) and diversity (0.1687 to 0.2411), while GenEval and OneIG-EN alignment come out slightly lower with it.
Limitations
- With the enhancer, attribute binding (0.7225) is the weakest GenEval category in Baidu's table, followed by counting (0.8187).
- Lettering the prompt does not spell out is left to the model. The samurai sample asked for a rainy neon street with shallow depth of field and named no words, and its background signs are blurred past reading.
Safety & compliance
Baidu releases the weights under the Apache 2.0 license, which allows commercial use.
API quick start
Run ERNIE-Image with a single API call.
{
"prompt": "This is a photograph depicting an urban s…",
"negativePrompt": "...",
"steps": 50,
"scale": 4.0
}curl -X POST "https://api.wiro.ai/v1/Run/baidu/ernie-image" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"prompt": "This is a photograph depicting an urban s…",
"negativePrompt": "...",
"steps": 50,
"scale": 4.0
}
JSONOther models you might like
Explore similar image generation models.



