Inference Reference

June 3, 2026 · View on GitHub

Detailed parameters, sampler presets, supported resolutions, and optimization tips for Ideogram 4 inference.

Sampler Presets

Named presets bundle a step count, per-step CFG schedule, schedule mean (mu), and schedule standard deviation (std) into a single flag:

python run_inference.py \
  --prompt "a cat wearing a tiny top hat" \
  --sampler-preset V4_QUALITY_48 \
  --output out.png
PresetStepsCFG schedulemustd
V4_QUALITY_484845 steps @ gw=7, then 3 polish steps @ gw=30.01.5
V4_DEFAULT_202018 steps @ gw=7, then 2 polish steps @ gw=30.01.75
V4_TURBO_121211 steps @ gw=7, then 1 polish step @ gw=30.51.75

V4_QUALITY_48 is the default. Fewer steps trade quality for speed. The full registry lives in ideogram4.sampler_configs.PRESETS; add a new entry there to define your own.

Key Parameters

These are the keyword arguments accepted by Ideogram4Pipeline.__call__. The defaults below apply when you call pipe(...) directly; run_inference.py overrides num_steps, guidance_schedule, mu, and std from the chosen sampler preset (see above).

ParameterDefaultNotes
height / width1024Must be multiples of 16. Supported range: 256–2048. Aspect ratios up to 6:1 or 1:6.
num_steps48More steps = higher quality. The V4_QUALITY_48 preset (48 steps) is a good speed/quality trade-off.
guidance_scale7.0Constant guidance weight used when no guidance_schedule is given. Higher = more prompt adherence, lower = more diversity.
guidance_scheduleNoneOptional per-step guidance weights (loop-index order: index 0 is the final step). Overrides guidance_scale.
mu0.5Logit-normal schedule mean. Auto-adjusted for resolution.
std1.0Logit-normal schedule standard deviation.
seedNoneSet for reproducible results.

Supported Resolutions

Ideogram 4 natively supports any resolution where both height and width are multiples of 16, within the range 256–2048 (aspect ratios up to 6:1 or 1:6).

Use caseResolutionAspect ratio
Square1024 × 10241:1
Landscape1536 × 10243:2
Portrait1024 × 15362:3
Widescreen1920 × 1088~16:9
Ultrawide2048 × 768~21:9
Phone wallpaper1024 × 1792~9:16
Social banner1600 × 4004:1

Resolution buckets use 16-pixel increments, giving fine-grained control over output dimensions.