dp-archive/archive/gemini-imagegen
Claude Code and agent skill by dp-archive/archive
- community
Checking that the SKILL.md file is still in the repository.
Generate and edit images using Google Gemini's native image generation models (Nano Banana / Nano Banana Pro). Supports text-to-image, image editing with reference images, multi-image composition, and character consistency. Use when the user asks to generate images via Gemini, create AI illustrations, edit photos with Gemini, or needs high-quality image generation with the Google API. Requires GEMINI_API_KEY. Triggers: "generate image with gemini", "nano banana", "gemini image", "create illustration", "AI generate picture", "text to image".
Install
npx vskill@latest install dp-archive/archive/gemini-imagegenSKILL.md
Gemini Image Generation
Generate and edit images via Google Gemini's native multimodal image generation.
Model Selection
| Model ID | Codename | Best for | Max resolution | |
|---|---|---|---|---|
gemini-2.5-flash-image | Nano Banana | Fast drafts, high-volume, low-latency | 1K | |
gemini-3-pro-image-preview | Nano Banana Pro | Studio-quality, text rendering, complex prompts | 4K |
Default: gemini-3-pro-image-preview (Pro) unless speed/cost is a concern.
Setup
If GEMINI_API_KEY is missing, instruct the user to set it as an environment variable. Never ask the user to paste the key in chat.
Text-to-Image
Aspect Ratio
Set via image_config:
Supported ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Common choices:
- Slides / presentations →
16:9 - Social media / portraits →
9:16or4:5 - Square thumbnails →
1:1
Image Editing (with reference image)
Pro supports up to 14 reference images for multi-image composition and up to 5 human reference images for character/identity consistency.
Batch Generation (for slides)
When generating multiple images (e.g. one per slide), loop sequentially and save with numbered filenames:
Error Handling
- Safety filter block: The model may refuse prompts it deems unsafe. Adjust the prompt
to be less ambiguous (remove violent/adult/medical imagery language) and retry.
- Empty response: If
response.candidatesis empty or has no image parts, the prompt
may be too vague. Add concrete scene details and retry.
- Rate limit (429): Back off with exponential delay. Default:
time.sleep(2 ** attempt). - Timeout: Set a reasonable timeout; Pro model may take 10–30s for complex prompts.
Prompt Best Practices
- Structure: scene → subject → style → composition → constraints
- Always specify art style: "flat vector illustration", "watercolor painting", "3D render", "photorealistic photograph"
- Include lighting and mood: "soft diffused lighting", "dramatic rim light", "golden hour"
- For text in images: quote exact text, specify font style and placement
- For slide illustrations: add "negative space on [side]" to leave room for text overlay
- Use English prompts even for non-English content (better generation quality)
- Keep prompts under 500 words; be specific but not verbose
Style Consistency for Multi-Image Sets
When generating a series (e.g. slide deck), prepend a style prefix to every prompt:
This ensures visual coherence across all generated images.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingseed_skills/gemini-imagegen/SKILL.md
Popularity
- Repository stars
- 1,105
- Repository forks
- 99
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dp-archive/archive/gemini-imagegen)