Skip to content

fix flash image quality level#2665

Merged
ProgrammerIn-wonderland merged 1 commit intoHeyPuter:mainfrom
P3il4:gemini-res
Mar 15, 2026
Merged

fix flash image quality level#2665
ProgrammerIn-wonderland merged 1 commit intoHeyPuter:mainfrom
P3il4:gemini-res

Conversation

@P3il4
Copy link
Copy Markdown
Contributor

@P3il4 P3il4 commented Mar 14, 2026

missed this in my last pr
turns out it's 512 not 0.5K for flash image 3.1 quality level
https://ai.google.dev/gemini-api/docs/image-generation#use-14-images -> click "Python"
currently causes "Request contains an invalid argument" when requesting 0.5K (default)

puter.ai.txt2img('generate an image', options= {
    model: "google:google/gemini-3.1-flash-image-preview",
})

other quality levels are unaffected and work as intended
not able to verify this locally as i don't have a gemini key but i assume we can trust gemini docs

@ProgrammerIn-wonderland
Copy link
Copy Markdown
Collaborator

Makes sense

@ProgrammerIn-wonderland ProgrammerIn-wonderland merged commit b3787ac into HeyPuter:main Mar 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants