Skip to content

fix nano banana pro pricing and resolutions#2501

Merged
ProgrammerIn-wonderland merged 4 commits intoHeyPuter:mainfrom
P3il4:fix-together
Feb 23, 2026
Merged

fix nano banana pro pricing and resolutions#2501
ProgrammerIn-wonderland merged 4 commits intoHeyPuter:mainfrom
P3il4:fix-together

Conversation

@P3il4
Copy link
Copy Markdown
Contributor

@P3il4 P3il4 commented Feb 16, 2026

fixes two issues with current implementation of nano banana pro in togetherai:

  1. not converting aspect ratio values into actual width and height parameters for togetherai, resulting in generation errors
  2. incorrect pricing for 2K and 4K quality
    https://www.together.ai/models/nano-banana-pro
    1K and 2K cost 13.4, 4K costs 24. current implementation does 13.51 * quality value

testing:

puter.drivers.call("puter-image-generation", "together-image-generation", "generate", {
  "prompt": "generate an image of a cat",
  "ratio": {
    "w": 21,
    "h": 9
  },
  "quality": "2K",
  "model": "togetherai:google/gemini-3-pro-image"
})

should give correct width + height values and correct cost amount. other models should not be affected by this
wasn't able to test this with a real key as i don't have one but logging the request gave correct values.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 16, 2026

CLA assistant check
All committers have signed the CLA.

@ProgrammerIn-wonderland
Copy link
Copy Markdown
Collaborator

Aiming to merge this this week after testing to make sure there aren't billing bugs

@ProgrammerIn-wonderland
Copy link
Copy Markdown
Collaborator

LGTM

@ProgrammerIn-wonderland ProgrammerIn-wonderland merged commit 779321d into HeyPuter:main Feb 23, 2026
4 checks passed
@P3il4 P3il4 deleted the fix-together branch February 24, 2026 14:18
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.

3 participants