Best use case
gemini-nano-banana is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Auto-generated skill for gemini tools via OneKey Gateway.
Teams using gemini-nano-banana should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gemini-nano-banana/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gemini-nano-banana Compares
| Feature / Agent | gemini-nano-banana | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Auto-generated skill for gemini tools via OneKey Gateway.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
### OneKey Gateway
Use One Access Key to connect to various commercial APIs. Please visit the [OneKey Gateway Keys](https://www.deepnlp.org/workspace/keys) and read the docs [OneKey MCP Router Doc](https://www.deepnlp.org/doc/onekey_mcp_router) and [OneKey Gateway Doc](https://deepnlp.org/doc/onekey_agent_router).
# gemini Skill
Use the OneKey Gateway to access tools for this server via a unified access key.
## Quick Start
Set your OneKey access key:
```bash
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
```shell
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
```shell
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
```shell
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
```shell
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
```shell
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
```bash
python3 scripts/<tool_name>.py --data '{"key": "value"}'
```
### Related DeepNLP OneKey Gateway Documents
[AI Agent Marketplace](https://www.deepnlp.org/store/ai-agent)
[Skills Marketplace](https://www.deepnlp.org/store/skills)
[AI Agent A2Z Deployment](https://www.deepnlp.org/workspace/deploy)
[PH AI Agent A2Z Infra](https://www.producthunt.com/products/ai-agent-a2z)
[GitHub AI Agent Marketplace](https://github.com/aiagenta2z/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.
```bash
pip install ai-agent-marketplace
```
Alternatively, install dependencies from the requirements file:
```bash
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.Related Skills
nano-pdf
Edit PDFs with natural-language instructions using the nano-pdf CLI.
evolink-nano-banana-2
Nano Banana 2 — AI image generation powered by Google Gemini 3.1 Flash. Fast, versatile text-to-image and image editing via Evolink API. One API key.
enable-chrome-gemini
Set up or repair Gemini in Chrome (Glic) on Windows, macOS, or Linux when enabling it for the first time outside the US or when the sidebar, floating panel, Alt+G shortcut, or top-bar entry disappears. Back up and patch Chrome Local State, restore region/eligibility fields, and check the required Glic flags and Chrome language.
PDF OCR using Gemini LLM
Extract text from PDFs using Google Gemini OCR. Use when extracting text from PDFs, performing OCR on scanned documents, or processing image-based PDFs.
gemini-deep-research
Perform complex, long-running research tasks using Gemini Deep Research Agent. Use when asked to research topics requiring multi-source synthesis, competitive analysis, market research, or comprehensive technical investigations that benefit from systematic web search and analysis.
gemini-stt
Transcribe audio files using Google's Gemini API or Vertex AI
muapi-nano-banana
Reasoning-driven image generation using structured creative briefs (Gemini 3 style) — generates high-fidelity images via muapi.ai with logic-based prompting
gemini-computer-use
Build and run Gemini 2.5 Computer Use browser-control agents with Playwright. Use when a user wants to automate web browser tasks via the Gemini Computer Use model, needs an agent loop (screenshot → function_call → action → function_response), or asks to integrate safety confirmation for risky UI actions.
IMA Nano Banana Image Generator
Nano Banana-only image generation on IMA Open API. Supports text_to_image and image_to_image with gemini-3.1-flash-image (budget) and gemini-3-pro-image (premium). Deterministic size/ratio mapping, 512/1K/2K/4K resolution. Requires IMA_API_KEY.
gemini-voice-assistant
Voice-to-voice AI assistant using Gemini Live API. Speak to the AI and get spoken responses. Use when you want to have natural voice conversations with an AI assistant powered by Google's Gemini models.
gemini-assistant
General-purpose AI assistant using Gemini API with voice and text support. Use when you need a smart AI assistant that can answer questions, have conversations, or help with general tasks using Google's Gemini models with audio/text capabilities.
gemini-video-analyzer
Native video analysis using Google Gemini API. Upload and analyze video files — describe scenes, extract text/UI, answer questions about content, transcribe speech, identify objects and actions. Use when: (1) User sends a video file and wants it analyzed, (2) Video summarization or description needed, (3) Extracting text, UI elements, or information from screen recordings, (4) Answering questions about video content, (5) Comparing multiple videos, (6) Analyzing tutorials, demos, or walkthroughs.