Comfy-Org/ComfyUI · error · ValueError
Minimum image resolution for the selected model is 0.92MP, b
Error message
Minimum image resolution for the selected model is 0.92MP, but {mp_provided:.2f}MP provided. What it means
Raised by ByteDanceSeedreamNodeV2 when 'seedream 5.0 pro' is selected (is_pro branch) and width*height of the resolved output size is below 921,600 pixels (0.92MP). The node validates the megapixel budget locally before calling the BytePlus API, because the Pro model rejects sub-0.92MP requests server-side.
Source
Thrown at comfy_api_nodes/nodes_bytedance.py:976
height = model.get("height", 2048)
max_images = model.get("max_images", 1)
sequential_image_generation = "disabled" if max_images == 1 else "auto"
images_dict = model.get("images") or {}
fail_on_partial = model.get("fail_on_partial", False)
w = h = None
for label, tw, th in presets:
if label == size_preset:
w, h = tw, th
break
if w is None or h is None:
w, h = width, height
out_num_pixels = w * h
mp_provided = out_num_pixels / 1_000_000.0
if is_pro:
if out_num_pixels < 921_600:
raise ValueError(
f"Minimum image resolution for the selected model is 0.92MP, but {mp_provided:.2f}MP provided."
)
if out_num_pixels > 4_194_304:
raise ValueError(
f"Maximum image resolution for the selected model is 4.19MP, but {mp_provided:.2f}MP provided."
)
else:
if ("seedream-4-5" in model_id or "seedream-5-0" in model_id) and out_num_pixels < 3_686_400:
raise ValueError(
f"Minimum image resolution for the selected model is 3.68MP, but {mp_provided:.2f}MP provided."
)
if "seedream-4-0" in model_id and out_num_pixels < 921_600:
raise ValueError(
f"Minimum image resolution that the selected model can generate is 0.92MP, "
f"but {mp_provided:.2f}MP provided."
)
if out_num_pixels > 16_777_216:
raise ValueError(View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Pick a larger size preset or raise custom width/height so width*height >= 921600 (e.g. at least ~1024x900).
- Remember presets take precedence: set size_preset to 'Custom' before your width/height values are used.
- Switch to 'seedream 5.0 lite' or 'seedream-4-0' if small outputs are required, since only Pro enforces this floor here.
Example fix
// before model: seedream 5.0 pro size_preset: Custom width: 768, height: 768 // 0.59MP -> raises // after size_preset: Custom width: 1024, height: 1024 // 1.05MP -> passes
Defensive patterns
Strategy: validation
Validate before calling
def validate_seedream_pro_size(width: int, height: int) -> None:
if width * height < 921_600:
raise ValueError(f'5.0 Pro needs >= 0.92MP, got {width}x{height}') Prevention
- Compute width*height before queueing the workflow.
- Remember size_preset overrides width/height unless preset is 'Custom'.
- Only Pro enforces this floor; 4.0 also allows small sizes.
When it happens
Trigger: Model 'seedream 5.0 pro' with a custom size_preset whose preset width x height (or custom width/height when preset label is not matched) multiplies to under 921600, e.g. 800x800 or a small custom entry.
Common situations: Switching a workflow from Seedream 4.0/lite to 5.0 Pro while keeping a small custom size; trusting a stale size preset list; assuming width/height widgets are used when size_preset is not 'Custom' (the preset dimensions override them).
Related errors
- Maximum image resolution for the selected model is 4.19MP, b
- Maximum image resolution for the selected model is 16.78MP,
- Only {len(urls)} of {len(response.data)} images were generat
- 'thinking' can only be disabled for text-to-image; enable it
- Only a single input image is supported.
AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14).
Data as JSON: /api/errors/0be3d3891fda98d3.
Report an issue: GitHub.