{"record":{"id":"f6ae50e04ff48185","repo":"Comfy-Org/ComfyUI","slug":"minimum-image-resolution-that-the-selected-model-c","errorCode":null,"errorMessage":"Minimum image resolution that the selected model can generate is 0.92MP, but {mp_provided:.2f}MP provided.","messagePattern":"Minimum image resolution that the selected model can generate is 0\\.92MP, but (.+?)MP provided\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_bytedance.py","lineNumber":710,"sourceCode":"        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.\"\n            )\n        if sequential_image_generation == \"auto\" and n_input_images + max_images > 15:\n            raise ValueError(\n                \"The maximum number of generated images plus the number of reference images cannot exceed 15.\"","sourceCodeStart":692,"sourceCodeEnd":728,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_bytedance.py#L692-L728","documentation":"Seedream 4.0 enforces its own lower bound of 921,600 pixels (0.92MP). The node checks this only when 'seedream-4-0' is in the model string and raises with the computed megapixel value when the requested size is smaller.","triggerScenarios":"Model contains 'seedream-4-0' and w*h < 921600 - e.g. 512x512 (0.26MP) custom size.","commonSituations":"Small test generations at 512x512; thumbnails requested via custom size; preset label missing so custom 512 values are used.","solutions":["Increase width*height to >= 921600 pixels (960x960 or larger).","Use a recommended Seedream 4.0 preset.","Downscale the output locally if a smaller image is needed."],"exampleFix":"// before\nmodel: 'seedream-4-0', width: 512, height: 512\n// after\nmodel: 'seedream-4-0', width: 1024, height: 1024","handlingStrategy":"validation","validationCode":"if 'seedream-4-0' in model and width * height < 921_600:\n    width = height = 1024  # smallest compliant square","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Never request below 960x960 on seedream-4-0.","Generate large and downscale locally instead of requesting sub-MP outputs."],"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"}