Nano Banana 图像编辑

google/nano-banana/edit

高性价比智能修图。 无需蒙版即可实现物体替换与风格迁移,极速响应,成本低廉。

示例

Nano Banana 图像编辑 example 1

参数

名称类型默认约束说明
images *输入图片image_uploadimage/* · 0–10 items上传最多10张图片进行编辑。AI将根据您的提示词修改这些图片。
prompt *提示词textarea≤ 5000 chars描述您希望如何编辑图片。请具体说明您想要的更改、风格调整或修改内容。
aspect_ratio宽高比select1:1 | 3:2 | 2:3 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | …选择输出图片的宽高比。如果不指定,将保持原始宽高比。

输出字段

字段类型说明
imagesarray<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/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/670617a106e7.jpeg"
    ],
    "prompt": "Place the product on a sleek, polished concrete podium surrounded by tropical monstera leaves. Change the lighting to a warm, dappled sunlight effect, creating soft shadows that mimic a golden hour photoshoot. enhancing the texture of the material while maintaining the original brand colors. 8k resolution, commercial product photography.",
    "aspect_ratio": "4:5"
  }
}'

# 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/edit",
    headers=HEADERS,
    json={
        "input": {
            "images": [
                "https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/670617a106e7.jpeg"
            ],
            "prompt": "Place the product on a sleek, polished concrete podium surrounded by tropical monstera leaves. Change the lighting to a warm, dappled sunlight effect, creating soft shadows that mimic a golden hour photoshoot. enhancing the texture of the material while maintaining the original brand colors. 8k resolution, commercial product photography.",
            "aspect_ratio": "4:5"
        }
    },
)
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/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/670617a106e7.jpeg"
      ],
      "prompt": "Place the product on a sleek, polished concrete podium surrounded by tropical monstera leaves. Change the lighting to a warm, dappled sunlight effect, creating soft shadows that mimic a golden hour photoshoot. enhancing the texture of the material while maintaining the original brand colors. 8k resolution, commercial product photography.",
      "aspect_ratio": "4:5"
    }
  }),
});
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 Edit

智能图像编辑与变换:快速、精准、超值。

Google Nano Banana Edit 是一款专为直观图像处理而设计的流线型 AI 模型。它允许开发者和创作者使用自然语言提示词来修改现有图像——无需手动绘制蒙版或使用复杂的修图工具,即可完成局部重绘 (Inpainting)、外画扩展 (Outpainting) 和背景替换等复杂任务。该模型以极具竞争力的价格提供零冷启动的专业级编辑服务。


🚀 核心亮点

  • 自然语言编辑:通过简单的文字指令修改图像。无需手动抠图或建立图层,只需描述你想要的变化。
  • 语义场景感知:模型能够理解画面结构和光影关系。例如替换天空时,它会自动调整前景的光照以自然匹配新背景。
  • 无缝重绘与扩展:移除画面中的干扰物体、填补缺失细节,或向外扩展画布,生成的内容与原图完美融合。
  • 风格与色调保留:在进行指定修改的同时,严格保留原图的纹理、阴影和整体艺术风格。
  • 高效能:专为速度和低算力成本优化,非常适合高并发的自动化工作流。

🛠️ 使用方式

参数说明
输入现有图片 + 文本提示词
输出JPEG / PNG / WEBP
核心能力风格迁移、重打光、物体替换、背景置换
响应速度即时 (无冷启动)

编辑指令示例:

  • “将多云的天空换成晴朗的日落。”
  • “添加柔和的摄影棚灯光和现代风格背景。”
  • “把模特的衣服换成正式的商务西装。”

💰 定价策略

类型价格
标准编辑$0.038 / 张

💡 最佳应用场景

  • 电商运营:批量更换产品背景或更改服装颜色,快速生成商品图。
  • 市场营销:无需重新拍摄即可快速更新不同季节或节日的营销素材。
  • 内容创作:轻松生成社交媒体图片的多种变体。
  • 设计自动化:通过 API 批量处理图像以应用特定的视觉调整。

🔗 模型系列

  • Nano Banana (标准版):用于从零生成图像。
  • Nano Banana Pro Edit:支持 4K 分辨率、图像内文字编辑和高级相机控制。

注意:请确保您的提示词符合 Google 安全准则。包含受限内容的提示词可能会导致生成失败。

相关模型

xAI Grok Imagine Image v2.0 图片编辑
Image to ImageX Ai

xAI Grok Imagine Image v2.0 图片编辑

xAI Grok Imagine Image V2.0 Edit 可根据文本提示词对输入图片进行编辑,并支持可配置的分辨率和质量,适用于精细图片编辑、视觉优化、创意变体、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

$0.090 / 每次
Qwen Image 3.0 Pro Edit|快速图片编辑
Image to ImageQwen Image 3.0 Pro

Qwen Image 3.0 Pro Edit|快速图片编辑

Qwen Image 3.0 Pro Edit 是一款专业级图片编辑模型,具备出色的画质和高级指令理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能优异,无冷启动,价格实惠。

$0.080 / 每次
Image to Image
Image to ImageNamiFusion

图片换头

将照片中的人物头部替换为参考图中的头部。先上传目标照片,再上传头部参考图。

$0.220 / 每次
Nami Qwen I2I Spicy
Image to Image

Nami Qwen I2I Spicy

使用自然语言指令编辑参考图片,并尽量保留未要求修改的内容。

$0.040 / 每次
Nano Banana Pro 图像编辑
Image to ImageGoogle

Nano Banana Pro 图像编辑

4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。

$0.140 / 每次
Nano Banana 2 图像编辑
Image to ImageGoogle

Nano Banana 2 图像编辑

4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。

$0.070 / 每次
Seedream V5.0 Pro Edit 图片编辑与生成 API
Image to ImageDoubao

Seedream V5.0 Pro Edit 图片编辑与生成 API

ByteDance 推出的 Seedream V5.0 Pro Edit 可基于单张图片或多参考图进行图片编辑与生成,最多支持 10 张参考图片,支持宽高比选择以及 1K / 2K 输出档位。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

$0.050 / 每次
Seedream 5.0 Lite Edit Sequential
Image to ImageDoubao

Seedream 5.0 Lite Edit Sequential

Seedream 5.0 Lite Edit Sequential支持多图编辑,同时锁定角色和物体在不同画面中的一致性。它可以检测主要主体,保持连贯性,并进行受控编辑,支持最高4K输出。提供即用型REST推理API,性能最佳,无冷启动,价格实惠。

$0.040 / 每次