# Google Nano Banana Pro Edit API

> Nano Banana Pro is Google's new state-of-the-art image generation and editing model

Source: https://www.sandbase.ai/model/google/nano-banana-pro/edit
API reference: https://www.sandbase.ai/model/google/nano-banana-pro/edit/docs

## Facts

- Provider: Google
- Type: Image model
- Model ID: `google/nano-banana-pro/edit`
- Price: From $0.11 per run (15% off list price)
- Capabilities: image 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-pro/edit",
  "images": [
    "https://ai.google.dev/static/gemini-api/docs/images/dress.png",
    "https://ai.google.dev/static/gemini-api/docs/images/model.png"
  ],
  "prompt": "Create a professional e-commerce fashion photo. Take the blue floral dress from the first image and let the woman from the second image wear it. Generate a realistic, full-body shot of the woman wearing the dress, with the lighting and shadows adjusted to match the outdoor environment.",
  "resolution": "1K",
  "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 Pro Edit through SandBase?

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

## README

### Nano Banana Pro Edit

Edit or combine images with Nano Banana Pro. Send one or more images with an instruction; the model keeps identity and layout where you do not ask for changes, and can render new text accurately.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `images` | image URL[], required | — | Images to edit or combine, Image 1, Image 2, … |
| `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` | — | Omit to follow the first input image. |
| `output_format` | `jpeg` / `png` | `png` | Output file format. |
| `resolution` | `1K` / `2K` / `4K` | `1K` | Sets the per-image rate. |

#### Billing

$0.134 per output image at 1K or 2K and $0.24 at 4K, plus $0.0011 per input image, Google's list price.

| Inputs | 1K | 2K | 4K |
|---|---|---|---|
| 1 input image | $0.1351 | $0.1351 | $0.2411 |
| 3 input images | $0.1373 | $0.1373 | $0.2433 |
| 6 input images | $0.1406 | $0.1406 | $0.2466 |

Failed runs are not charged.

#### Prompting

- Say which image is the base and what each other image contributes.
- List what must not change.

#### Limits

- One output image per request.

#### Also on SandBase

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