roberto-mello/lavra/gemini-imagegen
Claude Code and agent skill by roberto-mello/lavra
- community
Checking that the SKILL.md file is still in the repository.
Generate and edit images using the Gemini API. Use for text-to-image, image editing, style transfers, logos, stickers, or product mockups.
Install
npx vskill@latest install roberto-mello/lavra/gemini-imagegenSKILL.md
Gemini Image Generation (Nano Banana Pro)
Generate and edit images using Google's Gemini API. The environment variable GEMINI_API_KEY must be set.
Default Model
| Model | Resolution | Best For | |
|---|---|---|---|
gemini-3-pro-image-preview | 1K-4K | All image generation (default) |
Note: Always use this Pro model. Only use a different model if explicitly requested.
Quick Reference
Default Settings
- Model:
gemini-3-pro-image-preview - Resolution: 1K (default, options: 1K, 2K, 4K)
- Aspect Ratio: 1:1 (default)
Available Aspect Ratios
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Available Resolutions
1K (default), 2K, 4K
Core API Pattern
Custom Resolution & Aspect Ratio
Resolution Examples
Aspect Ratio Examples
Editing Images
Pass existing images with text prompts:
Multi-Turn Refinement
Use chat for iterative editing:
Prompting Best Practices
Photorealistic Scenes
Include camera details: lens type, lighting, angle, mood.
"A photorealistic close-up portrait, 85mm lens, soft golden hour light, shallow depth of field"
Stylized Art
Specify style explicitly:
"A kawaii-style sticker of a happy red panda, bold outlines, cel-shading, white background"
Text in Images
Be explicit about font style and placement:
"Create a logo with text 'Daily Grind' in clean sans-serif, black and white, coffee bean motif"
Product Mockups
Describe lighting setup and surface:
"Studio-lit product photo on polished concrete, three-point softbox setup, 45-degree angle"
Advanced Features
Google Search Grounding
Generate images based on real-time data:
Multiple Reference Images (Up to 14)
Combine elements from multiple sources:
Important: File Format & Media Type
CRITICAL: The Gemini API returns images in JPEG format by default. When saving, always use .jpg extension to avoid media type mismatches.
Converting to PNG (if needed)
If you specifically need PNG format:
Verifying Image Format
Check actual format vs extension with the file command:
Notes
- All generated images include SynthID watermarks
- Gemini returns JPEG format by default - always use
.jpgextension - Image-only mode (
responseModalities: ["IMAGE"]) won't work with Google Search grounding - For editing, describe changes conversationally—the model understands semantic masking
- Default to 1K resolution for speed; use 2K/4K when quality is critical
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/lavra/skills/optional/gemini-imagegen/SKILL.md
Popularity
- Repository stars
- 47
- Repository forks
- 2
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/roberto-mello/lavra/gemini-imagegen)