---
title: OpenClaw x Nano Banana 使用指南 | RunAPI
description: 通过 RunAPI 在 OpenClaw 中使用 Nano Banana。比较当前模型 ID、端点与价格，然后按对应流程完成配置。
url: https://runapi.ai/zh-CN/openclaw-nano-banana.md
canonical: https://runapi.ai/zh-CN/openclaw-nano-banana
locale: zh-CN
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/openclaw-nano-banana
  zh-CN: https://runapi.ai/zh-CN/openclaw-nano-banana
  es: https://runapi.ai/es/openclaw-nano-banana
  ja: https://runapi.ai/ja/openclaw-nano-banana
  de: https://runapi.ai/de/openclaw-nano-banana
  fr: https://runapi.ai/fr/openclaw-nano-banana
  pt-BR: https://runapi.ai/pt-BR/openclaw-nano-banana
  ko: https://runapi.ai/ko/openclaw-nano-banana
  it: https://runapi.ai/it/openclaw-nano-banana
  nl: https://runapi.ai/nl/openclaw-nano-banana
  pl: https://runapi.ai/pl/openclaw-nano-banana
  tr: https://runapi.ai/tr/openclaw-nano-banana
  zh-TW: https://runapi.ai/zh-TW/openclaw-nano-banana
  zh-HK: https://runapi.ai/zh-HK/openclaw-nano-banana
  ar: https://runapi.ai/ar/openclaw-nano-banana
  x-default: https://runapi.ai/openclaw-nano-banana
model_line: nano-banana
---

> HTML version: https://runapi.ai/zh-CN/openclaw-nano-banana
> Site index for agents: https://runapi.ai/llms.txt


<!-- agent-model-guide-section: breadcrumb_hero owner=API-1798 state=ready -->

