Loading...
Loading...
Compare original and translation side by side
gemini extensions list | grep nanobananagemini extensions install https://github.com/gemini-cli-extensions/nanobanana[ -n "$GEMINI_API_KEY" ] && echo "API key configured" || echo "Missing GEMINI_API_KEY"gemini extensions list | grep nanobananagemini extensions install https://github.com/gemini-cli-extensions/nanobanana[ -n "$GEMINI_API_KEY" ] && echo "API key configured" || echo "Missing GEMINI_API_KEY"| User Request | Command |
|---|---|
| "make me a blog header" | |
| "create an app icon" | |
| "draw a flowchart of..." | |
| "fix this old photo" | |
| "remove the background" | |
| "create a repeating texture" | |
| "make a comic strip" | |
| 用户需求 | 命令 |
|---|---|
| "为我制作博客页眉" | |
| "创建一个应用图标" | |
| "绘制一个...的流程图" | |
| "修复这张旧照片" | |
| "去除背景" | |
| "创建重复纹理" | |
| "制作漫画条" | |
--yolo| Command | Use Case |
|---|---|
| Text-to-image generation |
| Modify existing image |
| Repair damaged photos |
| App icons, favicons, UI elements |
| Flowcharts, architecture diagrams |
| Seamless textures and patterns |
| Sequential/narrative images |
| Natural language interface |
--yolo| 命令 | 使用场景 |
|---|---|
| 文本转图片生成 |
| 修改现有图片 |
| 修复损坏的照片 |
| 应用图标、网站图标、UI元素 |
| 流程图、架构图 |
| 无缝纹理和图案 |
| 序列/叙事图片 |
| 自然语言界面 |
--yolo--count=N--preview--styles="style1,style2"--format=grid|separate--yolo--count=N--preview--styles="style1,style2"--format=grid|separate| Use Case | Dimensions | Notes |
|---|---|---|
| YouTube thumbnail | 1280x720 | |
| Blog featured image | 1200x630 | Social preview friendly |
| Square social | 1080x1080 | Instagram, LinkedIn |
| Twitter/X header | 1500x500 | Wide banner |
| Vertical story | 1080x1920 | |
| 使用场景 | 尺寸 | 说明 |
|---|---|---|
| YouTube缩略图 | 1280x720 | |
| 博客首图 | 1200x630 | 适配社交预览 |
| 方形社交图 | 1080x1080 | 适用于Instagram、LinkedIn |
| Twitter/X页眉 | 1500x500 | 宽幅横幅 |
| 竖版故事图 | 1080x1920 | |
gemini-2.5-flash-imageexport NANOBANANA_MODEL=gemini-3-pro-image-previewgemini-2.5-flash-imageexport NANOBANANA_MODEL=gemini-3-pro-image-previewundefinedundefinedundefinedundefinedgemini --yolo "/icon 'minimalist app logo for productivity tool' --sizes='64,128,256,512' --type='app-icon' --corners='rounded'"gemini --yolo "/icon 'minimalist app logo for productivity tool' --sizes='64,128,256,512' --type='app-icon' --corners='rounded'"gemini --yolo "/diagram 'user authentication flow with OAuth' --type='flowchart' --style='modern'"gemini --yolo "/diagram 'user authentication flow with OAuth' --type='flowchart' --style='modern'"./nanobanana-output/./nanobanana-output/./nanobanana-output/./nanobanana-output/--count=3gemini --yolo "/edit nanobanana-output/filename.png 'adjustment'"--styles="requested_style"--count=3gemini --yolo "/edit nanobanana-output/filename.png 'adjustment'"--styles="requested_style"| Problem | Solution |
|---|---|
| |
| Extension not found | Run install command from setup section |
| Quota exceeded | Wait for reset or switch to flash model |
| Image generation failed | Check prompt for policy violations, simplify request |
| Output directory missing | Will be created automatically on first run |
| 问题 | 解决方案 |
|---|---|
未设置 | 执行 |
| 找不到扩展 | 执行安装准备部分的安装命令 |
| 配额用尽 | 等待重置或切换到flash模型 |
| 图片生成失败 | 检查提示词是否违反政策,简化请求 |
| 输出目录缺失 | 首次运行时会自动创建 |