Generate and edit images using Google's Nano Banana Pro model via WaveSpeed AI. Supports text-to-image generation and image editing with natural language pro...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install wavespeed-nano-banana-pro或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install wavespeed-nano-banana-pro⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/wavespeed-nano-banana-pro/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: wavespeed-nano-banana-pro description: Generate and edit images using Google's Nano Banana Pro model via WaveSpeed AI. Supports text-to-image generation and image editing with natural language prompts. Features native 4K resolution, flexible aspect ratios, multilingual text rendering, and camera-style controls. Use when the user wants to create images from text or edit existing images. metadata: author: wavespeedai version: "1.0" ---
Generate and edit images using Google's Nano Banana Pro model via the WaveSpeed AI platform. Supports both text-to-image generation and natural-language image editing with up to 14 input images.
export WAVESPEED_API_KEY="your-api-key"
Get your API key at wavespeed.ai/accesskey.
import wavespeed from 'wavespeed';
const output_url = (await wavespeed.run(
"google/nano-banana-pro/text-to-image",
{ prompt: "A serene Japanese garden with cherry blossoms, watercolor style" }
))["outputs"][0];
The images parameter accepts an array of image URLs. If you have local files, upload them first with wavespeed.upload() to get a URL.
import wavespeed from 'wavespeed';
// Upload a local image to get a URL
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"google/nano-banana-pro/edit",
{
images: [imageUrl],
prompt: "Replace the sky with a dramatic sunset"
}
))["outputs"][0];
You can also pass existing image URLs directly:
const output_url = (await wavespeed.run(
"google/nano-banana-pro/edit",
{
images: ["https://example.com/photo.jpg"],
prompt: "Replace the sky with a dramatic sunset"
}
))["outputs"][0];
Model ID: google/nano-banana-pro/text-to-image
Generate images from text prompts.
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | prompt | string | Yes | -- | Text description of the image to generate | | aspect_ratio | string | No | -- | Output aspect ratio. One of: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 | | resolution | string | No | 1k | Image resolution. One of: 1k, 2k, 4k | | output_format | string | No | png | Output format. One of: png, jpeg |
import wavespeed from 'wavespeed';
const output_url = (await wavespeed.run(
"google/nano-banana-pro/text-to-image",
{
prompt: "A red vintage Porsche 911 on a winding mountain road at golden hour, photorealistic",
aspect_ratio: "16:9",
resolution: "2k",
output_format: "png"
}
))["outputs"][0];
Model ID: google/nano-banana-pro/edit
Edit existing images using natural language prompts. Supports up to 14 input images.
| Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | images | string[] | Yes | [] | URLs of input images to edit (1-14 images) | | prompt | string | Yes | -- | Text description of the desired edit | | aspect_ratio | string | No | -- | Output aspect ratio. One of: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 | | resolution | string | No | 1k | Image resolution. One of: 1k, 2k, 4k | | output_format | string | No | png | Output format. One of: png, jpeg |
import wavespeed from 'wavespeed';
// Upload local images first, or use existing URLs
const imageUrl = await wavespeed.upload("/path/to/living-room.png");
const output_url = (await wavespeed.run(
"google/nano-banana-pro/edit",
{
images: [imageUrl],
prompt: "Change the wall color to warm terracotta and add indoor plants",
aspect_ratio: "16:9",
resolution: "4k",
output_format: "png"
}
))["outputs"][0];
// Upload multiple local images
const faceUrl = await wavespeed.upload("/path/to/face.png");
const hairstyleUrl = await wavespeed.upload("/path/to/hairstyle.png");
const output_url = (await wavespeed.run(
"google/nano-banana-pro/edit",
{
images: [faceUrl, hairstyleUrl],
prompt: "Apply the hairstyle from the second image to the person in the first image"
}
))["outputs"][0];
Use sync mode for a single request that waits for the result without polling:
const output_url = (await wavespeed.run(
"google/nano-banana-pro/text-to-image",
{ prompt: "A minimalist logo for a coffee shop" },
{ enableSyncMode: true }
))["outputs"][0];
import { Client } from 'wavespeed';
const client = new Client("your-api-key", {
maxRetries: 2,
maxConnectionRetries: 5,
retryInterval: 1.0,
});
const output_url = (await client.run(
"google/nano-banana-pro/text-to-image",
{ prompt: "A futuristic cityscape at dusk" }
))["outputs"][0];
import { Client, WavespeedTimeoutException, WavespeedPredictionException } from 'wavespeed';
const client = new Client();
const result = await client.runNoThrow(
"google/nano-banana-pro/text-to-image",
{ prompt: "A cat wearing a top hat" }
);
if (result.outputs) {
console.log("Image URL:", result.outputs[0]);
console.log("Task ID:", result.detail.taskId);
} else {
console.log("Failed:", result.detail.error.message);
if (result.detail.error instanceof WavespeedTimeoutException) {
console.log("Request timed out - try increasing timeout");
} else if (result.detail.error instanceof WavespeedPredictionException) {
console.log("Model prediction failed");
}
}
| Aspect Ratio | Use Case | |-------------|----------| | 1:1 | Square — social media posts, profile pictures | | 3:2 | Landscape — standard photography | | 2:3 | Portrait — standard photography | | 3:4 | Portrait — social media, product images | | 4:3 | Landscape — presentations, web content | | 4:5 | Portrait — Instagram posts | | 5:4 | Landscape — print, web banners | | 9:16 | Vertical — mobile wallpapers, stories | | 16:9 | Widescreen — desktop wallpapers, video thumbnails | | 21:9 | Ultra-wide — cinematic, panoramic |
| Resolution | Cost | |------------|------| | 1k | $0.14 per image | | 2k | $0.14 per image | | 4k | $0.24 per image |
WAVESPEED_API_KEY securely. Do not hardcode it in source files or commit it to version control. Use environment variables or secret management systems.安装 WaveSpeedAI Nano Banana Pro Image Generation/Editing 后,可以对 AI 说这些话来触发它
Help me get started with WaveSpeedAI Nano Banana Pro Image Generation/Editing
Explains what WaveSpeedAI Nano Banana Pro Image Generation/Editing does, walks through the setup, and runs a quick demo based on your current project
Use WaveSpeedAI Nano Banana Pro Image Generation/Editing to generate and edit images using Google's Nano Banana Pro model via W...
Invokes WaveSpeedAI Nano Banana Pro Image Generation/Editing with the right parameters and returns the result directly in the conversation
What can I do with WaveSpeedAI Nano Banana Pro Image Generation/Editing in my design & creative workflow?
将技能文件夹放到 ~/.claude/skills/wavespeed-nano-banana-pro/ 目录(个人级,所有项目可用),或 .claude/skills/wavespeed-nano-banana-pro/(项目级)。重启 AI 客户端后,用 /wavespeed-nano-banana-pro 主动调用,或让 AI 根据上下文自动发现并使用。
WaveSpeedAI Nano Banana Pro Image Generation/Editing 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
WaveSpeedAI Nano Banana Pro Image Generation/Editing 可免费安装使用。请查阅仓库了解许可证信息。
Generate and edit images using Google's Nano Banana Pro model via WaveSpeed AI. Supports text-to-image generation and image editing with natural language pro...
Lists the top use cases for WaveSpeedAI Nano Banana Pro Image Generation/Editing, with example commands for each scenario
Automate my design & creative tasks using WaveSpeedAI Nano Banana Pro Image Generation/Editing
Identifies repetitive steps in your workflow and sets up WaveSpeedAI Nano Banana Pro Image Generation/Editing to handle them automatically
WaveSpeedAI Nano Banana Pro Image Generation/Editing 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。