Nano Banana Pro 文生图
google/nano-banana-pro/text-to-image
Gemini 3.0 Pro 旗舰版。专为 4K 原生画质打造,支持图像内多语言文字渲染与专业摄影参数控制。
示例



参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| prompt *提示词 | textarea | — | ≤ 5000 chars | 描述您想要生成的图像。请具体说明主题、风格、颜色和构图。 |
| aspect_ratio宽高比 | select | 16:9 | 1:1 | 3:2 | 2:3 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | … | 选择生成图像的宽高比。 |
| resolution分辨率 | select | 1k | 1k | 2k | 4k | 选择输出图像的分辨率。 |
输出字段
| 字段 | 类型 | 说明 |
|---|---|---|
| images | array<string> | Generated image URLs |
API
通过统一 REST API 调用本模型;在 API Keys 页获取密钥。
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/google/nano-banana-pro/text-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A cinematic, photorealistic wide shot of a futuristic coffee shop interior with floor-to-ceiling glass windows overlooking a rainy cyberpunk city skyline. A glowing neon sign on the wall explicitly reads '\''NANO BANANA'\''. 85mm lens, f/1.8 depth of field, volumetric lighting, ray tracing, hyper-detailed textures, 8k resolution.",
"aspect_ratio": "21:9",
"resolution": "4k"
}
}'
# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
-H "Authorization: Bearer YOUR_API_KEY"Python
import time, requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Submit
resp = requests.post(
"https://www.namifusion.com/api/v1/marketplace/run/google/nano-banana-pro/text-to-image",
headers=HEADERS,
json={
"input": {
"prompt": "A cinematic, photorealistic wide shot of a futuristic coffee shop interior with floor-to-ceiling glass windows overlooking a rainy cyberpunk city skyline. A glowing neon sign on the wall explicitly reads 'NANO BANANA'. 85mm lens, f/1.8 depth of field, volumetric lighting, ray tracing, hyper-detailed textures, 8k resolution.",
"aspect_ratio": "21:9",
"resolution": "4k"
}
},
)
resp.raise_for_status() # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()
# 2) Poll until a terminal state (completed / failed / cancelled).
# This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
if time.time() > deadline:
raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
time.sleep(3)
poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
poll.raise_for_status()
task = poll.json()
print(task["status"], task.get("output"))JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };
// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/google/nano-banana-pro/text-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "A cinematic, photorealistic wide shot of a futuristic coffee shop interior with floor-to-ceiling glass windows overlooking a rainy cyberpunk city skyline. A glowing neon sign on the wall explicitly reads 'NANO BANANA'. 85mm lens, f/1.8 depth of field, volumetric lighting, ray tracing, hyper-detailed textures, 8k resolution.",
"aspect_ratio": "21:9",
"resolution": "4k"
}
}),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();
// 2) Poll until a terminal state (completed / failed / cancelled).
// This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
await new Promise((r) => setTimeout(r, 3000));
const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
task = await poll.json();
}
console.log(task.status, task.output);文档
Google Nano Banana Pro (Gemini 3.0 Pro Image)
基于 Gemini 3.0 架构的顶级 4K 文本生成图像模型——专为速度与画质优化。
Google Nano Banana Pro 是一款轻量级但功能强大的 AI 图像生成模型。它能够以极低的延迟生成高达 4K 分辨率的图像,且没有冷启动时间。该模型专为创作者设计,能够将简单的文本提示词瞬间转化为清晰、生动且逼真的视觉作品。
🚀 核心亮点
- 超高清分辨率:支持生成原生 4K 图像,针对移动端和 Web 端展示进行了深度优化。
- 多语言文字渲染:支持在图像内生成和编辑多语言文本,自动优化字体清晰度和排版布局,告别乱码。
- 自然语言编辑:通过对话即可修改图像。模型理解场景结构和物体关系,无需复杂蒙版即可实现逼真修改。
- 专业摄影控制:支持调整镜头角度、焦点、景深(DoF)和色彩风格,输出如摄影大片般的质感。
- 角色与风格一致性:在连续生成中保持角色特征、品牌元素和整体画风的高度统一。
- 灵活画幅比例:支持从 1:1 到 9:16、21:9 等多种比例,完美适配社交媒体、广告横幅及打印需求。
🛠️ 技术参数
| 参数 | 说明 |
|---|---|
| 模型架构 | Gemini 3.0 Pro Image |
| 输入格式 | 文本提示词 (Prompt)、自然语言指令 |
| 输出格式 | 高质量 JPEG / PNG |
| 响应速度 | 即时推理 (无冷启动) |
提示词示例:
“一只金毛猎犬在日落时的向日葵花田里玩耍。” “倒映着霓虹灯的未来城市天际线和潮湿街道。” “窗边摆放着咖啡和羊角面包的优雅静物摄影。”
💰 定价策略
| 分辨率 | 单张价格 |
|---|---|
| 1k (标准) | $0.14 |
| 2k (高清) | $0.14 |
| 4k (超清) | $0.24 |
💡 最佳应用场景
- 社交媒体营销:即时生成符合品牌调性的视觉素材。
- 电商与广告:无需实拍即可产出高质量的产品展示图。
- 概念艺术:为故事板和创意方案快速生成设计草图。
- 教育演示:将复杂的抽象概念转化为直观的图像。
📊 模型对比
Nano Banana Pro 在市场中的定位:
- 对比 FLUX.1 [dev]:Nano Banana Pro 胜在语义理解和无需遮罩的智能编辑;FLUX.1 则更侧重于极致的分辨率控制和微小细节。
- 对比 GPT-Image-1 (OpenAI):GPT-Image-1 是一款优秀的通用生成器,而 Nano Banana Pro 在版式控制和多语言文字渲染等设计工作流中表现更佳。
- 对比初代 Nano Banana:Pro 版本在推理能力、文字清晰度和相机控制上大幅提升,适合对质量要求更高的场景。
注意:请确保您的提示词符合 Google 安全准则。包含受限内容的提示词可能会导致生成失败。
相关模型
xAI Grok Imagine Image v2.0 文生图
xAI Grok Imagine Image V2.0 文生图可根据文本提示词生成高质量图片,并支持配置宽高比、分辨率和质量,适用于创意视觉、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Qwen Image 3.0 Pro 文生图
Qwen Image 3.0 Pro 是一款专业级文生图模型,具备卓越画质和先进的提示词理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能出色,无冷启动,价格实惠。
OpenAI GPT Image 2 文本生成图片
OpenAI 的 GPT Image 2 文本生成图片模型可根据自然语言提示词生成高质量图片。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
OpenAI GPT Image 2 Edit 图像编辑
OpenAI 的 GPT Image 2 Edit 可通过自然语言指令结合一张或多张参考图片进行图像编辑。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。
Nami Z-Image T2I Spicy
根据文本提示词生成图片,支持自定义宽高、提示词优化和随机种子。
Nano Banana 文生图
Gemini 2.5 Flash 标准版。轻量极速。兼顾速度与成本,是批量生成与快速原型设计的最佳选择。
Nano Banana Pro 文生图
Gemini 3.0 Pro 旗舰版。专为 4K 原生画质打造,支持图像内多语言文字渲染与专业摄影参数控制。
Google Nano Banana Lite 文生图 API
Google Nano Banana 2 Lite 文生图可根据文本提示词生成高质量图片,具备低延迟、灵活宽高比和快速出图能力,适用于创意与生产工作流。即开即用的 REST 推理 API,性能出色,无冷启动,价格实惠。