kylesnowschwartz/simpleclaude/sc-gemini-imagegen
Claude Code and agent skill by kylesnowschwartz/simpleclaude
- community
Checking that the SKILL.md file is still in the repository.
Generate and edit images using the Gemini API (Nano Banana). This skill SHOULD be used when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.
Install
npx vskill@latest install kylesnowschwartz/simpleclaude/sc-gemini-imagegenSKILL.md
Gemini Image Generation
Generate and edit images using Google's Gemini API. The SDK reads GOOGLE_API_KEY by default (GEMINI_API_KEY as fallback). Or pass a key explicitly to genai.Client(api_key=...).
Models
| Model | Codename | Best For | |
|---|---|---|---|
gemini-2.5-flash-image | Nano Banana | Most use cases, fast, good quality (default) | |
gemini-3-pro-image-preview | Nano Banana Pro | High-res (2K/4K), Google Search grounding, precise text | |
gemini-3.1-flash-image-preview | Nano Banana 2 | High volume, extended aspect ratios, 512 size |
Start with gemini-2.5-flash-image. Upgrade to Pro for high-res output or search grounding.
Quick Reference
Default Settings
- Model:
gemini-2.5-flash-image - Resolution: 1K (default)
- Aspect Ratio: 1:1 (default)
Available Aspect Ratios
All models: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
3.1 Flash only: 1:4, 4:1, 1:8, 8:1
Available Resolutions
All models: 1K (default), 2K, 4K
3.1 Flash only: 512
Core API Pattern
Note: response_modalities is optional. Omit it to let the model decide. Set ['IMAGE'] for image-only output, or ['TEXT', 'IMAGE'] for interleaved text and images.
Custom Resolution & Aspect Ratio
Editing Images (Chat Mode)
Chat mode is recommended for editing. The SDK handles thought signatures automatically across turns.
PIL Image objects, base64 bytes, and file URIs (via client.files.upload()) all work as image inputs.
Google Search Grounding
Generate images informed by real-time data. Requires Pro model.
Image search grounding (searching for reference images) is only available on gemini-3.1-flash-image-preview.
Multiple Reference Images
Combine elements from multiple sources. Pass PIL Image objects directly in the contents list.
Limits differ by model:
- 3.1 Flash: up to 10 object images + 4 character images (14 total)
- 3 Pro: up to 6 object images + 5 character images (11 total)
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"
File Format & Saving
The API returns JPEG in practice. image.save(path) writes raw bytes from the API response. It takes only a path string (no format kwarg).
To convert formats, use PIL on the raw bytes:
Notes
- All generated images include SynthID watermarks (not configurable for Gemini models)
save(path)writes raw bytes; noformatkwarg exists. Use PIL for format conversionresponse_modalitiesis optional; omit to let the model decide output format- Multi-turn chat handles thought signatures automatically via the SDK
- Editing via chat mode doesn't support
image_config(only modality config) - For editing, describe changes conversationally; the model understands semantic masking
- Default to 1K for speed; use 2K/4K when quality matters
person_generationparameter exists onImageConfigfor controlling person depiction in outputs
Security
- Security scanPassed, 100 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/sc-skills/skills/sc-gemini-imagegen/SKILL.md
Popularity
- Repository stars
- 89
- Repository forks
- 12
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 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/kylesnowschwartz/simpleclaude/sc-gemini-imagegen)