Conversation
The nano-banana-edit public endpoint now proxies google/nano-banana-2/edit (runpod-workers/public-ep#78), because Google retires gemini-2.5-flash-image on 2026-10-02. Pricing moves from a flat $0.038 to per-resolution. - pricing: flat \$0.038 -> \$0.05625 (0.5K) / \$0.0875 (1K) / \$0.13125 (2K) / \$0.175 (4K), in both the model page and the reference table - document the new `resolution` input (default 1k) - drop `enable_safety_checker`: it is not a nano-banana-2 API parameter (it only exists as a playground toggle), so remove it from the parameter list and all three code samples - output.cost is derived from resolution, not megapixels; response example now shows a real price - correct the image limit from 4 to 14 (pre-existing error; the endpoint has always accepted up to 14) Verified against live calls to the endpoint: 0.5k/1k/2k/4k bill 0.05625/0.0875/0.13125/0.175 respectively. Linear: FDE-372 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Author
|
Superseded by #843. The plan changed: instead of migrating |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
nano-banana-editpublic endpoint is being migrated togoogle/nano-banana-2/editin runpod-workers/public-ep#78, because Google retires the first-generation model (gemini-2.5-flash-image) on 2026-10-02. Pricing changes from a flat$0.038to per-resolution, so the docs need to follow.Linear: FDE-372
$0.038.New pricing
These are verified against live calls to
google/nano-banana-2/edit— each resolution was invoked and the billed amount matched exactly.Changes
public-endpoints/models/nano-banana-edit.mdx## Cost calculationsection now show the per-resolution tableresolutioninput (default1k)enable_safety_checker: it is not a nano-banana-2 API parameter (it exists only as a playground toggle), so it is gone from the parameter list and from all three code samplesoutput.costis derived from the output resolution, not from megapixels0.0875) instead of0.028311public-endpoints/reference.mdx$0.038/image→$0.05625–$0.175/image, matching how the Nano Banana Pro and Nano Banana 2 rows already express resolution rangesOut of scope / please confirm
max_length: 14). Unrelated to this migration — happy to drop this bit if you would rather keep the diff strictly about pricing.nano-banana-2-edit.mdxrounds 2K to$0.13while the endpoint actually bills$0.13125. Not touched here since it is a different model page, but it is the same kind of drift.aspect_ratio,output_format,enable_sync_modeandenable_base64_outputare still undocumented on this page, though the endpoint accepts all four (the Nano Banana 2 page documents most of them). Left out to keep this PR about pricing; can follow up.output.image_url, but the handler'soutput_schemanames itresult. Either there is a rename layer at the public-endpoint proxy or the docs are systematically off. Worth verifying separately — not changed here.🤖 Generated with Claude Code