TL;DR — one-command setup. Install comfyui-mcp, apply theerniepack (apply_manifest --path packs/ernie/manifest.yaml, or run the generatedinstall-windows.bat/install-runpod.sh), and drive the graph from your own Claude session via the Panel. Jump to Install.
What is ERNIE-Image?
ERNIE-Image (released April 15, 2026 by Baidu’s ERNIE-Image team) is an open-weight, single-stream Diffusion Transformer with about 8B DiT parameters. In ComfyUI it’s paired with a Ministral-3-3B text encoder and the Flux 2 VAE, plus an optional 3B Prompt Enhancer that auto-expands short prompts into richer descriptions. ComfyUI added day-0 support in April 2026. The license is the headline — and it’s genuinely permissive. ERNIE-Image ships under Apache-2.0, which allows commercial use, modification, and redistribution, full stop. That’s a real difference from Ideogram 4, which is open weight but under a Non-Commercial agreement (commercial use needs a paid license). With ERNIE you can put it in a product on day one. No gated download drama, no “for research only” footnote. There are two builds. ERNIE-Image (base) takes ~50 steps for peak quality. ERNIE-Image-Turbo is distilled (Distribution Matching Distillation + RL) and is high-fidelity in ~8 steps at cfg 1 — that’s the one the pack ships, and the one that fits under 8 GB.ERNIE-Image vs Ideogram 4 vs Z-Image
There’s no single “best” — pick by the job:
Where rivals win: Ideogram 4 gives you explicit
spatial control — draw bounding boxes, place text and objects by region — which
ERNIE doesn’t expose (you steer ERNIE with descriptive prose). Z-Image
is the speed king for fast general ideation. But ERNIE wins decisively on the two
axes that matter for production text work: a permissive license and clean
multilingual typography. Each of those models gets its own post in this series —
this one is ERNIE’s spotlight for commercial-safe, text-rich images.
System & VRAM requirements
The official non-quantized release targets a 24 GB card. The pack sidesteps that by shipping the Turbo GGUF, so you pick a quant to fit your GPU:
The Ministral-3-3B encoder and Flux 2 VAE add a few GB on top. The pack ships
Q8_0; if you’re tight on VRAM, edit the quant in the filename (e.g.
ernie-image-turbo-Q5_K_S.gguf) before installing. Running the bundled ERNIE↔Z-Image
combo pipelines loads two UNets, so budget for both or just run the single-model
ERNIE group.
Install ERNIE-Image in ComfyUI
The manual route works: update ComfyUI, install the GGUF + a handful of node packs, and drop the files into the right folders.
(Canonical weights live in the official Comfy-Org/ERNIE-Image HF repo, Apache-2.0,
with the same filenames as the third-party mirror.)
A real-world install gotcha
If you grab the popular third-party installer, beware: it’s contaminated with Z-Image leftovers. The upstream scripts are copy-pasted from a Z-Image pack — their headers literally say “Z-IMAGE-BASE” and they download Z-Image-only files (z_image_turbo-*.gguf, Qwen3-4B-*.gguf, ae.safetensors) that ERNIE never
uses. Pull those by mistake and you waste disk and end up wiring the wrong VAE.
The comfyui-mcp ernie pack excludes them — it installs only ERNIE’s actual
files (ernie-image-turbo, ministral-3-3b, flux2-vae, and the optional enhancer).
The fast way — comfyui-mcp + the Panel
Untangling that installer by hand is exactly the busywork the comfyui-mcpernie pack removes. One
declarative manifest installs the custom nodes (ComfyUI-GGUF, rgthree, KJNodes,
essentials, RES4LYF, and friends) and pulls every model to the correct folder —
ERNIE-only, no Z-Image cruft — and the same manifest drives both an MCP-native
install and the generated double-click scripts:
packs/ernie/workflow.json. Because the pack ships with the
plugin, your own Claude session can drive the live graph through the
Panel — add/wire nodes, set widgets, and iterate on prompts
conversationally, with full Ctrl+Z undo and no extra API keys. Every model URL in
the pack is CI-validated for reachability and size, so a link never quietly rots
(here’s why that matters).
Why text and layout are its superpower
This is the part that holds up to scrutiny. Per Baidu’s published benchmarks, ERNIE-Image hits:- LongTextBench ~0.9733 — state-of-the-art for long, layout-sensitive text rendering among open models.
- GenEval ~0.8856 overall — strong compositional accuracy, with a notable lead on position understanding and attribute binding.
It is TEXT-TO-IMAGE — not an editor (read this)
The single most common ERNIE confusion: people expect it to edit a photo. It doesn’t. ERNIE-Image is a text-to-image generator. You describe an image and it paints one from scratch. It does not follow grounded edit instructions like “change the shirt to red” or “remove the person on the left.” The shipped workflow does have an “image-to-image” path, and that’s where the confusion starts — but that path is denoise-based refinement (a style/detail pass over one source image at low denoise), not instruction editing. If your job is “change X in this photo,” reach for Qwen-Image-Edit or Flux Kontext instead. ERNIE’s lane is generation, especially text- and layout-heavy generation.What to make with it
ERNIE’s sweet spots all share one trait — the image has to say something:- Multilingual posters & key visuals — EN/CN/JP headlines that render cleanly.
- Text-heavy designs — signage, packaging, menus, UI mockups, ad creatives.
- Manga / anime layouts — multi-panel pages and storyboards with legible speech bubbles (write the literal string in quotes).
- Structured multi-object scenes — ERNIE’s strong instruction following handles complex, knowledge-heavy prompts.
- Fast ideation — Turbo’s 8-step generation makes iterating on concepts cheap.
Settings that matter
The pack’s workflow is tuned already, but for reference — these are the Turbo defaults extracted from the shipped graph:
A few notes that save grief:
- Keep
ModelSamplingAuraFlowshift at 3.1. It’s applied to the model before sampling; drop it and Turbo output goes soft/undercooked. - CFG 1 means negative conditioning is effectively inert. The graph still wires
a
ConditioningZeroOutas the negative — that’s normal, not a bug. - Base (non-Turbo)
ernie-image? Bump to ~50 steps and raise cfg (≈3.5–5) since it isn’t distilled. - Use the Prompt Enhancer for short prompts, turn it off (
ComfySwitchNodefalse) once you’ve written a detailed prompt yourself.
Troubleshooting
UnetLoaderGGUF/CLIPLoaderGGUFmissing → install ComfyUI-GGUF (city96).Power Lora Loader/Image Comparermissing → install rgthree-comfy.ImageResize+missing → install ComfyUI_essentials.TextGenerate(enhancer) missing → install via ComfyUI-Manager search, or set theComfySwitchNodeto the raw prompt (switch=false) and skip enhancement.- CLIP type error on Ministral → set
CLIPLoadertypetoflux2(notqwen_image/lumina2;lumina2belongs to the Z-Image encoder). - Wrong-VAE artifacts → ERNIE must use
flux2-vae.safetensors;ae.safetensorsis the Z-Image VAE. - Blurry / undercooked output → confirm
ModelSamplingAuraFlow shift=3.1is wired and steps ≥ 8 for Turbo. - You wanted to EDIT a photo and it ignored you → expected. ERNIE is txt2img; use Qwen-Image-Edit or Flux Kontext for grounded edits.
- Installer pulled Z-Image files too → that’s the contaminated upstream script;
use the
erniepack, which excludes them.
FAQ
Is ERNIE-Image open source? Yes — genuinely. It’s released under Apache-2.0, which permits commercial use, modification, and redistribution. Unlike Ideogram 4’s non-commercial license, there’s no separate paid agreement to ship commercially. Can ERNIE-Image edit my photos? No. It’s text-to-image only. The workflow’s “image-to-image” is a low-denoise refine pass, not instruction editing. For “change X in this photo,” use Qwen-Image-Edit or Flux Kontext. How much VRAM do I need? The Turbo GGUF runs in under 8 GB at the Q5_K_S quant; Q6_K wants 8–12 GB and Q8_0 wants 12–16 GB+. The non-quantized official release targets a 24 GB card. How many parameters? About 8B — a single-stream Diffusion Transformer, paired with a Ministral-3-3B text encoder and the Flux 2 VAE. Is it good at non-English text? Yes — that’s a core strength. It renders English, Chinese, and Japanese cleanly thanks to a character-aware encoder trained on a large CJK corpus. ERNIE-Image vs Z-Image — which should I use? Z-Image for the fastest general-purpose ideation; ERNIE when you need a permissive license plus precise multilingual text and structured layouts. Why is the text so accurate? Reported LongTextBench ~0.9733 — ERNIE was designed for layout-sensitive, multilingual text rendering, not as an afterthought. (Figures are vendor-reported; scope the claim to text/layout.)Get it running in one command
- Install comfyui-mcp and the Panel — the panel auto-starts a background agent on your Claude subscription (no API keys; sign in with
claudeonce). - Apply the
erniepack — nodes + ERNIE-only models land in the right folders, validated, with the Z-Image cruft stripped out. - Open the Panel and let the panel’s agent write multilingual prompts and wire the graph for you.