Nano Banana Pro API
利用下一代 Nano Banana 2 API 进行语义照片处理。基于 Google Gemini 3 Pro 架构构建,以无与伦比的一致性执行复杂的自然语言编辑——从文字修正到多图融合。
A highly dynamic, futuristic infographic poster for "Evolink," blending comic book art with high-end sci-fi concept art. A powerful, glowing cybernetic entity, the "Evo-Agent," bursts forth from a central data vortex platform. Data streams and light trails connect various floating holographic interfaces around the hero, forming a loose six-panel structure without rigid borders.Top section shows a sprawling, impossibly detailed digital landscape (8K Reality) transitioning into a massive holographic brain structure (Quantum Core). Mid-section features the Agent interacting with flowing text that translates instantly (Universal Decryption), flanked by complex floating holographic UI controls with sliders for manipulating visual parameters (Advanced UI). Bottom section displays floating screens in varied aspect ratios (1:1, 9:16, wide) showing identical content, next to multiple translucent echoes of the Agent in perfect pose consistency.The style is sleek, dominant tech-noir, with glowing circuit patterns and lens flares. Footer area with stylized minimalist node icons. Bold glowing tagline across the bottom: "EVOLINK: THE ARCHITECTURE OF FUTURE THOUGHT."

Upload reference images for video generation
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 10

Pricing
Nano Banana 2 API:最佳图像编辑器模型
无需复杂蒙版即可执行精准的指令式编辑。Nano Banana 2 API 能够处理双语文字修改、角色一致性和背景替换,适用于大批量专业工作流。

Nano Banana 2 API 的能力
为什么开发者选择 Nano Banana 2 API
以极具竞争力的价格获取最先进的 Gemini 3 推理能力,实现基于指令的编辑。
基于指令的控制
使用自然语言(例如“把衣服换成红裙子”)引导 Nano Banana 2 API,无需复杂的参数微调或图层。
2K/4K 原生分辨率
该模型生成原生的 2K 输出并具备 4K 超分能力,确保编辑区域与专业摄影作品无缝融合。
高性价比扩展
通过针对效率优化的定价降低运营成本,每次成功的高保真编辑平均仅需约 $0.039。
如何集成 Nano Banana 2 API
处理基于 Gemini 的复杂图像修改的简单“请求-响应”流程。
第 1 步 — 构建请求参数
向 Nano Banana 2 API 端点发送包含 Base64 或 URL 格式底图以及可选参考图的 POST 请求。
第 2 步 — 定义指令
向 Nano Banana 2 API 传递描述所需更改的文本提示词(例如“把背景换成雪山”)。
第 3 步 — 获取与部署
在 JSON 响应中接收处理后的高分辨率图片 URL,即可立即在您的应用程序中展示。
API 核心特性
专为精细控制和自动化设计
语义局部重绘
通过自然语言理解编辑特定像素。
多图批处理
处理具有一致风格约束的批次。
场景重构
替换背景同时保持主体景深正确。
文字风格保留
修改内嵌文字而不破坏视觉设计。
双语指令
原生支持多语言复杂提示词。
透明定价
Nano Banana 2 API 采用按次付费模式(约 $0.039)。
Nano Banana 2 API vs. 替代方案
为您的技术栈选择合适的编程化编辑器
| Model | Duration | Resolution | Price | Strength |
|---|---|---|---|---|
| Nano Banana 2 API | N/A | 2K 原生 / 4K 超分 | ~$0.039/次请求 | 卓越的文字编辑、Gemini 3 推理和多图一致性。 |
| Qwen 图像编辑 | N/A | Web 优化 | ~$0.04/次请求 | 良好的通用局部重绘,但缺乏 Nano Banana 特有的文字渲染能力。 |
| Midjourney API | N/A | 1024px 基础 | 订阅/积分制 | 极高的艺术风格能力,但难以进行编程化的精准编辑。 |
Nano Banana Pro API 常见问题解答
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: nano-banana-2-liteImage generation model name.
| Value | Description |
|---|---|
| nano-banana-2-lite | Cost-effective option |
| gemini-3-pro-image-preview | Higher stability for commercial use |
nano-banana-2-litepromptstringRequiredPrompt describing the image to be generated or how to edit the input image.
Notes & Constraints
- 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) |
| 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) |
'16:9'qualitystringOptionalDefault: 2KQuality of the generated image.
| Value | Description |
|---|---|
| 1K | Standard quality |
| 2K | High quality (default) |
| 4K | Ultra quality (Higher Cost) |
Notes & Constraints
- 4K quality incurs additional charges
2Kimage_urlsarrayOptionalReference image URL list for image-to-image and image editing functions.
Notes & Constraints
- Max 10 images per request
- Max size: 10MB per image
- Formats: .jpeg, .jpg, .png, .webp
- URLs must be directly accessible by the server
- Maximum 5 real person images
https://example.com/image1.pngcallback_urlstringOptionalHTTPS callback address after task completion.
Notes & Constraints
- 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

