{"record":{"id":"584afd7079e67a60","repo":"Comfy-Org/ComfyUI","slug":"minimum-image-resolution-for-the-selected-model-is","errorCode":null,"errorMessage":"Minimum image resolution for the selected model is 3.68MP, but {mp_provided:.2f}MP provided.","messagePattern":"Minimum image resolution for the selected model is 3\\.68MP, but (.+?)MP provided\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_bytedance.py","lineNumber":706,"sourceCode":"        seed: int = 0,\n        watermark: bool = False,\n        fail_on_partial: bool = True,\n    ) -> IO.NodeOutput:\n        model = SEEDREAM_MODELS[model]\n        validate_string(prompt, strip_whitespace=True, min_length=1)\n        w = h = None\n        for label, tw, th in RECOMMENDED_PRESETS_SEEDREAM_4:\n            if label == size_preset:\n                w, h = tw, th\n                break\n\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 (\"seedream-4-5\" in model or \"seedream-5-0\" in model) and out_num_pixels < 3686400:\n            raise ValueError(\n                f\"Minimum image resolution for the selected model is 3.68MP, \" f\"but {mp_provided:.2f}MP provided.\"\n            )\n        if \"seedream-4-0\" in model and out_num_pixels < 921600:\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        max_pixels = 10_404_496 if \"seedream-5-0\" in model else 16_777_216\n        if out_num_pixels > max_pixels:\n            raise ValueError(\n                f\"Maximum image resolution for the selected model is {max_pixels / 1_000_000:.2f}MP, \"\n                f\"but {mp_provided:.2f}MP provided.\"\n            )\n        n_input_images = get_number_of_images(image) if image is not None else 0\n        max_num_of_images = 14 if model == \"seedream-5-0-260128\" else 10\n        if n_input_images > max_num_of_images:\n            raise ValueError(\n                f\"Maximum of {max_num_of_images} reference images are supported, but {n_input_images} received.\"","sourceCodeStart":688,"sourceCodeEnd":724,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_bytedance.py#L688-L724","documentation":"Seedream 4.5 / 5.0 models enforce a minimum output of 3,686,400 pixels (3.68MP). After resolving the preset or custom width/height, the node rejects requests below that floor before calling the API.","triggerScenarios":"Model string contains 'seedream-4-5' or 'seedream-5-0' and w*h < 3686400 - e.g. a 1024x1024 (1MP) custom size or a small preset carried over from Seedream 4.0.","commonSituations":"Workflow built for seedream-4-0 (0.92MP floor) reused with a 4.5/5.0 model id; user assumes 1K presets are universal across the family.","solutions":["Raise width*height to at least 3686400 pixels (e.g. 1920x1920 or larger preset).","Switch the model widget to seedream-4-0 if you need sub-3.68MP outputs.","Downscale the generated image afterwards if you need a smaller final asset."],"exampleFix":"// before\nmodel: 'seedream-4-5', width: 1024, height: 1024\n// after\nmodel: 'seedream-4-5', width: 2048, height: 2048","handlingStrategy":"validation","validationCode":"MIN_PX = 3_686_400 if 'seedream-4-5' in model or 'seedream-5-0' in model else None\nif MIN_PX and width * height < MIN_PX:\n    width = height = int(MIN_PX ** 0.5)  # or bump to a compliant preset","typeGuard":null,"tryCatchPattern":null,"preventionTips":["When switching Seedream model versions, re-check the size floor: 0.92MP (4.0) vs 3.68MP (4.5/5.0).","Default new Seedream 4.5/5.0 workflows to >= 1920x1920."],"tags":["comfyui","bytedance","seedream","image-size","limits","validation"],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}