ComfyUI Node

ERNIE-Image

The text-in-image specialist that still lost

By Runware·Created 2 years ago·Updated about a month ago· 140
ERNIE-Image
  • acceleratorOptions
  • advancedFeatures.watermark.image
  • image
positivePrompt
width1024
height1024
seed0
steps30
CFGScale4.00
numberResults1
acceleration(default)
advancedFeaturesfalse
advancedFeatures.watermark.bgColor
advancedFeatures.watermark.displayPosition(default)
advancedFeatures.watermark.fontColor
advancedFeatures.watermark.opacityfalse
advancedFeatures.watermark.opacity_value0.10
advancedFeatures.watermark.text
settings.promptEnhance.enabledfalse
safetyfalse
safety.checkContentfalse
settings.promptEnhance.temperature1.20
settings.promptEnhance.topP0.95
ttlfalse
ttl_value60
outputFormatJPG
outputQuality95

ERNIE-Image is the uncomfortable case study for this whole hobby: Baidu shipped it in April 2026 as Apache 2.0, no filter, no revenue test, with genuine competence in structured layout and text-in-image that nothing open could match at the time - and the community still drifted away within weeks. The two defects that did it in were an ethnic bias strong enough that people made LoRAs just to produce non-Asian faces, and a visible grid-pattern noise artifact. You should know both before you judge what you see.

But the model itself is a real skill: if you need legible text baked into an image - posters, cards, product mockups with clean typography - ERNIE-Image is arguably still the strongest open option in that narrow lane. This node runs it remotely via Runware, so there's no download and no GPU requirement.

How it works

Standard Runware pack mechanics: positivePrompt (the only required input) goes into a taskType: imageInference request over REST, Runware runs the model on their hardware, and the node downloads the result into an IMAGE tensor. The interesting parts are the widgets that make ERNIE-Image distinct.

Inputs that matter

  • steps - 15–50, default 30. ERNIE likes a decent number of steps; don't cheap out if text legibility matters.
  • CFGScale - default 4, range 0–20. Higher hugs the prompt, which helps when you've written layout instructions.
  • settings.promptEnhance.enabled - an LLM-backed prompt expander. Flip it on and the model rewrites your short prompt into something richer before generating. The paired temperature (default 1.2) and topP (default 0.95) control how adventurous that rewrite gets.
  • acceleration - none/low/medium/high optimization level. High is faster, but for a layout-heavy model you may want none or low to keep the text rendering clean.
  • width / height - up to 2048 in 16px steps; 1024×1024 is a safe start for text work.

Output is the usual image IMAGE socket - wire it to Preview Image or Save Image.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware
pip install -r ComfyUI-Runware/requirements.txt

Or ComfyUI Manager → search Runware → Install → restart. Add an API key in ComfyUI Settings → Runware API key or via the RUNWARE_API_KEY env var. It's prepaid cloud inference - per-run cost, shown on the node's title bar.

Gotchas

  • The grid/noise artifact shows up most in larger, darker generations - worth knowing before you blame your upscaler.
  • Prompt enhance is off by default. If your text layout collapses into mush, try turning it on and letting the LLM structure your prompt properly.
  • Keep outputFormat on PNG or WEBP for anything with fine text; JPG compression eats glyph edges.

Use it for what it's genuinely good at - clean, structured, legible text-in-image - and you'll wonder why the whole ecosystem moved on. The rest of the time, the noise and the bias are why it did.

CategoryRunware/Image/baidu

Inputs (26)

NameTypeDefaultDescription
positivePromptSTRINGText prompt describing elements to include in the generated output.
acceleratorOptionsoptRUNWARE_ACCELERATOROPTIONS
advancedFeatures.watermark.imageoptIMAGE
widthoptINT1024Width of the generated media in pixels.
heightoptINT1024Height of the generated media in pixels.
seedoptINT00–9223372036854776000Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
stepsoptINT3015–50Total number of denoising steps. Higher values generally produce more detailed results but take longer.
CFGScaleoptFLOAT4.000–20Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.
numberResultsoptINT11–20Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
accelerationoptCOMBO(default)Optimization level.
advancedFeaturesoptBOOLEANfalseEnable to set advancedFeatures. Off uses the model's default.
advancedFeatures.watermark.bgColoroptSTRINGBackground color in hex format.
advancedFeatures.watermark.displayPositionoptCOMBO(default)Watermark position.
advancedFeatures.watermark.fontColoroptSTRINGText color in hex format.
advancedFeatures.watermark.opacityoptBOOLEANfalseEnable to set advancedFeatures.watermark.opacity. Off uses the model's default.
advancedFeatures.watermark.opacity_valueoptFLOAT0.100.1–1Watermark opacity.
advancedFeatures.watermark.textoptSTRINGWatermark text.
settings.promptEnhance.enabledoptBOOLEANfalseAutomatic enhancement and expansion of the input prompt.
safetyoptBOOLEANfalseEnable to set safety. Off uses the model's default.
safety.checkContentoptBOOLEANfalseEnable or disable content safety checking.
settings.promptEnhance.temperatureoptFLOAT1.200–5Controls randomness in generation. Lower values produce more deterministic outputs, higher values increase variation and creativity.
settings.promptEnhance.topPoptFLOAT0.950–1Nucleus sampling parameter that controls diversity by limiting the probability mass. Lower values make outputs more focused, higher values increase diversity.
ttloptBOOLEANfalseEnable to set ttl. Off uses the model's default.
ttl_valueoptINT60Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.
outputFormatoptCOMBOJPGFile format for the generated image.
outputQualityoptINT9520–99Compression quality of the output. Higher values preserve quality but increase file size.

Outputs (1)

NameTypeDescription
imageIMAGE