{"record":{"id":"0be3d3891fda98d3","repo":"Comfy-Org/ComfyUI","slug":"minimum-image-resolution-for-the-selected-model-is-0be3d3","errorCode":null,"errorMessage":"Minimum image resolution for the selected model is 0.92MP, but {mp_provided:.2f}MP provided.","messagePattern":"Minimum image resolution for the selected model is 0\\.92MP, but (.+?)MP provided\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_bytedance.py","lineNumber":976,"sourceCode":"        height = model.get(\"height\", 2048)\n        max_images = model.get(\"max_images\", 1)\n        sequential_image_generation = \"disabled\" if max_images == 1 else \"auto\"\n        images_dict = model.get(\"images\") or {}\n        fail_on_partial = model.get(\"fail_on_partial\", False)\n\n        w = h = None\n        for label, tw, th in presets:\n            if label == size_preset:\n                w, h = tw, th\n                break\n        if w is None or h is None:\n            w, h = width, height\n\n        out_num_pixels = w * h\n        mp_provided = out_num_pixels / 1_000_000.0\n        if is_pro:\n            if out_num_pixels < 921_600:\n                raise ValueError(\n                    f\"Minimum image resolution for the selected model is 0.92MP, but {mp_provided:.2f}MP provided.\"\n                )\n            if out_num_pixels > 4_194_304:\n                raise ValueError(\n                    f\"Maximum image resolution for the selected model is 4.19MP, but {mp_provided:.2f}MP provided.\"\n                )\n        else:\n            if (\"seedream-4-5\" in model_id or \"seedream-5-0\" in model_id) and out_num_pixels < 3_686_400:\n                raise ValueError(\n                    f\"Minimum image resolution for the selected model is 3.68MP, but {mp_provided:.2f}MP provided.\"\n                )\n            if \"seedream-4-0\" in model_id and out_num_pixels < 921_600:\n                raise ValueError(\n                    f\"Minimum image resolution that the selected model can generate is 0.92MP, \"\n                    f\"but {mp_provided:.2f}MP provided.\"\n                )\n            if out_num_pixels > 16_777_216:\n                raise ValueError(","sourceCodeStart":958,"sourceCodeEnd":994,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_bytedance.py#L958-L994","documentation":"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.","triggerScenarios":"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.","commonSituations":"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).","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."],"exampleFix":"// before\nmodel: seedream 5.0 pro\nsize_preset: Custom\nwidth: 768, height: 768  // 0.59MP -> raises\n\n// after\nsize_preset: Custom\nwidth: 1024, height: 1024 // 1.05MP -> passes","handlingStrategy":"validation","validationCode":"def validate_seedream_pro_size(width: int, height: int) -> None:\n    if width * height < 921_600:\n        raise ValueError(f'5.0 Pro needs >= 0.92MP, got {width}x{height}')","typeGuard":null,"tryCatchPattern":null,"preventionTips":["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."],"tags":["bytedance","seedream","resolution-validation","api-nodes"],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}