# Google Nano Banana 2.1 Text to Image API

> Nano Banana 2.1 is Google's latest fast image generation model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K to 4K output.

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

## Facts

- Provider: Google
- Type: Image model
- Model ID: `google/nano-banana-2.1`
- Price: From $0.03 per run (15% off list price)
- Capabilities: text to image, commercial
- 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.1",
  "prompt": "A photo of a close-up portrait of an elderly Japanese ceramicist with deep, sun-etched wrinkles and a warm, knowing smile. He is carefully inspecting a freshly glazed tea bowl. The setting is his rustic, sun-drenched workshop. The scene is illuminated by soft, golden hour light streaming through a window, highlighting the fine texture of the clay. Captured with an 85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful. Vertical portrait orientation.",
  "resolution": "1K",
  "aspect_ratio": "1:1",
  "output_format": "png",
  "enable_web_search": false,
  "enable_image_search": false
}'
```

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.1 Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "google/nano-banana-2.1" 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.1 Text to Image and the other models in the catalog; you do not need to sign up with Google separately.
