When generating images with the imagen3 or imagen4 model, I specified the aspectRatio option, but the aspect ratio of the resulting image is different.
For example, I generated a 16:9 aspect ratio, but the resulting image has an 11:6 aspect ratio.
The same is true for 9:16, 3:4, and 4:3 aspect ratios.
Thanks for reaching out. I’ve just run a test on my end specifying a 16:9 aspect ratio with the latest Imagen models, and it generated the image correctly. This suggests that the API is functioning as expected.
Could you please double-check the syntax in your API call? The aspectRatio parameter must be passed as a string, for example, “16:9”.
To help you debugging, could you please share the code snippet and the prompt you are using to make the request? This will allow us to quickly spot any potential formatting issues.