VARIANT · Google / Nano Banana

nano-banana-2-lite API

Google / Nano Banana

透過 RunAPI 使用 Nano Banana 系列的 nano-banana-2-lite。按次收費,無需訂閱,失敗的生成不扣費。

可正常運作 · image · 可商用
runapi.ai
curl -X POST https://runapi.ai/api/v1/nano_banana/edit_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2-lite",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "Create a motivational poster with the text 'Never Give Up' in bold serif, sunset mountains in the background."
}'
import { NanoBananaClient } from "@runapi.ai/nano-banana";

const client = new NanoBananaClient();
const result = await client.editImage.run({
    model: "nano-banana-2-lite",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Create a motivational poster with the text 'Never Give Up' in bold serif, sunset mountains in the background.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\NanoBanana\NanoBananaClient;

$client = new NanoBananaClient();
$result = $client->editImage->run([
        'model' => 'nano-banana-2-lite',
        'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
        'prompt' => 'Create a motivational poster with the text \'Never Give Up\' in bold serif, sunset mountains in the background.',
]);
require "runapi/nano_banana"

client = RunApi::NanoBanana::Client.new
result = client.edit_image.run(
    model: "nano-banana-2-lite",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Create a motivational poster with the text 'Never Give Up' in bold serif, sunset mountains in the background."
)
npx skills add runapi-ai/nano-banana -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/nano-banana v1
切換 variant
OVERVIEW

nano-banana-2-lite 針對 Nano Banana 系列中品質與成本的最佳平衡點。

  • 按次收費,美元計價
  • 生成失敗不收費
  • 如模型支援,提供串流輸出
  • Model skill setup
PRICING

收費

失敗的生成不會收費
Edit image
$0.03 / image
Text to image
$0.03 / image
規格說明

技術詳情

模型 ID nano-banana-2-lite
供應商 Google
模式 image
任務類型 asynchronous
計費單位 call
API endpoint /api/v1/nano_banana/edit_image
商業授權 是 — 已透過 API 包含
目錄狀態 可正常運作
SKILLS

快速開始 — nano-banana-2-lite

結構一致 · variant 已固定於 model 中

# Install the model skill for app development workflows
npx skills add runapi-ai/nano-banana -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the Nano Banana skill for this app:

1. Add runapi-ai/nano-banana with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps when adding model features.
4. Confirm the install path when done.
運作方式

四步使用 nano-banana-2-lite

01

安裝

為此模型系列安裝 model skill。

02

設定

將 model 欄位設為本頁顯示的完整 model ID。

03

呼叫

連同 prompt、inputs 及 callback 設定,送出一個 typed request。

04

接收

從 RunAPI 讀取 task response、webhook callback 或 cached output URL。

DIFFERENCES

nano-banana-2-lite 有咩不同

VS NANO-BANANA

最快、成本最低的 Nano Banana 圖像模型,適合快速生成同迭代

1K resolution; fast and cheap baseline (Aug 2025)

VS NANO-BANANA-2

最快、成本最低的 Nano Banana 圖像模型,適合快速生成同迭代

Built on Gemini 3.1 Flash; best multi-character consistency, 4–8s

VS NANO-BANANA-EDIT

最快、成本最低的 Nano Banana 圖像模型,適合快速生成同迭代

Prompt-driven image editing from an existing image

使用場景

最適合

產品攝影

自動生成適合電商 catalog、但冇 studio 攝影的 lifestyle 產品相。

遊戲及概念美術

在落實最終美術之前,快速構思場景同角色。

編輯插畫

大規模生成獨特封面圖同插畫,適合 blog post 同文章。

FAQ

關於 nano-banana-2-lite 的常見問題

模型 ID 會否在不同版本之間保持穩定?

RunAPI 會保持 model ID 穩定,並處理相容的版本更新,而不需要改動你的 request 格式。

這個 variant 的 rate limit 係多少?

每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。

之後可以切換 variant 嗎?

可以——variant 只係一個旗標。只要更改 model 參數就可以切換。

支援 streaming 嗎?

在可用 streaming 的情況下,RunAPI 會端到端串流。

我應該在邊度回報品質問題?

可以在公開 GitHub repo 開 issue,或者電郵支援團隊。

立即開始

開始用 Nano Banana 建立產品。