Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 8 min read

Nano Banana 2.1 or Nano Banana 2 Lite? Same Price per Image, Lite Twice as Fast

At 1K with minimal thinking, Nano Banana 2.1 and Nano Banana 2 Lite bill the same $0.0336 per image: 1,120 image tokens at $30 per million on both. Lite returned a new image in a median 4.15 seconds against 9.27 for 2.1,

Nano Banana 2.1 or Nano Banana 2 Lite? Same Price per Image, Lite Twice as Fast

At 1K with minimal thinking, Nano Banana 2.1 and Nano Banana 2 Lite bill the same $0.0336 per image: 1,120 image tokens at $30 per million on both. Lite returned a new image in a median 4.15 seconds against 9.27 for 2.1, and on the same prompt the median 2.1 call took 2.23 times as long (p = 0.00011 over 30 paired prompts).

Both models put every requested phrase into all 20 of their posters and maps. The difference is what else they print. 2.1 printed only the requested text in 10 of 20, Lite in 1 of 20 (p = 0.0117), and Lite added a median 15 extra words to a map that asked for three labels. With seven tests reported, that gap is suggestive: after a Holm correction it sits at p = 0.070, and only the speed difference holds.

For drafts, icons and images without lettering, use Lite. For posters, labels and covers where stray words cost a regeneration, use 2.1. Each model ran 35 times.

This article provides a step by step comparison of Google's two cheapest image models through the nb21 MCP server, a Python Model Context Protocol server for Claude Code that generates and edits images with Gemini's stateful Interactions API at the cheapest settings: 1K output and minimal thinking.

https://github.com/xbill9/nb2lite-claude

The Decision Flow

  1. Does the image carry text you specified? Use Nano Banana 2.1. It printed exactly the requested poster text in 8 of 10 runs, Lite in 1 of 10.
  2. Otherwise, use Nano Banana 2 Lite. Same price per image, a median 4.15 seconds per new image against 9.27.
  3. Need 2K or 4K? Only 2.1 offers them: $0.0504 and $0.113 per image. Lite is 1K only.
  4. Editing an image you just made? Either one. Both turned a yellow banana blue in 5 of 5 edits and changed the rest of the picture by about the same amount.

The Findings

The price per image is identical. Every one of the 70 images came back as 1,120 image tokens, and both models bill image output at $30 per million: $0.0336 an image. Both models used zero thinking tokens at minimal. 2.1's input price is six times Lite's and its text price five times, $1.50 and $7.50 per million against $0.25 and $1.50, which adds a fraction of a cent to a short prompt: the mean call cost $0.0339 on 2.1 and $0.03365 on Lite.

Lite is about twice as fast. Median seconds per new image: 9.27 for 2.1, 4.15 for Lite. Paired prompt by prompt, the median ratio is 2.23 (p = 0.00011, Holm-corrected 0.000774). Both had rare slow calls: 2.1 peaked at 44.17 seconds and Lite at 49.7.

Both print what you ask for. On 10 posters and 10 maps each, every requested phrase appeared in 20 of 20 images from both models.

2.1 adds less. The poster asked for "NANO BANANA" and "OPEN 9-5". 2.1 printed exactly those in 8 of 10 runs, 80% [49.0, 94.3]; Lite in 1 of 10, 10% [1.8, 40.4], adding lines such as "FRESH FRUIT LOCALLY GROWN" and repeating the title on signs and crates. The map asked for three labels: 2.1 added a median 3 words, mostly "TREASURE" beside an X, and Lite a median 15, inventing titles, signatures and place names.

Top row: posters from Nano Banana 2.1 (left) and Lite (right); bottom row: maps from Nano Banana 2.1 (left) and Lite (right). The 2.1 images carry only the requested text; the Lite images add signs, a title, a signature and extra place names.

What to do with it.

  • 🟒 Lite for anything without specified lettering: same $0.0336, about half the wait.
  • 🟒 2.1 for text you specified: 10 of 20 exact against 1 of 20.
  • ⚠️ Most maps carried extra words from both: 2.1 was exact in 2 of 10, Lite in 0 of 10.

What Was Measured

