# Nano Banana 2 Lite

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

- Provider: Gemini
- Category: Image
- Runs: In the background
- Returns: image
- Released: 2026-06-30
- Tool id: `gemini` / `gemini-3.1-flash-lite-image`
- Page: https://spiral.ai/tools/gemini/gemini-3.1-flash-lite-image

## Pricing

Up to $0.047679 per run at the default inputs. $0.325 per 1M input tokens, $39.00 per 1M image output tokens, $1.95 per 1M text output tokens.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `contents` (required) | JSON |  | — | The content of the current conversation with the model. |
| `generationConfig` | JSON |  | — | Configuration options for model generation and outputs. |
| `systemInstruction` | JSON |  | — | Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). |

## Example

```bash
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-3.1-flash-lite-image",
    "input": {
      "contents": [
        {}
      ]
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=gemini&model=gemini-3.1-flash-lite-image

## Common questions

### Nano Banana 2 Lite

**How much does Nano Banana 2 Lite cost?**

Up to $0.047679 per run at the default inputs. $0.325 per 1M input tokens, $39.00 per 1M image output tokens, $1.95 per 1M text output tokens. 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 Lite through an API?**

Send `POST /v1/runs` with `"provider": "gemini"`, `"model": "gemini-3.1-flash-lite-image"` 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 Lite?**

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

**Can my AI agent use Nano Banana 2 Lite?**

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

