Loading...
Loading...
Generate AI images using Gemini image generation API. Use this skill when content needs images - thumbnails, social posts, blog headers, or creative visuals. Follows an iterative workflow - brainstorm concepts, select direction, generate in multiple styles, then produce via API.
npx skill4agent add cdeistopened/skill-stack image-prompt-generator.envGEMINI_API_KEY=your_api_key_hereexport GEMINI_API_KEY=your_api_key_herepip install google-generativeai python-dotenv pillow| Model | API Name | Best For |
|---|---|---|
| Flash | | Speed, drafts, iteration |
| Pro | | Final assets, 16:9 aspect ratio, quality |
gemini-3-pro-image-preview1. **[Short label]** - One sentence description of the visual concept and why it works.
2. **[Short label]** - One sentence description...1. **Compass with coffee stain** - A vintage compass where the needle points toward a coffee ring stain on a map, suggesting direction emerges from daily rituals.
2. **Clock face with seasons** - A clock where the 12 hours show seasonal changes, suggesting time management over long arcs, not just hours.
3. **Empty desk with shadow** - A minimalist desk in morning light, but the shadow shows a cluttered desk - the gap between intention and reality.
4. **Single key on many keychains** - One small key attached to dozens of decorative keychains, suggesting we overcomplicate simple solutions.Create a [style type] illustration of [subject].
CONCEPT: [Expand the one-sentence idea into a clear visual description]
STYLE: [Artistic approach - load from references/styles/ if brand-specific]
COMPOSITION: [Framing, focal point, negative space, balance]
COLORS: [Palette - describe by name, not hex codes which may render as text]
TEXTURE: [Surface qualities, analog/digital feel]
AVOID: [What should NOT appear - be specific]
FORMAT: [Aspect ratio]references/styles/risograph.mdreferences/styles/# Load key from .env and generate
export $(grep GEMINI_API_KEY .env) && \
python scripts/generate_image.py "prompt here" --model pro --aspect 16:9
# Save to specific folder
python scripts/generate_image.py "prompt" --output "./images" --name "my_image"--model flash--model pro--aspect 16:91:19:16--variations N--output ./path--name prefix| Don't | Do |
|---|---|
| "Cool car, neon, city, night, 8k" | "A cinematic wide shot of a futuristic sports car speeding through a rainy Tokyo street at night. The neon signs reflect off the wet pavement and the car's metallic chassis." |
risograph.mdminimalist-ink.mdwatercolor-line.mdeditorial-conceptual.mdgenerate_image.py| Category | Examples |
|---|---|
| Lighting | golden hour, dramatic shadows, soft diffused light, neon glow, overcast |
| Style | cinematic, editorial, technical diagram, hand-drawn, photorealistic |
| Texture | matte finish, brushed steel, soft velvet, crumpled paper, weathered wood |
| Composition | wide shot, close-up, bird's eye view, dutch angle, symmetrical |
| Mood | energetic, serene, dramatic, playful, sophisticated |
| Quality | 4K, high-fidelity, pixel-perfect, professional grade |
Earnings Report Infographic:
"Generate a clean, modern infographic summarizing the key financial highlights from this earnings report. Include charts for 'Revenue Growth' and 'Net Income', and highlight the CEO's key quote in a stylized pull-quote box."Whiteboard Summary:
"Summarize the concept of 'Transformer Neural Network Architecture' as a hand-drawn whiteboard diagram suitable for a university lecture. Use different colored markers for the Encoder and Decoder blocks, and include legible labels for 'Self-Attention' and 'Feed Forward'."Viral Thumbnail:
"Design a viral video thumbnail using the person from Image 1.
Face Consistency: Keep the person's facial features exactly the same as Image 1, but change their expression to look excited and surprised.
Action: Pose the person on the left side, pointing their finger towards the right side of the frame.
Subject: On the right side, place a high-quality image of a delicious avocado toast.
Graphics: Add a bold yellow arrow connecting the person's finger to the toast.
Text: Overlay massive, pop-style text in the middle: 'Done in 3 mins!'. Use a thick white outline and drop shadow.
Background: A blurred, bright kitchen background. High saturation and contrast."--input# Basic edit - add something
python scripts/generate_image.py "Add snow to the roof and yard" \
--input ./house.png \
--model pro
# Color adjustment
python scripts/generate_image.py "Change the accent color from red to teal, keep everything else identical" \
--input ./thumbnail.png \
--model pro
# Style transfer - keep composition, change aesthetic
python scripts/generate_image.py "Convert this to risograph style with halftone dots and slight color misregistration" \
--input ./photo.png \
--model pro
# Generate variations of an edit
python scripts/generate_image.py "Make the lighting warmer, like golden hour" \
--input ./portrait.png \
--variations 3 \
--model pro{prefix}_{timestamp}_edit_{model}.png_gen_python scripts/generate_image.py \
"Remove the tourists from the background and fill with matching cobblestones and storefronts" \
--input ./street-photo.png \
--model propython scripts/generate_image.py \
"Turn this into winter. Add snow to the roof and yard. Change lighting to cold, overcast afternoon. Keep architecture identical." \
--input ./house-summer.png \
--model propython scripts/generate_image.py \
"Keep the person's face exactly the same. Change expression to surprised. Add a pointing gesture toward the right side of the frame." \
--input ./person-reference.png \
--model pro