Nano Banana 2.1 Nano Banana 2 Lite
Model gemini-nano-banana-2.1 gemini-3.1-flash-lite-image
Price per 1K image $0.0336 $0.0336
Median seconds, new image 9.27 4.15 πŸ₯‡
Poster, only requested text 8 of 10 πŸ₯‡ 1 of 10
Map, only requested text 2 of 10 0 of 10
Requested phrases present 20 of 20 20 of 20
Edit turned banana blue 5 of 5 5 of 5

Median seconds by prompt, with the fastest and slowest call:

Prompt Runs each 2.1 Lite
Poster 10 9.54 (8.69 to 44.08) 4.33 (3.57 to 11.99)
Map 10 9.79 (6.96 to 13.46) 4.14 (3.48 to 49.7)
Banana 5 8.46 (7.53 to 44.17) 3.38 (3.27 to 4.88)
Desk, eight objects 5 9.28 (8.1 to 13.38) 4.51 (3.58 to 22.87)
Edit to blue 5 8.6 (7.79 to 9.05) 4.22 (3.55 to 4.83)

At This Point You Should Have…

  • Claude Code, and python3 with google-genai 2.x, mcp 2.x, Pillow and SciPy
  • A Gemini API key on a paid tier: neither model has a free tier
  • The repository cloned: gh repo clone xbill9/nb2lite-claude

Step 1 β€” Install the nb21 Plugin

The repository is a Claude Code plugin marketplace. make install validates it, adds the marketplace, installs the plugin and applies the key from ~/gemini.key:

make install
βœ” Validation passed
Adding marketplaceβ€¦βœ” Successfully added marketplace: nb21 (declared in user settings)
Installing plugin "nb21@nb21"...βœ” Successfully installed plugin: nb21@nb21 (scope: user)
gemini_api_key set from /home/xbill/gemini.key

After /mcp, the server is connected:

claude mcp list | grep nb21
plugin:nb21:nb21: python3 /home/xbill/nb2lite-claude/server.py - βœ” Connected

Step 2 β€” Generate an Image

Each tool sends image_size: "1K" and defaults to thinking_level: "minimal". A call from Claude Code:

generate_image(prompt="a small red cube on a white table", thinking_level="minimal")

The result carries the image itself and a structured record:

{"interaction_id":"v1_ChdzWndNYTZyaE9PbUx5dE1QbHVxNjhRNBIXc1p3TWE2cmhPT21MeXRNUGx1cTY4UTQ","saved_to":"/home/xbill/nb2lite-claude/gen_1795988666_e2acc97d.jpg","mime_type":"image/jpeg","model":"gemini-nano-banana-2.1","image_size":"1K","thinking_level":"minimal"}

Pass the interaction_id to edit_image and the model continues from the stored image.

πŸ”Ž Tip: The Two Models Take Different Thinking Levels

2.1 accepts minimal, medium and high, with medium as Google's default. Lite accepts minimal and high. The nb21 server lists only 2.1's three and defaults to minimal, the cheapest, because thinking tokens bill at the text output rate.

Step 3 β€” Run the Benchmark

bench.py sends both models the same prompts at 1K, 1:1 and minimal thinking, one call at a time, and alternates which model goes first on each repeat. The poster and map ran 10 times per model, the banana, the desk and the edit 5 times:

python3 bench.py
{"model": "nb21", "test": "text", "rep": 1, "seconds": 9.58, "error": null}
{"model": "lite", "test": "text", "rep": 1, "seconds": 3.573, "error": null}
{"model": "nb21", "test": "map", "rep": 1, "seconds": 6.955, "error": null}

Every call is saved with its token counts. The first:

{"model": "nb21", "test": "text", "rep": 1, "seconds": 9.58, "image_tokens": 1120, "thought_tokens": 0, "total_output_tokens": 1412}

All 70 calls returned an image; none failed.

Step 4 β€” Read the Text in Each Image

transcribe.py hands each poster and map to gemini-3.5-flash with one instruction: list every piece of visible text, exactly as written. The reader only reads. Every match and count happens in code.

python3 transcribe.py
img/text_nb21_r08.jpg ["NANO BANANA", "OPEN 9-5"]
img/text_nb21_r09.jpg ["NANO BANANA", "THE TINIEST & SWEETEST", "OPEN 9-5"]
img/text_nb21_r10.jpg ["NANO", "BANANA", "OPEN 9-5"]

A title stacked on two lines arrives as two pieces, so the grader joins the pieces before matching.

πŸ”Ž Tip: The Reader Fixes Misspellings

On a Lite map lettered "WOVDS", the reader returned "WOODS". So the grade counts whether requested phrases are present and how many other words appear; spelling within a word is left to the eye.

Step 5 β€” Grade in Code

grade.py scores each image and runs the paired tests. A poster or map is exact when every requested phrase appears once and no other word does; the compass letters N, E, S and W are allowed on the map. An edit turned blue when at least half of its coloured pixels have a blue hue:

python3 grade.py
"text_and_map_exact_mcnemar": {
  "b_nb21_only": 10,
  "c_lite_only": 1,
  "n_pairs": 20,
  "p_exact": 0.01171875
 },

audit_stats.py applies a Holm correction across the seven tests the article reports. The research-kit ablation-stat-auditor tools recomputed each interval and p-value and agreed to the printed digit:

python3 audit_stats.py
  "all_generate_seconds_wilcoxon": {
   "p": 0.00011058151721954346,
   "p_holm": 0.000774,
   "holds_at_0_05": true
  },
  "text_and_map_exact_mcnemar": {
   "p": 0.01171875,
   "p_holm": 0.070312,
   "holds_at_0_05": false
  },

πŸ”Ž Tip: Ten Runs Find Only Large Gaps

With 10 runs per model and a rate near 10 percent, two runs of the same model can differ by about 37.59 points before a gap shows. The poster result, 8 of 10 against 1 of 10, is that large; the map result, 2 of 10 against 0 of 10, is well inside it.

Compare and Contrast

Nano Banana 2.1 Nano Banana 2 Lite
Output sizes 1K, 2K, 4K 1K
Thinking levels minimal, medium, high minimal, high
Price per 1K image $0.0336 $0.0336
Input, per million tokens $1.50 $0.25 πŸ₯‡
Speed, median new image 9.27 s 4.15 s πŸ₯‡
Prints only the requested text 10 of 20 πŸ₯‡ 1 of 20
Batch price per 1K image $0.0168 $0.0168

So, Which One?

Default to Lite: the same price per image and about half the wait. Switch to 2.1 when the image carries text you specified, or when you need 2K or 4K. For an image you will edit in several turns, either works; both held the scene through an edit.

Summary

The goal of this article was to choose between Nano Banana 2.1 and Nano Banana 2 Lite for an MCP image server running at the cheapest settings. The key to the solution was sending both models the same prompts and grading the results in code. The Nano Banana 2.1 and Lite results were:

  • 🟒 Same price per 1K image on both: 1,120 tokens, $0.0336.
  • 🟒 Lite was faster: a median 4.15 seconds against 9.27, a median paired ratio of 2.23 (Holm-corrected p = 0.000774).
  • 🟒 Both printed every requested phrase in 20 of 20 posters and maps.
  • ⚠️ 2.1 printed only the requested text in 10 of 20, Lite in 1 of 20 (p = 0.0117, Holm-corrected 0.070).
  • ⚠️ Edits held the scene on both: blue in 5 of 5, about the same change to the rest of the image (p = 1.0).
  • ❌ Maps from both carried extra words: exact in 2 of 10 from 2.1, 0 of 10 from Lite.

Scope: one session on 2026-11-29 from one Linux machine, the Gemini API's standard tier through the Interactions API, google-genai 2.34.0, 1K at 1:1 with minimal thinking, one call at a time. Each model ran 35 calls: a poster and a map 10 times, a banana, a desk and a blue edit 5 times each. Times include the network and move with Google's load. Text was read by gemini-3.5-flash and graded in code; the reader corrects some misspellings, so spelling is untested. The seven reported tests were corrected together with Holm; after correction only the speed difference holds. Every response also reported between 150 and 439 output tokens that its usage record does not label as image, text or thinking; the costs here bill image, text and thinking tokens at Google's listed prices.

The strategy for choosing a Gemini image model for an MCP server was validated with an incremental step by step approach.

References

Hope you enjoyed it!

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.