Gemini 高级 图像 运行正常

Nano Banana Pro API:价格、代码示例与实时数据

Google Nano Banana Pro,最高画质:写实照片细节、复杂构图、信息图以及图中长文本。支持基于参考图编辑。每张图 = 4M Token。

模型 ID

nano-banana-pro

用 Google 账号注册,无需付款。API 密钥立即可用。

每张图片价格

$0.091

按 实惠 套餐计算;Raja 套餐每张 $0.055。

套餐 $0.55 起。支持 USDT(加密货币)付款;印尼用户还可使用 QRIS 和本地银行转账。Token 永不过期。

API

一分钟用上 Nano Banana Pro

Base URL https://router.bangunweb.com/v1,控制台中的 API 密钥,模型 ID nano-banana-pro。复制,换上你的密钥,运行。

curl
curl https://router.bangunweb.com/v1/images/generations \
  -H "Authorization: Bearer bwr_live_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "nano-banana-pro", "prompt": "Minimalist coffee shop banner, cream background", "size": "1024x1024"}'
Python
import base64, requests

r = requests.post(
    "https://router.bangunweb.com/v1/images/generations",
    headers={"Authorization": "Bearer bwr_live_..."},
    json={"model": "nano-banana-pro", "prompt": "Minimalist coffee shop banner, cream background", "size": "1024x1024"},
    timeout=300,
)
r.raise_for_status()
img = r.json()["data"][0]
if img.get("b64_json"):
    open("hasil.png", "wb").write(base64.b64decode(img["b64_json"]))
else:
    print(img["url"])

API 文档 →Beginner guide →

相似模型

一个 API 密钥通用。只需更换模型 ID。

查看全部 65 个模型 →

关于 Nano Banana Pro API 的常见问题

Nano Banana Pro API 怎么收费?

每张图片约 $0.091(实惠 套餐)。套餐越大,每个 Token 越便宜。

如何付款?

在控制台购买 Token 套餐,$0.55 起。支持 USDT(加密货币)付款;印尼用户还可使用 QRIS 和本地银行转账。

应该调用哪个端点?

POST https://router.bangunweb.com/v1/images/generations,带上 model="nano-banana-pro" 和文字提示词。格式与 OpenAI Images 相同。

今天就免费试用

新的 Google 账号可获得 2M 免费 Token。马上让 AI 帮你写应用。