← 返回
未分类 Key 中文

Gemini Nano Banana

Auto-generated skill for gemini tools via OneKey Gateway.
通过 OneKey Gateway 自动生成的 Gemini 工具技能
ai-hub-admin ai-hub-admin 来源
未分类 clawhub v0.1.4 1 版本 100000 Key: 需要
★ 2
Stars
📥 548
下载
💾 24
安装
1
版本
#latest

概述

OneKey Gateway

Use One Access Key to connect to various commercial APIs. Please visit the OneKey Gateway Keys and read the docs OneKey MCP Router Doc and OneKey Gateway Doc.

gemini Skill

Use the OneKey Gateway to access tools for this server via a unified access key.

Quick Start

Set your OneKey access key:

export DEEPNLP_ONEKEY_ROUTER_ACCESS=YOUR_API_KEY

Common settings:

  • unique_id: gemini/gemini
  • api_id: one of the tools listed below
  • Tools

    generate_image_gemini

Generates an image using the Gemini Image API.

Supported Models (aliases are internal):

The model parameter allows selection between available image generation models.

  • "gemini-2.5-flash-image" (recommended default for stable, fast response).
  • "gemini-3-pro-image-preview".
  • "gemini-3-flash"

Aliases for these models are 'nano-banana 2.5' and 'nano-banana 3 Pro' respectively.

Please use 'gemini-2.5-flash-image' unless the user specifically requests the Gemini 3 model.

Args:

model: The image generation model to use (see supported models above). Defaults to "gemini-2.5-flash-image". Supports: 'gemini-3-flash', 'gemini-3-pro-image-preview', 'gemini-2.5-flash-image'

prompt: A detailed text description for the image to be generated.

image_name: The filename for the output image, can be a relative path. Defaults to "gemini_output_images.png".

output_folder: The optional absolute folder path provided by the user where the image will be saved. Do not use default server locations.

aspect_ratio: The aspect ratio of the generated image (e.g., '16:9', '1:1', '4:3'). Defaults to '16:9'.

image_size: The size/resolution of the generated image (e.g., '1K', '2K', '4K'). Defaults to '1K'.

Return:

Dict: Result dictionary containing image path, message, and success status.

output_result["image_path"]: str

output_result["image_url"]: str

output_result["message"]: str

output_result["success"]: bool

Parameters:

  • model (string, optional):
  • prompt (string, optional):
  • image_name (string, optional):
  • output_folder (object, optional):
  • aspect_ratio (string, optional):
  • image_size (string, optional):
  • generate_image_nano_banana

Generate Image With Nano Banana

Args:

model: The image generation model to use. Defaults to "gemini-2.5-flash-image". Supported Models such as follows Google Gemini Doc, such as 'gemini-3-flash', "gemini-3-pro-image-preview", "gemini-2.5-flash-image", note that nano-banana is the alias name of the Gemini Image Model. Nano banana 3 Pro refers to Gemini 3 pro preview, and Nono Banana 2.5 refers to Gemini 2.5. Unless specified by user to use Gemini 3 model preview, general 'Neno Banana' image models, please use 'gemini-2.5-flash-image' for more stable and fast response.

prompt: A detailed text description for the image to be generated.

image_name: The filename for the output image, can be a relative path, such as "./new_gemini_image.png", etc. Defaults to "gemini_output_images.png".

output_folder: The optional absolute folder path provided by the user where the image will be saved. Do not use default server locations.

aspect_ratio: The aspect ratio of the generated image (e.g., '16:9', '1:1', '4:3'), defaults to '16:9'.

image_size: The size/resolution of the generated image (e.g., '1K', '2K', '4K'), defaults to '1K'.

Return:

Dict: output_result is the result dict of MCP returned

output_result["image_path"] = full_path: str

output_result["message"] = output_message: str

output_result["success"] = success: bool

Parameters:

  • model (string, optional):
  • prompt (string, optional):
  • image_name (string, optional):
  • output_folder (object, optional):
  • aspect_ratio (string, optional):
  • image_size (string, optional):

Usage

CLI

generate_image_gemini

npx onekey agent gemini-nano-banana/gemini-nano-banana generate_image_gemini '{"model": "gemini-2.5-flash-image", "prompt": "sunrise over mountains", "aspect_ratio": "16:9", "image_size": "1K"}'

generate_image_nano_banana

npx onekey agent gemini-nano-banana/gemini-nano-banana generate_image_nano_banana '{"model": "gemini-2.5-flash-image", "prompt": "robot reading book", "aspect_ratio": "16:9", "image_size": "1K"}'

generate_image_nano_banana_with_reference

npx onekey agent gemini-nano-banana/gemini-nano-banana generate_image_nano_banana_with_reference '{"model": "gemini-3-pro-image-preview", "prompt": "winter coat style", "images": ["https://avatars.githubusercontent.com/u/242328252"], "aspect_ratio": "1:1"}'

ocr_extract_text_from_image

npx onekey agent gemini-nano-banana/gemini-nano-banana ocr_extract_text_from_image '{"images": ["https://avatars.githubusercontent.com/u/242328252"], "model": "gemini-3-flash-preview"}'

list_items_from_image

npx onekey agent gemini-nano-banana/gemini-nano-banana list_items_from_image '{"images": ["https://avatars.githubusercontent.com/u/242328252"], "model": "gemini-3-flash-preview", "output_json": true}'

Scripts

Each tool has a dedicated script in this folder:

  • skills/gemini/scripts/generate_image_gemini.py
  • skills/gemini/scripts/generate_image_nano_banana.py
  • Example

    python3 scripts/<tool_name>.py --data '{"key": "value"}'
    

Related DeepNLP OneKey Gateway Documents

AI Agent Marketplace

Skills Marketplace

AI Agent A2Z Deployment

PH AI Agent A2Z Infra

GitHub AI Agent Marketplace

Dependencies

CLI Dependency

Install onekey-gateway from npm

npm install @aiagenta2z/onekey-gateway

Script Dependency

Install the required Python package before running any scripts.

pip install ai-agent-marketplace

Alternatively, install dependencies from the requirements file:

pip install -r requirements.txt

If the package is already installed, skip installation.

Agent rule

Before executing command lines or running any script in the scripts/ directory, ensure the dependencies are installed.

Use the onekey CLI as the preferred method to run the skills.

版本历史

共 1 个版本

  • v0.1.4 当前
    2026-03-30 15:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Firecrawl Mcp

ai-hub-admin
通过 OneKey Gateway 自动生成的 firecrawl-mcp 工具技能
★ 0 📥 570
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,097 📥 824,111
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,459 📥 507,619