Nano Banana Pro 图像编辑
google/nano-banana-pro/edit
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。
示例
参数
| 名称 | 类型 | 默认 | 约束 | 说明 |
|---|---|---|---|---|
| images *输入图片 | image_upload | — | image/* · 0–14 items | 上传最多14张图片进行编辑。AI将根据您的提示词修改这些图片。 |
| prompt *提示词 | textarea | ≤ 5000 chars | 描述您希望如何编辑图片。请具体说明您想要的更改、风格调整或修改内容。 | |
| aspect_ratio宽高比 | select | — | 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/edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"images": [
"https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/d0328839a75f.png"
],
"prompt": "Change the model'\''s casual outfit to a formal dark blue business suit, add soft studio lighting, and preserve facial features.",
"aspect_ratio": "3:4",
"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/edit",
headers=HEADERS,
json={
"input": {
"images": [
"https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/d0328839a75f.png"
],
"prompt": "Change the model's casual outfit to a formal dark blue business suit, add soft studio lighting, and preserve facial features.",
"aspect_ratio": "3:4",
"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/edit", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"images": [
"https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/d0328839a75f.png"
],
"prompt": "Change the model's casual outfit to a formal dark blue business suit, add soft studio lighting, and preserve facial features.",
"aspect_ratio": "3:4",
"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 Edit (Gemini 3.0 Pro Image)
专业级 AI 图像编辑模型:4K 画质、语义感知、智能修图。
Google Nano Banana Pro Edit 是一款基于 Gemini 3.0 架构的高级 AI 图像编辑模型。与普通的生图模型不同,它专为 “修改现有图像” 而生。你可以通过简单的自然语言指令,对图像进行物体替换、风格转换或光影调整,同时保持原生 4K 的超高清晰度和画面的一致性。
🚀 核心亮点
- 原生 4K 编辑:在修改图像的同时保持极高的清晰度,输出细节丰富、边缘锐利的生产级图像。
- 语义感知与环境融合:模型深刻理解画面结构。当你指令“将阴天改为日落”时,它不仅会更换天空,还会自动调整场景中所有物体的光照和色温,使其自然融合。
- 多语言图像文字编辑:独有的图像内文字处理能力,支持在图片中生成或替换多国语言文字,并自动匹配透视和字体风格。
- 虚拟摄影控制:支持通过文字调整景深(虚化)、焦段、角度和色彩分级,实现类似后期修图的效果。
- 角色一致性:品牌营销的利器——可以在保留模特面部特征或品牌标识不变的前提下,随意更换背景或服装。
🛠️ 使用方式
| 参数 | 说明 |
|---|---|
| 输入 | 现有图片 + 文本提示词 |
| 输出 | 编辑后的图片 (JPEG / PNG) |
| 最高分辨率 | 4K (Ultra HD) |
| 支持比例 | 灵活支持 (1:1, 4:3, 16:9, 21:9 等) |
常用指令示例:
- 背景替换:“将多云的天空换成晴朗的日落。”
- 光影重塑:“添加柔和的摄影棚灯光和现代风格背景。”
- 物体修改:“把模特的休闲装换成正式的商务西装。”
- 风格迁移:“将这张照片变成赛博朋克风格。”
💰 定价策略
| 分辨率 | 单次编辑价格 |
|---|---|
| 1k (标准) | $0.14 |
| 2k (高清) | $0.14 |
| 4k (超清) | $0.24 |
💡 最佳应用场景
- 电商摄影:无需重新拍摄即可更改产品的材质、颜色或展示背景。
- 广告营销:快速调整广告图素材,例如将图片中的广告牌文字翻译成当地语言。
- 社交媒体:为同一张照片制作多种风格变体,丰富内容产出。
- 艺术设计:设计师可快速验证不同的配色方案和构图创意。
🔗 相关模型
- 需要从零生成图像?请尝试 Nano Banana Pro Text-to-Image。
- 需要更高的像素?请尝试 Nano Banana Pro Edit Ultra。
注意:请确保您的提示词符合 Google 安全准则。包含受限内容的提示词可能会导致生成失败。
相关模型
xAI Grok Imagine Image v2.0 图片编辑
xAI Grok Imagine Image V2.0 Edit 可根据文本提示词对输入图片进行编辑,并支持可配置的分辨率和质量,适用于精细图片编辑、视觉优化、创意变体、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Qwen Image 3.0 Pro Edit|快速图片编辑
Qwen Image 3.0 Pro Edit 是一款专业级图片编辑模型,具备出色的画质和高级指令理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能优异,无冷启动,价格实惠。
图片换头
将照片中的人物头部替换为参考图中的头部。先上传目标照片,再上传头部参考图。
Nami Qwen I2I Spicy
使用自然语言指令编辑参考图片,并尽量保留未要求修改的内容。
Nano Banana 图像编辑
高性价比智能修图。 无需蒙版即可实现物体替换与风格迁移,极速响应,成本低廉。
Nano Banana 2 图像编辑
4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。
Seedream V5.0 Pro Edit 图片编辑与生成 API
ByteDance 推出的 Seedream V5.0 Pro Edit 可基于单张图片或多参考图进行图片编辑与生成,最多支持 10 张参考图片,支持宽高比选择以及 1K / 2K 输出档位。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。
Seedream 5.0 Lite Edit Sequential
Seedream 5.0 Lite Edit Sequential支持多图编辑,同时锁定角色和物体在不同画面中的一致性。它可以检测主要主体,保持连贯性,并进行受控编辑,支持最高4K输出。提供即用型REST推理API,性能最佳,无冷启动,价格实惠。