[OpenClaw](https://runapi.ai/zh-CN/openclaw.md) / [Nano Banana](https://runapi.ai/zh-CN/models/nano-banana.md)

# OpenClaw x Nano Banana

Nano Banana 是 Google 内嵌于 Gemini 的图像模型，针对快速生成和图内文字准确性进行优化。通过 RunAPI，所有变体共享一把 key。

- [获取 API Key](https://runapi.ai/zh-CN/login)
- [查看 OpenClaw 文档](https://runapi.ai/zh-CN/docs/guides)

<!-- agent-model-guide-section: key_facts owner=API-1800 state=ready -->
5 variants · 起价 $0.04 / 次调用 · 可商用


<!-- agent-model-guide-section: prompt_terminal owner=API-1808 state=ready -->
## Prompt

Prerequisite: `npx runapi mcp install`

```text
You have access to RunAPI task tools for Nano Banana.

Available Nano Banana models:
- nano-banana: 1K 分辨率；快速基线版本（2025 年 8 月）
  endpoints: /api/v1/nano_banana/text_to_image
  request fields: model, prompt, aspect_ratio
- nano-banana-2: 基于 Gemini 3.1 Flash；最佳多角色一致性，4–8 秒
  endpoints: /api/v1/nano_banana/text_to_image
  request fields: model, prompt, aspect_ratio
- nano-banana-2-lite: 最快、成本最低的 Nano Banana 图像模型，适合快速生成与迭代
  endpoints: /api/v1/nano_banana/edit_image, /api/v1/nano_banana/text_to_image
  request fields: model, prompt, aspect_ratio
- nano-banana-edit: 从现有图片进行提示词驱动的编辑
  endpoints: /api/v1/nano_banana/edit_image
  request fields: model, prompt, source_image_urls
- nano-banana-pro: 基于 Gemini 3 Pro；最高 4K 分辨率，最佳文字渲染，10–20 秒
  endpoints: /api/v1/nano_banana/text_to_image
  request fields: model, prompt, aspect_ratio

Use the model ID and endpoint that match the user's request.
Example prompt: 创建一张励志海报，粗体衬线字写上 'Never Give Up'，背景是日落山脉。
/api/v1/nano_banana/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/nano_banana/text_to_image，并保存返回的 Task ID。
GET /api/v1/nano_banana/text_to_image/<task-id>，直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
/api/v1/nano_banana/edit_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/nano_banana/edit_image，并保存返回的 Task ID。
GET /api/v1/nano_banana/edit_image/<task-id>，直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。
```





<!-- agent-model-guide-section: prompt_model_tabs owner=API-1812 state=ready -->
## Prompt 模型

通过本指南使用 RunAPI 和 Nano Banana。

可用的 Nano Banana 模型：

- `nano-banana`: 1K 分辨率；快速基线版本（2025 年 8 月）
- `nano-banana-2`: 基于 Gemini 3.1 Flash；最佳多角色一致性，4–8 秒
- `nano-banana-2-lite`: 最快、成本最低的 Nano Banana 图像模型，适合快速生成与迭代
- `nano-banana-edit`: 从现有图片进行提示词驱动的编辑
- `nano-banana-pro`: 基于 Gemini 3 Pro；最高 4K 分辨率，最佳文字渲染，10–20 秒
任务匹配时使用 nano-banana：1K 分辨率；快速基线版本（2025 年 8 月）。



<!-- agent-model-guide-section: versions_endpoints owner=API-1817 state=runtime_fallback -->

## 公开版本与端点

| 模型 ID | 版本 | 端点 | 起步价格 |
| --- | --- | --- | --- |
| `nano-banana` | 1K 分辨率；快速基线版本（2025 年 8 月） | /api/v1/nano_banana/text_to_image | $0.04 / 次调用 |
| `nano-banana-2` | 基于 Gemini 3.1 Flash；最佳多角色一致性，4–8 秒 | /api/v1/nano_banana/text_to_image | $0.08 / 次调用 |
| `nano-banana-2-lite` | 最快、成本最低的 Nano Banana 图像模型，适合快速生成与迭代 | /api/v1/nano_banana/edit_image, /api/v1/nano_banana/text_to_image | $0.04 / 次调用 |
| `nano-banana-edit` | 从现有图片进行提示词驱动的编辑 | /api/v1/nano_banana/edit_image | $0.04 / 次调用 |
| `nano-banana-pro` | 基于 Gemini 3 Pro；最高 4K 分辨率，最佳文字渲染，10–20 秒 | /api/v1/nano_banana/text_to_image | $0.18 / 次调用 |


<!-- agent-model-guide-section: verify_code_block owner=API-1824 state=runtime_fallback -->

## 验证

轮询，直到 Task 进入终态

POST <endpoint>，并保存返回的 Task ID。
GET <endpoint>/<task-id>，直到状态为 completed 或 failed。
确认 completed 响应包含 API 参考中记录的端点专属输出。



## 配置

设置 `RUNAPI_API_KEY`，然后向 `<endpoint>` 发送包含 `<model-id>` 的请求。仅当端点返回异步 Task 时才轮询。

```shell
export RUNAPI_API_KEY=your_api_key

curl -X POST https://runapi.ai<endpoint> \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json
```


<!-- agent-model-guide-section: three_step_flow owner=API-1830 state=ready -->

## 三步开始使用

1. **选择模型 ID.** 选择公开模型 ID，并查看其端点与当前起步价格。
2. **配置 RunAPI.** 调用端点前设置 RUNAPI_API_KEY。
3. **验证结果.** 对于异步端点，轮询同一端点，直到 Task 进入终态。



<!-- agent-model-guide-section: use_case_cards owner=API-1837 state=ready -->

## 使用 OpenClaw + Nano Banana 可以构建什么

**室内设计效果图**

生成大量家具摆放和光线都可信的房间布局方案，在设计迭代中替代手工 3D 渲染。

**落地页主视觉**

制作反映当下风格和真实场景的主视觉图和社交广告素材。

**文字准确的书籍封面**

生成书名和作者名直接呈现在画面中的书籍封面。



<!-- agent-model-guide-section: benefit_cards owner=API-1844 state=ready -->

## 为什么通过 RunAPI + OpenClaw 使用 Nano Banana

**5 个变体，一个 API 密钥**

通过一个 RunAPI 连接选择可用的模型变体，无需更改现有集成。

**清晰的用量价格**

发送请求前查看目录中的当前价格，无需订阅或最低消费。

**自动化任务流程**

通过一致的任务流程提交任务、查询状态并收集异步结果，无需编写手动轮询代码。




<!-- agent-model-guide-section: faq owner=API-1851 state=ready -->

## OpenClaw + Nano Banana 常见问题

### Nano Banana 能在图片中生成清晰可读的文字吗？

可以。在提示词中写明具体文字，模型会处理文字位置和可读性，这正是许多扩散模型的弱项。

### 可以在 OpenClaw 中用 Nano Banana 编辑现有图片吗？

可以。使用本页列出的编辑端点，传入源图并在提示词中描述修改内容。编辑可以在图片中添加或修改文字。

### Nano Banana 是异步的吗？

是的。创建端点会立即返回任务 ID。轮询任务状态，或提供回调 URL 在图片就绪时接收 webhook。

### 应该使用哪个模型 ID？

从版本表选择公开模型 ID。每个 ID 可使用的端点均显示在对应行。

### 本指南会配置聊天模型吗？

不会。该 Model Line 使用页面所示的端点流程，不会被描述为 Agent 聊天模型。




<!-- agent-model-guide-section: related_guides owner=API-1859 state=ready -->

## 更多 OpenClaw 指南

- [OpenClaw x Claude](https://runapi.ai/zh-CN/openclaw-claude.md) - Anthropic · 文本 · 起价 $0.06 / 百万 tokens
- [OpenClaw x DeepSeek](https://runapi.ai/zh-CN/openclaw-deepseek.md) - DeepSeek · 文本 · 起价 $0.30 / 百万 tokens
- [OpenClaw x ElevenLabs](https://runapi.ai/zh-CN/openclaw-elevenlabs.md) - ElevenLabs · 音频与音乐 · 起价 $0.04 / 分钟
- [OpenClaw x Embedding](https://runapi.ai/zh-CN/openclaw-embedding.md) - OpenAI · 文本 · 起价 $0.02 / 百万 tokens


<!-- agent-model-guide-section: final_cta owner=API-1866 state=ready -->

## 开始在 OpenClaw 中使用 Nano Banana

- [获取 API Key](https://runapi.ai/zh-CN/login)
- [阅读快速开始](https://runapi.ai/zh-CN/docs/guides)


<!-- agent-model-guide-section: team_contact_cta owner=API-1873 state=ready -->
## 需要团队接入支持？

我们可以协助团队接入、完成系统集成并解答技术问题。

[联系我们](https://runapi.ai/zh-CN/contact.md)




<!-- agent-model-guide-section: footer owner=API-1880 state=shared -->


---

## More from RunAPI

- [Home](https://runapi.ai/zh-CN/.md)
### 产品
- [模型目录](https://runapi.ai/zh-CN/models.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [提供方](https://runapi.ai/zh-CN/models#all-models)
### 开发者
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
- [x402](https://runapi.ai/zh-CN/x402.md)
### 指南
- [Claude Code 与 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Cursor API 设置](https://runapi.ai/zh-CN/cursor-api-setup.md)
- [RunAPI 与 OpenRouter](https://runapi.ai/zh-CN/openrouter-alternative.md)
### 公司
- [企业版](https://runapi.ai/zh-CN/contact.md)
- [联系](https://runapi.ai/zh-CN/contact.md)
### 法律
- [服务条款](https://runapi.ai/zh-CN/terms.md)
- [隐私政策](https://runapi.ai/zh-CN/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai


## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-CN/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-CNicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "SoftwareApplication",
    "name": "OpenClaw x Nano Banana",
    "applicationCategory": "DeveloperApplication",
    "description": "通过 RunAPI 在 OpenClaw 中使用 Nano Banana。比较当前模型 ID、端点与价格，然后按对应流程完成配置。",
    "url": "https://runapi.ai/zh-CN/openclaw-nano-banana"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Nano Banana 能在图片中生成清晰可读的文字吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以。在提示词中写明具体文字，模型会处理文字位置和可读性，这正是许多扩散模型的弱项。"
        }
      },
      {
        "@type": "Question",
        "name": "可以在 OpenClaw 中用 Nano Banana 编辑现有图片吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以。使用本页列出的编辑端点，传入源图并在提示词中描述修改内容。编辑可以在图片中添加或修改文字。"
        }
      },
      {
        "@type": "Question",
        "name": "Nano Banana 是异步的吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "是的。创建端点会立即返回任务 ID。轮询任务状态，或提供回调 URL 在图片就绪时接收 webhook。"
        }
      },
      {
        "@type": "Question",
        "name": "应该使用哪个模型 ID？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "从版本表选择公开模型 ID。每个 ID 可使用的端点均显示在对应行。"
        }
      },
      {
        "@type": "Question",
        "name": "本指南会配置聊天模型吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "不会。该 Model Line 使用页面所示的端点流程，不会被描述为 Agent 聊天模型。"
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "HowTo",
    "name": "在 OpenClaw 中使用 Nano Banana",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "选择模型 ID",
        "text": "选择公开模型 ID，并查看其端点与当前起步价格。",
        "url": "https://runapi.ai/zh-CN/openclaw-nano-banana#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "配置 RunAPI",
        "text": "调用端点前设置 RUNAPI_API_KEY。",
        "url": "https://runapi.ai/zh-CN/openclaw-nano-banana#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "验证结果",
        "text": "对于异步端点，轮询同一端点，直到 Task 进入终态。",
        "url": "https://runapi.ai/zh-CN/openclaw-nano-banana#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "首页",
        "item": "https://runapi.ai/zh-CN"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "OpenClaw",
        "item": "https://runapi.ai/zh-CN/openclaw"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Nano Banana",
        "item": "https://runapi.ai/zh-CN/openclaw-nano-banana"
      }
    ]
  }
]
```
