# Nano Banana 2 Lite (`nano_banana_2_lite`)

> Google Nano Banana 2 Lite. Text-to-image and image editing.

- Capability: Images (tool `image`) — Text to image, Image to image
- Price: from $0.04 per run (1 credit = $0.01). Exact price for a request: POST https://api.varg.ai/v2/estimate
- Typical time: ~10 s
- JSON Schema: https://api.varg.ai/v2/tools/image?model=nano_banana_2_lite (public, no key)
- Try it: https://varg.ai/dashboard/tools/playground?model=nano_banana_2_lite

## Call it

REST: `POST https://api.varg.ai/v2/tools/image/call` with `Authorization: Bearer $VARG_API_KEY` (create a key at https://varg.ai/dashboard/api).
It answers `202` with a job right away. Poll `GET /v2/jobs/{id}` until `status` is `completed`, then read `output.outputs[0].url` — or pass `options.webhook_url` and get the finished job POSTed to you.

```bash
curl -X POST https://api.varg.ai/v2/tools/image/call \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano_banana_2_lite",
  "prompt": "a serene mountain landscape at golden hour, photorealistic",
  "aspect_ratio": "16:9"
}'
```

MCP: the varg server `https://mcp.varg.ai/mcp` (OAuth sign-in, no key) runs it with `call_tool`:

```json
{
  "tool": "image",
  "input": {
    "model": "nano_banana_2_lite",
    "prompt": "a serene mountain landscape at golden hour, photorealistic",
    "aspect_ratio": "16:9"
  },
  "wait": true
}
```

## Inputs

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `model` | string | yes | — | `nano_banana_2_lite` or a route key below | Which model runs the job. |
| `prompt` | string | no | — | — | — |
| `files` | array of { url } | no | — | — | — |
| `aspect_ratio` | string | no | — | e.g. 16:9 \| 9:16 \| 1:1 \| 4:3 \| 3:4 \| 21:9 \| auto | — |

Media inputs are URLs. Upload a local file first with `POST /v2/files` and pass the returned URL.

## Provider options

Optional, per provider, under `provider_options.<provider>`. Only the options of the provider that runs the job apply — pin a route to choose it.

### provider_options.google

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `prompt` | string | no | — | — | Text prompt for image generation or editing |
| `image_urls` | array of URL strings | no | — | — | — |
| `num_images` | integer | no | — | 1–1 | Always 1: the Gemini API returns one image per call. |
| `aspect_ratio` | string | no | — | 1:1 \| 2:3 \| 3:2 \| 3:4 \| 4:3 \| 4:5 \| 5:4 \| 9:16 \| 16:9 \| 21:9 | — |

## Routes

`"model": "nano_banana_2_lite"` picks a route automatically (priority order, then the inputs you send). To pin one, pass its key as `model`.

| model key | provider | modality | price from | typical time |
|---|---|---|---|---|
| `google:nano_banana_2_lite` | google | text-to-image, image-to-image | $0.04 | ~10 s |

## Example output

- image/jpeg: https://s3.varg.ai/files/ee388aea-c8c3-41de-9345-24881cc87757/file_2d13e3960601.jpg

---

Catalog version 2026-11-11T12:59:09.901887+00:00. All models: https://varg.ai/models/llms.txt
