Google图片

Nano Banana 2

google/nano-banana-2

根据提示词生成一张图片,或使用最多 14 张参考图进行编辑。支持 1K、2K 和 4K。

Nano Banana 2 是 Google 推出的 AI 图片生成模型。可通过 Kerox API 使用模型 ID google/nano-banana-2 调用,也可在 Studio 中直接生成,无需编写代码。在 Kerox 上使用,起价 $0.0250 / 张,比官方价低 62%,无需订阅。

包含这个模型的说明:AI 图片生成 API

起价 $0.0250按张$0.0670比官方价低 62%

1K $0.0250 按张 · 2K $0.0300 按张 · 4K $0.0400 按张

输出
图片 · 1K, 2K, 4K
时长
—
通常耗时
—
输入
文本, 图片

体验 Nano Banana 2

0
登录后可添加参考文件
预估费用 —
登录后生成

开始时冻结,完成后结算,失败退回。

输出

示例作品
Editorial photograph of a blue kingfisher perched above a quiet pond, square composition, natural light, no lettering.

1024×1024

Editorial photograph of a blue kingfisher perched above a quiet pond, square composition, natural light, no lettering.

预估费用 ≈ $0.0250

请求体
{
  "model": "google/nano-banana-2",
  "format": "unified",
  "input": {
    "prompt": "Editorial photograph of a blue kingfisher perched above a quiet pond, square composition, natural light, no lettering.",
    "resolution": "1K",
    "aspect_ratio": "1:1"
  }
}

在代码中调用

提交任务后即可获得任务 ID。你可以轮询结果,也可以传入 Webhook URL 接收完成的任务。

接口地址POST https://api.kerox.ai/v1/tasks
curl 'https://api.kerox.ai/v1/tasks' \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary '{
  "model": "google/nano-banana-2",
  "input": {
    "prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
    "resolution": "1K"
  }
}'
响应示例
{
  "id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
  "object": "task",
  "model": "google/nano-banana-2",
  "status": "processing"
}

可传入的参数

参数一律用统一格式的名字,各模型通用。

参数名类型必填默认值可选值作用
promptstring必填——提示词
imagesstring | string[]———参考图
aspect_ratiostring—"1:1"1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 21:9, 1:4, 4:1, 1:8, 8:1画面比例
resolutionstring—"1K"1K, 2K, 4K分辨率
ninteger—11生成数量

暂不支持: seed, output_format, n

定价

  • 1 张 · 1K

    $0.0250

    $0.0670比官方价低 62%

  • 1 张 · 2K

    $0.0300

    $0.1010比官方价低 70%

  • 1 张 · 4K

    $0.0400

    $0.1510比官方价低 73%

常见用法参考价
规格官方价Kerox比官方价低
1 张 · 1K$0.0670$0.025062%
1 张 · 2K$0.1010$0.030070%
1 张 · 4K$0.1510$0.040073%
$10 能做多少400 张 1K 图片
档位官方价Kerox
1K$0.0670$0.0250
2K$0.1010$0.0300
4K$0.1510$0.0400

提交任务前可用 POST /v1/estimate 估价。

Nano Banana 2 生成的作品

Editorial photograph of a blue kingfisher perched above a quiet pond, square composition, natural light, no lettering.

Editorial photograph of a blue kingfisher perched above a quiet pond, square composition, natural light, no lettering.

Editorial photograph of a yellow tram winding through a coastal village, square composition, natural light, no lettering.

Editorial photograph of a yellow tram winding through a coastal village, square composition, natural light, no lettering.

Editorial photograph of a ceramic teapot on an oak table, morning light, square composition, natural light, no lettering.

Editorial photograph of a ceramic teapot on an oak table, morning light, square composition, natural light, no lettering.

关于 Nano Banana 2

根据提示词生成一张图片,或使用最多 14 张参考图进行编辑。支持 1K、2K 和 4K。

常见问题

Nano Banana 2 多少钱?

Kerox 上的 Nano Banana 2 $0.0250 / 张 起,比官方价低 62%。按次付费,生成失败不扣费。每一档的价格见本页的价格表。

Nano Banana 2 有 API 吗?

有。用模型 ID google/nano-banana-2 向 Kerox 的接口提交任务,然后查询任务,或等 webhook 通知。Nano Banana 2 的 API 文档里有全部参数和代码示例。

不写代码能在网页上直接用 Nano Banana 2 吗?

可以。在本页生成面板选择参数即可查看价格,登录后即可生成。 在线体验

用 Nano Banana 2 需要订阅吗?

不需要。没有套餐,也没有月费。$5 起充,用多少付多少。

如何使用 Nano Banana 2?

登录 Kerox,在 Studio 中打开 Nano Banana 2,输入提示词即可在浏览器中生成。如需通过代码调用,请创建 API 密钥,并使用模型 ID google/nano-banana-2 提交任务。

Nano Banana 2 可以免费使用吗?

Nano Banana 2 是 Kerox 上的付费模型:每次成功生成按本页价格计费,生成失败不收费。无月费,最低充值 $5 即可开始使用。

相似模型