Report to Google AI Studio Support
Subject: Imagen Models - Aspect Ratio Issues & Model Behavior
Dear Google AI Studio Support Team,
I am writing to report two persistent issues I’m encountering while using the Imagen API for image generation, specifically regarding aspect ratios and model availability/behavior.
Issue 1: Imagen 3 Generates 1:1 Images Despite Aspect Ratio Request
Description: When using the imagen-3.0-generate-002
model, the generated images consistently come out in a 1:1 (square) aspect ratio, even when the resolution
parameter in the API payload is explicitly set to 1792x1024
(for 16:9 aspect ratio) or 1024x1792
(for 9:16 aspect ratio). The API call itself, as per my application’s logs, sends the correct resolution
parameter.
Observation: This suggests that either the imagen-3.0-generate-002
model has a strong default bias towards generating 1:1 images that overrides the resolution
parameter, or there’s a limitation in its ability to accurately produce other aspect ratios.
Issue 2: Imagen 4 Models Initially Inaccessible, Now Produce 1:1 Images
Description: Initially, attempts to use Imagen 4 models (e.g., “Imagen 4 Fast,” “Imagen 4 Standard,” “Imagen 4 Ultra”) resulted in 404 Client Error: Not Found
responses from the API. This was due to an incorrect API model name being used.
Based on the official Imagen API documentation (https://ai.google.dev/gemini-api/docs/imagen
), I have corrected the API model name for all Imagen 4 variants in my application to imagen-4.0-generate-001
.
Current Behavior: With the corrected API name (imagen-4.0-generate-001
), the API calls are now successful, and images are being generated. However, similar to Imagen 3, the images generated by imagen-4.0-generate-001
also consistently come out in a 1:1 aspect ratio, despite the resolution
parameter in the payload being set to 1792x1024
(for 16:9) or 1024x1792
(for 9:16).
Observation: This indicates that even with the correct Imagen 4 model and resolution
parameter, the model is not adhering to the requested aspect ratio.