Introduction¶
When writing code in environments like Cursor or Claude Code, you often need a cover image, poster, or illustration on the side. Switching to a drawing tool and pasting the image back into the conversation breaks the context. On the other hand, if you ask the model to “describe an image out of thin air,” you won’t get a usable file. Below we introduce the community Skill nano-banana2: it wraps the nano-banana2 API from kexiangai.com into a capability that Agents can call, generating images in conversations based on prompts, with support for image-to-image generation, aspect ratio, and resolution parameters.
What This Is¶
nano-banana2 is a community Skill on SkillHub (coordinates @user_4bd21536/nano-banana2, current version 1.0.1), categorized under design-media, and maintained by the publisher user_4bd21536. It addresses the need for a unified interface and parameter convention when users want to “generate images,” perform “image-to-image generation,” create “poster images,” or “cover images” in a conversation, or specify aspect ratios such as 16:9 / 9:16 and resolutions of 1K / 2K / 4K — rather than mistakenly using video, OCR, or non-generative image editing capabilities.
The Skill page indicates requires_api_key=true: you need to obtain an API key from kexiangai.com and use it via the x-api-key header.
Core Features¶
The verified capabilities are as follows (based on the SkillHub introduction):
- Text-to-Image: Generate images based on the text
prompt. - Image-to-Image: Pass reference image URLs in the optional parameter
urlsto generate new images guided by prompts. - Aspect Ratio and Resolution: Optional
aspectRatio(e.g., 16:9, 9:16) andimageSize(1K / 2K / 4K). - Unified Entry Point: Called via the interface imgEditNB2, with parameters including:
-prompt(required)
-urls(optional)
-aspectRatio(optional)
-imageSize(optional)
Explicitly not applicable: video generation, OCR, and non-generative image editing (as stated in the Skill: Do NOT use for video generation, OCR, or non-generative image editing).
Installation and Activation¶
First perform an environment check, then install the Skill into the skills directory that your current Agent can recognize.
1. Install SkillHub CLI (if not already installed)¶
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation documentation to perform the full installation:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
(For CLI only, you can use the --cli-only parameter in the documentation.)
2. Install nano-banana2¶
Official page requirement: Install @user_4bd21536/nano-banana2 according to https://skillhub.cn/install/skillhub.md.
The installation command must include --dir, pointing to the current Agent’s skills directory. Otherwise, the default location ./skills/ may not be recognized. Common path examples provided in the documentation:
| Environment | skills Directory (Example) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ in the project |
skillhub install @user_4bd21536/nano-banana2 --dir ~/.cursor/skills/
Replace the path with the Agent directory you actually use. After installation, restart or refresh the Skill list as required by each client.
3. Configure API Key¶
Obtain an x-api-key from kexiangai.com and configure it into the runtime environment according to the Skill instructions (the specific variable name is subject to the SKILL.md inside the Skill package; the page only indicates that x-api-key is required).
Typical Usage¶
The Skill does not provide complete HTTP examples on the public page. The trigger and parameter conventions are as follows to facilitate reproducing intent in conversations:
- The user says “Generate a 16:9 cover image at 2K, with the theme being…” → The Agent should select this Skill, call imgEditNB2, fill in
prompt, and setaspectRatioandimageSize. - The user uploads or provides an image URL and requests “Create a poster in this style” → Pass the reference image in
urls, combined withpromptfor image-to-image generation. - The user only provides text and doesn’t mention an aspect ratio → At minimum provide
prompt; aspect ratio and resolution can be omitted or use default values as needed (subject to the actual behavior of the API).
Example parameter structure (field names consistent with the Skill introduction):
{
"prompt": "科技感产品海报,深色背景,主标题留白",
"urls": ["https://example.com/reference.png"],
"aspectRatio": "16:9",
"imageSize": "2K"
}
Use Cases and Notes¶
Who it’s for: Product managers, operations staff, and developers who need to generate images directly within Agent workflows; teams willing to use the nano-banana2 API from kexiangai.com and provide their own API Key.
Notes:
- Depends on external API and billing policies; do not commit the Key to repositories.
- Do not use this Skill for video processing, text recognition, or non-generative editing needs such as “background removal” or “color adjustment.”
- The SkillHub page shows version v1.0.1; store statistics (downloads, installations, etc.) will change over time, so refer to the SkillHub Skill page for the latest information.
Conclusion¶
nano-banana2 consolidates text-to-image, image-to-image, and common aspect ratio/resolution parameters into imgEditNB2 and a set of trigger phrases, making it suitable for quickly generating covers and posters in coding assistant scenarios. For installation and priority source instructions, see the SkillHub installation documentation. For skill details and coordinates, see the official address: https://api.skillhub.cn/user_4bd21536/nano-banana2 (display page: https://www.skillhub.cn/skills/user_4bd21536/nano-banana2).