# Google Nano Banana 2 Lite Text to Image API

> Nano Banana 2 Lite by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Source: https://www.sandbase.ai/models/google/nano-banana-2-lite
API reference: https://www.sandbase.ai/models/google/nano-banana-2-lite/docs

## Facts

- Provider: Google
- Type: Image model
- Model ID: `google/nano-banana-2-lite`
- Price: $0.03 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/nano-banana-2-lite",
  "prompt": "An action shot of a black lab swimming in an inground suburban swimming pool. The camera is placed meticulously on the water line, dividing the image in half, revealing both the dogs head above water holding a tennis ball in it'"'"'s mouth, and it'"'"'s paws paddling underwater.",
  "output_format": "png"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Google Nano Banana 2 Lite Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "google/nano-banana-2-lite" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Nano Banana 2 Lite Text to Image and the other models in the catalog; you do not need to sign up with Google separately.

## README

### Nano Banana 2 Lite Text to Image

Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) is the low-latency, lowest-cost Nano Banana tier for high-volume generation at 1K.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 50,000 characters. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | — | Output frame shape. |
| `output_format` | `jpeg` / `png` | `png` | Output file format. |
| `seed` | integer | random | Fix it to compare prompt changes. |
| `thinking_level` | `minimal` / `high` | — | `high` reasons more about the prompt before drawing; `minimal` is faster. |
| `system_prompt` | string | — | Optional standing instructions applied to every request. |

#### Billing

$0.0336 per 1K image, Google's list price.

| Request | Price |
|---|---|
| One image | $0.0336 |

Failed runs are not charged.

#### Prompting

- Keep prompts direct; use `thinking_level: high` for complex layouts.

#### Limits

- Output is 1K only.

#### Also on SandBase

Other Nano Banana endpoints: `google/nano-banana-pro`, `google/nano-banana-pro/edit`, `google/nano-banana-2`, `google/nano-banana-2/edit`, `google/nano-banana-2-lite/edit`.
