mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 04:19:46 -06:00
How do I specify the gemini3-pro(nano banana pro) model to generate images? #116
Labels
No labels
advanced
advanced
bug
dependencies
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
model
pull-request
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/Gemini-API#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xufuzhi on GitHub (Dec 3, 2025).
When I try to specify gemini3-pro to generate an image using the code below:
I get an error:
I know that generating the image works correctly when using the default model:
But the default model doesn't use the "nano banana pro"(which I assume is gemini3-pro), so the image quality it generates isn't that great.
Is there any way to specify Gemini3-Pro (Nano Banana Pro) to generate images?
Thank you very much!
@FB208 commented on GitHub (Jan 9, 2026):
I encountered the same problem. When both the
filesandmodelparameters exist, the image cannot be returned.@Luen commented on GitHub (Jan 15, 2026):
Maybe this? https://github.com/HanaokaYuzu/Gemini-API/pull/209
@ashwarsadh commented on GitHub (Jan 29, 2026):
same issue , we cant use latest image model to generate images, as the image cannot be returned.