> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Nano Banana 2 API

> Nano Banana 2 API on Venice: image generation and image editing up to 4K, from $0.10 per image. Anonymized access without your identity.



## Nano Banana 2 API

Nano Banana 2 is an image generation and image editing model by Google, available on the Venice API as `nano-banana-2`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

Nano Banana 2 is Google's Gemini-based image model, generating at up to 4K from prompts of up to 32,768 characters. It pairs with Nano Banana 2 Edit for fast, high-quality edits.

### Nano Banana 2 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `nano-banana-2` | Generate | Anonymized | \$0.10 / image |
| `nano-banana-2-edit` | Edit | Anonymized | \$0.10 / edit |

### Nano Banana 2 specifications

| Spec | Value |
| - | - |
| Provider | Google |
| Released | Feb 26, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Resolutions | 1K, 2K, 4K |
| Aspect ratios | 1:1, 5:4, 4:3, 3:2, 16:9, 21:9, 4:1, 8:1, 4:5, 3:4, 2:3, 9:16, 1:4, 1:8 |
| Prompt limit | 32,768 characters |

### How to use the Nano Banana 2 API

Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "nano-banana-2"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/image/generate \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
    "resolution": "1K",
    "aspect_ratio": "1:1"
  }'
```

### Related models

* [Nano Banana 2.1 API](https://docs.venice.ai/models/nano-banana-2-1.md): \$0.10 / image
* [Qwen Image 2 Pro API](https://docs.venice.ai/models/qwen-image-2-pro.md): \$0.10 / image
* [Hunyuan Image 3.0 API](https://docs.venice.ai/models/hunyuan-image-3-0.md): \$0.09 / image
* [Wan 2.7 Pro API](https://docs.venice.ai/models/wan-2-7-pro.md): \$0.0938 / image
* [Flux 2 Max API](https://docs.venice.ai/models/flux-2-max.md): \$0.09 / image


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.