I am trying to generate image with Imagen 3.
I have tried REST and Python library.
For some reason I get response 200 with no images in it.
My prompt that fails is "President of a country is meeting with president of another country."
While the prompt "President of a country" return image just fine.
I came to a conclusion that the first prompt is somehow breaking rules, but it is confusing as at the same time when I enter the same first prompt on the ImageFX website it generates images just fine.
Hi @ApsidD,
Welcome to Google Cloud Community!
It appears that you're encountering an issue with the specific prompt when generating images using the Imagen 3 model, particularly when it involves two presidents meeting. This is likely due to the mention of political figures, which may trigger a safety mechanism. This would explain why you're receiving a 200 response (success) but no image, as the API might be silently preventing the generation due to policy concerns.
Here are a few possible reasons why this is happening, along with potential solutions you can consider to address the issue:
You can read through this documentation for detailed information on safety filtering and blocked content handling when using Imagen.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |