Smoke-test 1:4, 4:1, 1:8 and 8:1 on Nano Banana 2.1 for $0.30

Four calls at 0.5K, one per new ratio, cost $0.30 on Sume ($0.80 at 4K). A script that prints status and cost per ratio, and what a 400 or 202 means.

3 min readSume
All posts

The cheapest real check that all four new Nano Banana 2.1 ratios work on your key is four calls at 0.5K: $0.075 each, $0.30 total. The same four at 4K cost $0.20 each, $0.80 total, so keep smoke tests at the small tier.

What each run costs

One call per ratio (read 2026-10-09)
ResolutionPrice per imageFour ratios
0.5K$0.075$0.30
1K$0.10$0.40
2K$0.15$0.60
4K$0.20$0.80

The script

It prints the status code, the billed usage.cost, and any error object for each ratio.

import os, requests

H = {"Authorization": f"Bearer {os.environ['SUME_API_KEY']}"}
for ratio in ["1:4", "4:1", "1:8", "8:1"]:
    r = requests.post("https://api.sume.com/v1/images", headers=H, timeout=60, json={
        "model": "google/nano-banana-2.1",
        "prompt": "A plain grey gradient with one small red circle",
        "aspect_ratio": ratio,
        "resolution": "0.5K",
    })
    body = r.json()
    print(ratio, r.status_code, body.get("usage", {}).get("cost"), body.get("error"))

Reading the output

Status codes the script can print (read 2026-10-09)
StatusMeaningWhat to do
200Image body with data[].url and usage.costPass
202Job envelope; generation passed the 30 s budgetPoll the job and fetch the result
400unsupported_parameter if the model does not list the valueCheck the ratio list for the model

Gotchas

  • A failed or cancelled generation is not billed; a completed one is billed in full.
  • Treat 202 as a pass for the ratio check, then read the job result.
  • Do not run the smoke test on every commit. Run the free ratio-list check from GET /v1/images/models there, and the paid test nightly.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume