Nano Banana 2 API
A gritty cyberpunk alleyway market deep in the lower levels of a dystopian megacity. In the foreground, a heavily modified cyber-mechanic with exposed brushed steel joints, carbon fiber armor plates, and tangled glowing optical cables, repairing a heavily rusted, neon-lit delivery drone. Rain-slicked uneven asphalt reflecting vivid magenta, cyan, and amber holographic advertisements. Towering brutalist skyscrapers covered in air conditioning units and satellite dishes, vanishing into thick, polluted smog above. Dense crowds of shadowy figures wearing worn synthetic leather jackets and glowing cybernetic visors. Steam billowing from rusted floor grates, an intricate maze of exposed copper pipes, and blinking server racks lining the crumbling concrete walls. Cinematic lighting, volumetric fog, anamorphic lens flare, harsh neon cast light, deep contrasting shadows, gritty grime texture, sharp focus on the mechanic's cybernetic hand.
.png)
Upload up to 14 images (max 20MB each)
Click to upload or drag and drop
Supported formats: JPEG, JPG, PNG, WEBP
Maximum file size: 20MB; Maximum files: 14
.png)
History
最多保留20条0 运行中 · 0 已完成
Nano Banana 2 API — Google 最快的图像模型,一个 API Key 即可使用
基于 Gemini 3.1 Flash Image。生成和编辑 4K 图像,支持精准文本渲染和多图一致性 — Flash 级推理速度,无需 Google Cloud 配置。

Billing Rules
- •Output image price varies by quality (0.5K/1K/2K/4K)
- •Reference images: charged per image uploaded
- •Web search: charged per request when enabled. A single request may trigger multiple searches.
Pricing
| Model | Mode | quality | Price |
|---|---|---|---|
| Nano Banana 2 | Input Image | Reference | $0.0004/ image(0.0324 Credits) |
| Nano Banana 2 | Output Image | 0.5K | $0.0359/ image(2.5817 Credits) |
| Nano Banana 2 | Output Image | 1K | $0.0538/ image(3.8708 Credits) |
| Nano Banana 2 | Output Image | 2K | Popular $0.0806/ image(5.8061 Credits) |
| Nano Banana 2 | Output Image | 4K | $0.1210/ image(8.7092 Credits) |
| Nano Banana 2 | Web Search | - | $0.0112/ request(0.8064 Credits) |
If it's down, we automatically use the next cheapest available—ensuring 99.9% uptime at the best possible price.
Nano Banana 2 API 的能力
基于自然语言的语义编辑
Nano Banana 2 API 能够理解诸如“移除反光”或“将马克杯换成玻璃杯”之类的意图,并在保持场景其余部分完整的情况下应用更改。这使得电商素材清理、内容更新和社交媒体变体生成变得非常快速,因为您是通过描述结果而非绘制蒙版来进行编辑的。

清晰的文本替换与本地化
Nano Banana 2 API 专为图像内的清晰文本设计,确保海报、菜单、价格卡和 UI 原型在编辑后保持可读。它可以替换措辞、调整标签并保持布局平衡,帮助团队在大规模生产中实现资产的跨语言本地化,而无需重新构建每个设计。

多图融合保持身份一致性
为了保持角色或产品的一致性,Nano Banana 2 API 在单次请求中支持多达 14 张参考图。您可以在更改场景、角度或背景的同时,使模特、吉祥物或产品线在系列作品中保持视觉对齐,非常适合大规模的目录和广告制作。

为什么开发者选择 Nano Banana 2 API
基于 Gemini 3.1 Flash Image 预览版构建,Nano Banana 2 API 提供可靠的编辑、清晰的文本渲染和多图一致性,并提供官方和 Lite 路由以平衡稳定性和成本。
Flash 级推理速度
基于 Gemini 3.1 Flash 架构,Nano Banana 2 以 Flash 速度提供 Pro 级的世界知识、质量和推理能力。更快的生成意味着交互式应用和批量工作流中更紧密的反馈循环。
生产级 4K 分辨率
生成 1K、2K 或原生 4K 输出,文本清晰可读。海报、菜单、图表和 UI 原型无需额外清理或放大即可交付。
一个密钥,零配置
通过 EvoLink 使用单个 API 密钥访问 Nano Banana 2。无需 Google Cloud 项目、无需计费配置、无需配额申请。与您已在使用的 OpenAI 兼容格式相同。
如何集成 Nano Banana 2 API
发送图像,描述更改,接收即用型结果。
第 1 步 — 获取 API 密钥
在 EvoLink 注册(免费),从控制台获取 API 密钥。即刻可用于 Nano Banana 2 和 200+ 其他模型。
第 2 步 — 发送请求
向 EvoLink 端点发送 POST 请求,包含图像(URL 或 Base64)、提示词和可选参考图。OpenAI 兼容格式 — 从其他服务商迁移只需极少代码改动。
第 3 步 — 审核与部署
接收生成或编辑后的图像。保存到您的存储空间,跨渠道发布。准备好后可使用批量处理进行扩展。
Nano Banana 2 API 核心特性
专为编辑密集型生产工作流打造
基于指令的语义编辑
Nano Banana 2 API 将简短的提示词转化为针对性的编辑(如移除、替换或重绘),同时保留构图,帮助团队避免手动绘制蒙版并保持快速迭代。
图像内清晰文本
Gemini 3.1 Flash 图像模型旨在为海报、菜单、图表和 UI 原型渲染可读文本,帮助 Nano Banana 2 API 的输出在不同语言和格式下保持清晰。
多图融合(多达 14 张)
在单次 Nano Banana 2 API 请求中混合多个参考,使人物、产品和视觉风格在一系列编辑或变体中保持一致。
光照与颜色调整
通过更改色调、光照方向或昼夜设置来优化氛围。这对于品牌风格对齐和季节性营销活动非常有用。
1K 到 4K 输出选项
生成 1K、2K 或 4K 结果并支持超分交付,为网页、应用和印刷资产保持边缘锐利。
官方与 Lite 路由
选择官方 Gemini 3.1 Flash 图像预览路由以获得稳定性,或在可以权衡部分控制力时使用 Nano Banana 2 Lite 路由以降低成本。
Nano Banana 2 API 常见问题
Everything you need to know about the product and billing.
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/images/generationsGenerate Image
Create an image generation task using text prompts or reference images. Supports text-to-image, image-to-image, and image editing modes.
Asynchronous processing mode, use the returned task ID to .
Generated image links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: gemini-3.1-flash-image-previewImage generation model name.
| Value | Description |
|---|---|
| gemini-3.1-flash-image-preview | Nano Banana 2 model |
gemini-3.1-flash-image-previewpromptstringRequiredPrompt describing the image to be generated or how to edit the input image.
Notes
- Limited to 2000 tokens
A cat playing in the grasssizestringOptionalDefault: autoAspect ratio of the generated image.
| Value | Description |
|---|---|
| auto | Auto detect |
| 1:1 | Square (1:1) |
| 1:4 | Tall vertical (1:4) - Coming soon |
| 4:1 | Wide horizontal (4:1) - Coming soon |
| 1:8 | Ultra-tall vertical (1:8) - Coming soon |
| 8:1 | Ultra-wide horizontal (8:1) - Coming soon |
| 2:3 | Portrait (2:3) |
| 3:2 | Landscape (3:2) |
| 3:4 | Portrait (3:4) |
| 4:3 | Landscape (4:3) |
| 4:5 | Portrait (4:5) |
| 5:4 | Landscape (5:4) |
| 9:16 | Vertical (9:16) |
| 16:9 | Horizontal (16:9) |
| 21:9 | Ultra-wide (21:9) |
Notes
- Extreme aspect ratios (1:4, 4:1, 1:8, 8:1) are not yet available
16:9qualitystringOptionalDefault: 2KQuality of the generated image.
| Value | Description |
|---|---|
| 0.5K | Draft quality (lowest cost) |
| 1K | Standard quality |
| 2K | High quality (default) |
| 4K | Ultra quality (Higher Cost) |
Notes
- Different quality levels have different pricing
2Kmodel_params.web_searchbooleanOptionalWhether to enable web search. When enabled, the model will use web search results to optimize image generation. Nested inside model_params object.
trueimage_urlsarrayOptionalReference image URL list for image-to-image and image editing functions.
Notes
- Max 14 images per request
- Max size: 20MB per image
- Formats: .jpeg, .jpg, .png, .webp
- URLs must be directly accessible by the server
- Maximum 4 real person images
https://example.com/image1.pngcallback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered on completion, failure, or cancellation
- Sent after billing confirmation
- HTTPS only, no internal IPs
- Max length: 2048 chars
- Timeout: 10s, Max 3 retries
https://your-domain.com/webhooks/image-task-completed