万次元AI
get key

Google

Nano Banana 2 Edit API

google/nano-banana-2/edit

原生 4K 输出,文字渲染准确,生成与编辑均支持多达 14 张参考图保持角色一致。

  • 4K
  • 14 参考图
  • 文字渲染
  • 角色一致

Introduction

原生 4K 输出,文字渲染准确,生成与编辑均支持多达 14 张参考图保持角色一致。

Key Features

  • 4K
  • 14 参考图
  • 文字渲染
  • 角色一致

Technical Details

  • model — google/nano-banana-2/edit
  • task — edit
  • prompt — string · required
  • aspect_ratio — 1:1 · 4:3 · 3:4 · 16:9 · 9:16
  • resolution — 4K

Performance

  • 无冷启动,按提交顺序调度
  • 最高输出 4K
  • 批量并行提交

Use Cases

  • 广告素材批量生成与变体测试
  • 短剧与分镜预演
  • 商品视觉与虚拟试穿
  • 游戏与 3D 资产原型

code samples

curlopenai compatible
curl -X POST https://api.waninter.com/v1/generations \
  -H "Authorization: Bearer $AIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-2/edit",
    "task": "edit",
    "prompt": "A neon-lit alley after rain, 35mm, shallow depth of field",
    "resolution": "4K"
  }'
pythonsdk
from aio_gateway import Client

client = Client()

job = client.generations.create(
    model="google/nano-banana-2/edit",
    task="edit",
    prompt="A neon-lit alley after rain, 35mm, shallow depth of field",
)

result = job.wait()
print(result.output_url)

quickstart

  1. 01

    安装

  2. 02

    认证

  3. 03

    提交请求

  4. 04

    检查状态

  5. 05

    上传文件

相关端点

查看全部