ComfyUI Node

ERNIE-Image-Turbo

The 8-step shortcut to text-in-image

By Runware·Created 2 years ago·Updated about a month ago· 140
ERNIE-Image-Turbo
  • acceleratorOptions
  • advancedFeatures.watermark.image
  • image
positivePrompt
width1024
height1024
seed0
steps8
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-Turbo is the same story as the full ERNIE-Image, compressed. Where the base model burns 30 steps to get its clean, legible text-in-image, Turbo is a distilled variant that runs in 2–10 steps (default 8). It's the fastest way to draft a layout: posters, cards, mockups with text baked in, quick enough that you can iterate on the composition instead of waiting on it.

As with everything in the Runware pack, "fast" here means "fast on someone else's GPU." You send a prompt, the cloud runs the model, you get an IMAGE tensor back. No model files, no VRAM math.

How it works

Distilled models learn to jump to the finished image in very few denoising steps, and the tradeoff is quality at the margins. Turbo keeps the ERNIE strengths - structured composition and readable text - but you trade away some of the full model's refinement. The node is a thin taskType: imageInference REST call with the model AIR baidu:ernie-image@turbo baked in; all the real logic lives on Runware's side.

Inputs that matter

  • positivePrompt - required, and the only thing you must touch. Turbo's speed means you can afford to iterate on it a lot.
  • steps - 2–10, default 8. Below 6, text can start smearing; above 8 you're barely gaining anything. 8 is genuinely the sweet spot here.
  • settings.promptEnhance.enabled - the LLM prompt expander, off by default. Paired with temperature (1.2) and topP (0.95) if you want it. Worth trying when short prompts come back too literal.
  • acceleration - none/low/medium/high. This stacks on top of the distillation, so it's a "how cheap can I make this" knob more than a quality one.
  • width / height - up to 2048 in 16px steps.

Note there's no CFGScale on this node - distilled models mostly ignore high guidance anyway, so the pack just doesn't expose it. Output is image → 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. API key via ComfyUI Settings → Runware API key or RUNWARE_API_KEY. Prepaid top-up, cost per run shown on the title bar.

Gotchas

  • The same caveats as the base ERNIE model: the community flagged an ethnic bias and a grid-pattern artifact. Turbo shows both more aggressively under pressure, so don't push tiny text or dark low-step generations and then wonder what went wrong.
  • Fewer steps + JPG output = the fastest way to wreck glyph edges. Keep PNG for anything with text that matters.
  • If you outgrow the speed and want the detail back, step up to the full ERNIE-Image node - same pack, same key, same wiring.

The honest pitch: Turbo is the version you use when ERNIE's layout ability matters but the full model's cost and latency don't. Draft fast, polish with the big one.

CategoryRunware/Image/baidu

Inputs (25)

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.
stepsoptINT82–10Total number of denoising steps. Higher values generally produce more detailed results but take longer.
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