I am having trouble forcing image generation using Gemini 2.0 Flash Experimental Image Generation. Even when I specify image generation in the prompt, the image is generated less than 50% of the time. Although I can provide an image and ask for edits, the image generation function is rarely triggered when attempting to generate an image from scratch.
To force image generation, I tried specifying only “image” in the “response_modalities” field, but encountered the following error:
google.genai.errors.ClientError: 400 Bad Request. {'message': 'Response not read', 'status': 'Bad Request'}
Additionally, is there any plan to support “system_instructions”?
Based on some testing, it appears that image generation is triggered reliably when using English prompts, whereas in Japanese or other languages, the triggering is less consistent.