{"record":{"id":"584736f92f52799e","repo":"Comfy-Org/ComfyUI","slug":"the-generation-was-blocked-by-ideogram-s-content-s","errorCode":null,"errorMessage":"The generation was blocked by Ideogram's content safety filter. Adjust the prompt and try again.","messagePattern":"The generation was blocked by Ideogram's content safety filter\\. Adjust the prompt and try again\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"comfy_api_nodes/nodes_ideogram.py","lineNumber":659,"sourceCode":"            quality=quality,\n            resolution=resolution,\n            aspect_ratio=V3_RATIO_MAP[aspect_ratio],\n            prompt_upsampling=prompt_upsampling,\n            seed=seed,\n        )\n        response = await sync_op(\n            cls,\n            ApiEndpoint(path=\"/proxy/ideogram/text-to-image/p-image-ideogram\", method=\"POST\"),\n            response_model=IdeogramGenerateResponse,\n            data=request,\n            max_retries=1,\n        )\n        if not response.data:\n            raise Exception(\"No images were generated in the response\")\n        image_urls = [image_data.url for image_data in response.data if image_data.url]\n        if not image_urls:\n            if any(image_data.is_image_safe is False for image_data in response.data):\n                raise Exception(\n                    \"The generation was blocked by Ideogram's content safety filter. \"\n                    \"Adjust the prompt and try again.\"\n                )\n            raise Exception(\"No image URLs were generated in the response\")\n        return IO.NodeOutput(\n            await download_and_process_images(image_urls),\n            response.data[0].prompt or prompt,\n        )\n\n\nclass IdeogramExtension(ComfyExtension):\n    @override\n    async def get_node_list(self) -> list[type[IO.ComfyNode]]:\n        return [\n            IdeogramV3,\n            IdeogramV4,\n            IdeogramPImage,\n        ]","sourceCodeStart":641,"sourceCodeEnd":677,"githubUrl":"https://github.com/Comfy-Org/ComfyUI/blob/1c6d8d45b3693bfbb32385b410d813a7fd6be216/comfy_api_nodes/nodes_ideogram.py#L641-L677","documentation":"Raised by IdeogramPImage when no image URLs came back AND at least one returned record has is_image_safe explicitly False. This is the explicit content-safety branch: Ideogram accepted the request but its safety review blocked the image from being delivered. The message tells the user the block came from Ideogram, not from ComfyUI.","triggerScenarios":"Any IdeogramPImage generation whose prompt (and optional input imagery) is flagged by Ideogram's safety classifier — e.g. violent, sexual, celebrity, or trademark-heavy prompts. The response contains records with is_image_safe=False and no downloadable URL.","commonSituations":"Prompts with public-figure names, graphic language, or brand characters; P-Image input image itself flagged; region-specific policy differences.","solutions":["Remove or rephrase flagged terms (violence, sexual content, named people, brands) in the prompt","If using P-Image input reference imagery, replace the reference image that may be triggering the filter","Split the prompt and test which phrase triggers the block","Consult Ideogram's content policy for the account's region"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    out = await ideogram_p_image_node(prompt=prompt)\nexcept Exception as e:\n    if \"content safety filter\" in str(e):\n        prompt = rewrite_prompt(prompt)  # strip flagged terms\n        out = await ideogram_p_image_node(prompt=prompt)\n    else:\n        raise","preventionTips":["Avoid named public figures, brands, and graphic terms in prompts","If passing reference imagery, keep it policy-clean too — the filter inspects inputs","Maintain a project-level blocklist of terms known to trip Ideogram moderation"],"tags":["ideogram","content-filter","moderation","image-generation"],"backgroundTag":null,"analyzedSha":"1c6d8d45b3693bfbb32385b410d813a7fd6be216","analyzedAt":"2026-08-14T19:37:18.893Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}