> ## 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.

# Nano Banana 2 API

> Venice 上的 Nano Banana 2 API：图像生成和图像编辑，最高 4K，每张图像 $0.10 起。匿名访问，不暴露你的身份。

> [accordion] 纯文本规格说明
>
> ## Nano Banana 2 API
>
> Nano Banana 2 是 Google 推出的图像生成和图像编辑模型，在 Venice API 上以 `nano-banana-2` 提供。请求经过匿名化处理，提供商无法看到你的身份。
>
> ### Nano Banana 2 API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `nano-banana-2` | 生成 | Anonymized | \$0.10 / 张 |
> | `nano-banana-2-edit` | 编辑 | Anonymized | \$0.10 / 次编辑 |
>
> ### Nano Banana 2 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | Google |
> | 发布日期 | 2026年2月26日 |
> | 隐私 | Anonymized |
> | 状态 | 稳定 |
> | 分辨率 | 1K, 2K, 4K |
> | 宽高比 | 1:1, 3:2, 16:9, 21:9, 9:16, 2:3, 3:4, 4:5 |
> | 提示词上限 | 32,768 字符 |
>
> ### 如何使用 Nano Banana 2 API
>
> 使用 `"model": "nano-banana-2"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/image/generate` 发送请求。
>
> ```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"
>   }'
> ```
>
> ### 相关模型
>
> * [Nano Banana 2.1 API](https://docs.venice.ai/zh/models/nano-banana-2-1.md): \$0.10 / 张
> * [Qwen Image 2 Pro API](https://docs.venice.ai/zh/models/qwen-image-2-pro.md): \$0.10 / 张
> * [Hunyuan Image 3.0 API](https://docs.venice.ai/zh/models/hunyuan-image-3-0.md): \$0.09 / 张
> * [Wan 2.7 Pro API](https://docs.venice.ai/zh/models/wan-2-7-pro.md): \$0.0938 / 张
> * [Flux 2 Max API](https://docs.venice.ai/zh/models/flux-2-max.md): \$0.09 / 张


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