Skip to content

feat(image): add google/nano-banana-2-lite and google/nano-banana-2.1 - #229

Merged
VickyXAI merged 2 commits into
mainfrom
feat/nano-banana-2-lite-2.1
Nov 24, 2026
Merged

VickyXAI merged 2 commits into
mainfrom
feat/nano-banana-2-lite-2.1

Conversation

@VickyXAI

@VickyXAI VickyXAI commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Adds the two Nano Banana models both gateways have listed since 2026-11-16 to blockrun_image. No version bump or CHANGELOG entry; the release goes out separately.

What the gateways serve

Both models are in GET /api/v1/models on blockrun.ai and sol.blockrun.ai. The source is blockrun src/lib/models.ts and src/lib/image-editing.ts, and blockrun-sol src/lib/models.ts.

Model Catalog Sizes Edit (image2image) Base + Sol
google/nano-banana-2-lite $0.05 1024x1024 only yes both listed
google/nano-banana-2.1 $0.07 1024x1024 only yes both listed

Live probes (unpaid 402, 2026-11-24)

Route Model Base charge Solana charge MCP reserve
generations 1024x1024 nano-banana-2-lite $0.0535 $0.0525 $0.054501
generations 1024x1024 nano-banana-2.1 $0.0745 $0.0735 $0.075501
image2image nano-banana-2-lite $0.0535 $0.0525 $0.054501
image2image nano-banana-2.1 $0.0745 $0.0735 $0.075501
generations 2048x2048 / 1536x1024 / 512x512 both 400 "Available sizes: 1024x1024" 400 —

The reserve is catalog x 1.05 plus the $0.002 reserved fee, rounded up with the gateway's float drift. That puts it $0.001 above the Base charge and $0.002 above Solana, the same safe direction as nano-banana-2. Base books reserve minus $0.001 ($0.053501 / $0.074501).

Changes

  • src/tools/image.ts: both models added to the enum, GENERATE_MODEL_COST, EDIT_MODELS and the tool description, which gets a generate line for each and both in the edit list.
  • scripts/verify-prices.ts: a 1024 probe for each. npm run verify:prices checked 78 routes: 0 under-reserving, 0 ✗, exit 0. Both new rows show ! for a $0.001001 over-reserve, the same as nano-banana-2.
  • test/image-cost.test.ts has three new tests:
    • both models are in the schema enum and the description, and a typo'd id is refused
    • the reserve is at least the live Base and Solana charge (pinned to the figures above, dated)
    • Base books $0.053501 / $0.074501, and edits are not refused locally
  • README tool row and the image-prompting skill list both models.
  • README blockrun_image price range fixed: it said $0.015–0.15, but the tool's own tables top out at $0.56 (gpt-image-2.5 large sizes), with nano-banana-pro 4K at $0.30. It now reads $0.015–0.56, the min and max of GENERATE_MODEL_COST + LARGE_SIZE_COST. Both tables are now exported, and the new test/readme-image-price.test.ts fails if the README range doesn't match them. It failed on the old README before the fix.
  • Schema cost re-measured with npm run measure:schema / brand:card. The description grew 108 tokens: full 14,425 → 14,533, media 7,016 → 7,124, card 14.4K → 14.5K. Trading saving is still 61%.

Verification

  • npx tsc --noEmit: clean
  • npm test: 1518 pass, 0 fail
  • npm run build: OK
  • Mutation check: I removed the google/nano-banana-2.1 cost row. Two tests failed, because the model fell back to the $0.06 default and reserved $0.065 against a $0.0745 charge. Restoring the row made them pass again.

🤖 Generated with Claude Code

… to blockrun_image

Both gateways list them since 2026-11-16 (blockrun #1080 and the sol port):
$0.05 and $0.07 catalog, 1024x1024 only, editable on /images/image2image.
Every other size is a 400 before any payment exists, so one price row each
is the whole surface.

Unpaid 402 quotes, 2026-11-24, generate and edit alike:
  nano-banana-2-lite  Base $0.0535  Solana $0.0525  reserve $0.054501
  nano-banana-2.1     Base $0.0745  Solana $0.0735  reserve $0.075501

Added to the model enum, GENERATE_MODEL_COST, EDIT_MODELS and the tool
description; verify:prices probes both (0 under-reserving). Without a cost
row a model falls back to the $0.06 default, which would reserve $0.065
against nano-banana-2.1's $0.0745 charge; the new test pins that.

The description grew 108 tokens: full 14,425 -> 14,533, media 7,016 ->
7,124, card 14.4K -> 14.5K (re-measured, card regenerated).
The README cost cell said $0.015–0.15. The tool's own tables top out at
$0.56 (gpt-image-2.5 at 1536x1024 / 1024x1536), with nano-banana-pro 4K at
$0.30, so the published ceiling was under a third of the real one.

Export GENERATE_MODEL_COST and LARGE_SIZE_COST and add
test/readme-image-price.test.ts, which fails unless the README row reads the
min–max of those tables (now $0.015–0.56). It failed on the old README
before the fix.
@VickyXAI
VickyXAI merged commit 8db0bba into main Nov 24, 2026
3 checks 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.

1 participant