Spiral gives your agent every tool with one account. Browse the tools →

GeminiImageAvailable now

gemini-nano-banana-2.1

Generate and edit images with Nano Banana 2.1 from Gemini through one Spiral API key. It runs in the background and returns images. Pay as you go, with no subscription.

Run time p50 · last 24 hours
31.4s
Success rate · last 24 hours
16.4%

Pricing

$0.0437 per 1K image ($0.0655 at 2K, $0.147 at 4K). Prompt: $1.95 per 1M tokens. Reasoning: $9.75 per 1M tokens. Google Search: $0.0182 per query.

Limits

Runs
In the background
Returns
image
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
contents requiredJSON—

The content of the current conversation with the model.

toolsJSON—

Grounding with Google Search, the only tool this model takes (web and image search). Set generationConfig.responseModalities to ["TEXT", "IMAGE"]. Every search query the model runs is billed.

generationConfigJSON—

Configuration options for model generation and outputs.

systemInstructionJSON—

Developer set system instruction(s).

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "gemini",
    "model": "gemini-nano-banana-2.1",
    "input": {
      "contents": {}
    }
  }'

Frequently asked questions

How much does Nano Banana 2.1 cost?

$0.0437 per 1K image ($0.0655 at 2K, $0.147 at 4K). Prompt: $1.95 per 1M tokens. Reasoning: $9.75 per 1M tokens. Google Search: $0.0182 per query. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Nano Banana 2.1 through an API?

Send `POST /v1/runs` with `"provider": "gemini"`, `"model": "gemini-nano-banana-2.1"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Gemini to use Nano Banana 2.1?

No. Spiral runs it on its own Gemini account and charges your Spiral balance.

Can my AI agent use Nano Banana 2.1?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.