OpenClaw で Nano Banana を使う。
Nano Banana は Google の Gemini ネイティブな画像生成モデルで、生成画像のテキストレンダリングが業界トップクラスです。Pro は最大 4K 解像度を出力し、Nano Banana 2 は拡張アスペクト比で速度に最適化され、Edit は既存画像を編集します。OpenClaw のエージェントは1つの RunAPI キーとエンドポイントで3つのバリアントすべてを呼び出します。
RunAPI を使って Google Nano Banana Pro で画像を生成します。
要件:
- RUNAPI_API_KEY から API キーを読み込む。キーをハードコードしない。
- https://runapi.ai/api/v1/nano_banana/text_to_image に POST リクエストを送信する。
- model を "nano-banana-pro" に設定する。
- 説明的なプロンプトを書く。Nano Banana は画像内のテキストレンダリングに優れているため、テキストのオーバーレイはすべてプロンプトに含める。
- 任意で、output_resolution を "4k" に設定して最高品質にする。
- レスポンスは task_id を返します。タスクが完了するまでタスクステータスのエンドポイントをポーリングする。
- タスクが完了したら、レスポンスから画像 URL を取得する。
curl -X POST https://runapi.ai/api/v1/nano_banana/text_to_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"prompt": "A minimalist product card for a coffee brand, the text DARK ROAST in bold sans-serif across the top, a steaming cup below, warm studio lighting",
"aspect_ratio": "4:3",
"output_resolution": "4k",
"output_format": "png"
}'
{
"task_id": "tsk_abc123",
"status": "pending",
"model": "nano-banana-pro"
}
OpenClaw で Nano Banana を使う3ステップ
Configure RunAPI
Set the RUNAPI_API_KEY environment variable. If you already configured RunAPI as an OpenClaw provider for chat, the same key works for Nano Banana image generation.
export RUNAPI_API_KEY=runapi_xxx
Call Nano Banana
Send a POST to the text_to_image endpoint with model set to nano-banana-pro for highest quality, nano-banana-2 for speed, or nano-banana for the base variant. Set output_resolution to 4k on Pro or 2 for maximum detail. For editing, POST to edit_image with nano-banana-edit and include an image_url.
POST /api/v1/nano_banana/text_to_image
Get the result
The response includes a task_id. Poll the task status endpoint until status changes to completed. The finished response contains the generated image URL. RunAPI SDKs and the CLI handle polling automatically.
task_id: tsk_abc123
Nano Banana API パラメータ
| パラメータ | 型 | 説明 |
|---|---|---|
model |
string |
Required. nano-banana-pro (highest quality, 4K), nano-banana-2 (fast, extended ratios), nano-banana (base), or nano-banana-edit (editing). |
prompt |
string |
Text description of the desired image. Include any text you want rendered in the image — Nano Banana handles typography natively. |
image_url |
string |
Source image URL. Required for nano-banana-edit, ignored for text_to_image variants. |
aspect_ratio |
string |
Optional. Output aspect ratio. Pro accepts: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto. Nano Banana 2 adds 1:4, 1:8, 4:1, 8:1. |
output_resolution |
string |
Optional. Pro and 2 only. Accepted values: 1k, 2k, 4k. Defaults to 1k. |
output_format |
string |
Optional. Output file format. Accepted values: png, jpeg, jpg. |
callback_url |
string |
Optional. Webhook URL that receives a POST when the task completes. |
OpenClaw上のNano Bananaとは?
Nano BananaはGoogleの画像生成モデルで、2026年の画像生成のデフォルト選択と呼ばれています。ProバリアントはLM Arenaリーダーボードを塗り替え、手動デザインツールとのギャップを縮める結果を出しています。OpenClaw agentは1つのRunAPIキーとエンドポイントで3つのバリアント全てを呼び出します。
Nano Bananaの活用例
ブランド素材とマーケティングビジュアル
ポスター・広告・SNSビジュアルコンテンツを生成し、Nano Bananaのブランドガイドラインの理解が特定のカラースキーム・スタイル要件・デザイン仕様に合った画像を生み出します。
実世界の文脈における商品ビジュアライゼーション
商品をレストラン・屋外シーン・インテリアなどの実環境に配置し、Nano Bananaの世界知識が背景が視覚的に正確で一貫したものになることを保証します。
マルチスタイルのコンセプト探索
3つのバリアント(Flash・Standard・Pro)にわたって同じコンセプトの複数のビジュアルスタイルを探索し、Flashで素早く反復してProで最終選択を行います。
Nano Banana + OpenClaw のよくある質問
Nano Banana Pro delivers the highest image quality with up to 4K output resolution. Nano Banana 2 is optimized for speed and supports extra aspect ratios like 1:4 and 8:1 for banner and tall formats. The base nano-banana variant is the most affordable option at standard resolution. All three share the same text_to_image endpoint.
Yes. Nano Banana is specifically designed for accurate text rendering in images. Include the exact words you want in the prompt — the model handles font placement and legibility natively, unlike most diffusion models that distort letterforms.
Nano Banana Pro pricing varies by output_resolution: 1k and 2k are the same rate, while 4k costs more per image. Nano Banana 2 follows a similar tier structure. Check the RunAPI pricing page for exact per-image rates. There is no monthly minimum.
Yes. Use the nano-banana-edit model with the edit_image endpoint. Pass the source image via image_url and describe the desired changes in the prompt. The edit variant supports text-aware modifications, so you can add or change text overlays on existing images.
Async. The create endpoint returns a task_id immediately. Poll the task status endpoint or provide a callback_url to receive a webhook when the image is ready. RunAPI SDKs and the CLI handle polling automatically.
今すぐ OpenClaw で Nano Banana を試す。
無料の RunAPI キーを取得し、プロンプトを OpenClaw に貼り付ければ、最大 4K 解像度で正確なテキストレンダリングを備えた画像を生成できます。