Troubleshooting of Google Gemini: Difference between revisions

Tag: wikieditor
Tag: wikieditor
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{Draft}}
{{Draft}}


== Troubleshooting of Google Gemini API ==
== Troubleshooting of Google Gemini ==
=== How to fix "Request contains an invalid argument" ===
=== How to fix "Request contains an invalid argument" ===
'''Error message'''
'''Error message'''
Line 164: Line 164:
   }'
   }'
</pre>
</pre>
=== How to resolve: Gemini Text-to-Image: 16:9 Aspect Ratio Not Working, Always Generates 1:1 Images ===
'''Question:'''
Has anyone experienced issues with Gemini's text-to-image function where you specify 16:9 aspect ratio but keep getting 1:1 square images?
'''Problematic prompt''' for Models: 2.5 Pro & 2.5 Flash
<pre>
Generate a cute young turtle, 3D style
Image size 16:9
</pre>
<pre>
Generate a cute young turtle, 3D style
landscape orientation, wide format
</pre>
'''Answer:'''
A Google Product Expert acknowledged this issue in official forums, describing it as a "known limitation." However, no timeline has been provided for when the functionality might be restored.<ref>Gemini Nano Banana users report 1:1 aspect ratio lock on image generation https://piunikaweb.com/2025/09/11/gemini-image-generator-aspect-ratio-problems/</ref><ref>What happened to imagegen quality?? - Gemini Apps Community https://support.google.com/gemini/thread/372012804?hl=en&msgid=372013964</ref>
I've actually tested both Gemini 2.5 Pro and 2.5 Flash models, specifying image dimensions in the prompt (Image size: 16:9) or generating landscape orientation (landscape orientation, wide format), and both have the same problem. If you can make API calls, you might try using the API to call other models.
If you want an online solution that works, you can try Google Whisk directly: https://labs.google/fx/tools/whisk/
The interface allows you to directly set three aspect ratios: square 1:1, portrait 9:16, and landscape 16:9.


== Further reading ==
== Further reading ==