Build optimized prompts for image generation with the Nano Banana models (Google's Gemini family). This skill does not make API calls — it delivers the prompt as chat output, ready to paste into Gemini Studio, Claude.ai, ChatGPT, or any other image generator.
If you need to call the API directly from code, see
references/api-usage.md(optional reference, not used by the main flow).
Workflow
- Identify type: product, architectural render, marketing/social, concept art, or editing an existing image
- Suggest model: see "Models" below (default: Nano Banana 2)
- Build prompt: apply formula + prompting rules (below). Ready-made templates by type in
references/prompt-templates.md - Suggest aspect ratio: according to the content orientation (table below)
- Output: prompt in a code block + recommended model + aspect ratio
Prompting
Base formula:
A [composition] [subject] in [style] with [lighting], featuring [details]
Always in English. Prefix: "Generate an image:".
Key rules:
- Long, descriptive prompt > short prompt. Minimum 2 sentences
- Specify style: "photorealistic", "3D render", "watercolor", "flat illustration"
- Specify lighting: "soft studio lighting", "golden hour", "dramatic side lighting"
- Specify camera angle: "eye-level", "3/4 view", "bird's eye view", "close-up"
- Add "no people, no text" if not needed
- Text in images: works but with frequent errors. Limit to 1-3 words
For a complete prompting guide with keywords by category: references/prompting-guide.md
Aspect Ratio (recommendations)
| Ratio | Typical resolution | Use |
|---|---|---|
1:1 |
1024x1024 | Avatar, thumbnail, square social media |
3:4 |
896x1152 | Portrait, vertical product, poster |
4:3 |
1152x896 | Landscape, hero image, horizontal product |
16:9 |
1344x768 | Banner, wide hero, presentation |
9:16 |
768x1344 | Story, reel, mobile wallpaper |
Other ratios supported by the Nano Banana family: 2:3, 3:2, 4:5, 5:4, 9:21, 21:9, 2:1, 1:2, 5:3, 3:5. Suggest the one that best matches the content.
Models
| Model | Model ID | When to use |
|---|---|---|
| Nano Banana 2 (default) | gemini-3.1-flash-image-preview |
General case, Pro quality at Flash speed |
| Nano Banana Pro | gemini-3-pro-image-preview |
Maximum quality, Thinking mode, up to 4K |
| Nano Banana | gemini-2.5-flash-image |
Legacy, rapid prototyping |
Rule: always suggest gemini-3.1-flash-image-preview unless the user explicitly requests another model or needs >1344px resolution (in that case, Nano Banana Pro). For a detailed comparison: references/model-guide.md.
Templates
Templates ready to copy and adapt by content type:
- Product photography (studio, white bg, catalog)
- Architectural renders (interior, exterior, room)
- Marketing/Social (hero, banners, ads)
- Concept art (characters, environments, props)
See all in references/prompt-templates.md.
Image editing
Nano Banana also supports editing existing images (background replacement, style transfer, object removal, color/lighting changes). The editing prompt follows a different structure than text-to-image. For editing prompt patterns: references/image-editing.md.
Output
Deliver to the user in this format:
**Prompt** (modelo: `gemini-3.1-flash-image-preview`, aspect ratio: `4:3`):
```
Generate an image: A photorealistic product shot of...
```
Pegar en: Gemini Studio (aistudio.google.com), Claude.ai, o el generador que prefieras.