SkillHub

nano-banana-openrouter

v1.0.0

通过 OpenRouter API 调用 Google Nano Banana Gemini 2.5 Flash 图像模型进行文生图。

Sourced from ClawHub, Authored by fyi0329-pixel

Installation

Please help me install the skill `nano-banana-openrouter` from SkillHub official store. npx skills add fyi0329-pixel/nano-banana-openrouter

Nano Banana OpenRouter Skill

Generate images using Google's Nano Banana (Gemini 2.5 Flash Image) models via OpenRouter API.

Configuration

Add the following to your openclaw.json (or set the env var OPENROUTER_API_KEY):

{
  "skills": {
    "entries": {
      "nano-banana-openrouter": {
        "enabled": true,
        "config": {
          "apiKey": "sk-or-v1-..."  
        },
        "env": {
          "OPENROUTER_API_KEY": "sk-or-v1-..."
        }
      }
    }
  }
}

Usage

Tool Name: nano_banana_generate

Examples: - "Generate a cyberpunk dragon using Nano Banana." - "Draw a landscape in 16:9 aspect ratio." - "Use the preview model to generate a logo for a coffee shop."

Models

  • Default: google/gemini-2.0-flash-exp:free (Free tier, robust text/code, experimental image support)
  • High Quality: google/gemini-2.5-flash-image-preview (The specific "Nano Banana" image model, paid/credits required)

Notes

  • OpenRouter requires the HTTP-Referer and X-Title headers (included in this skill).
  • modalities: ["image"] is sent automatically.