Loading...
Loading...
Generate images using Google's Gemini API — hero backgrounds, OG images, placeholder photos, textures, and style-matched variants. Uses free-tier models for drafts, paid for finals. No dependencies beyond Python 3. Trigger with 'generate image', 'gemini image', 'make a hero background', 'create placeholder photo', 'generate OG image', 'AI image', or 'need an image for'.
npx skill4agent add jezweb/claude-skills gemini-image-genGEMINI_API_KEYexport GEMINI_API_KEY="your-key-here"python3 plugins/design-assets/skills/gemini-image-gen/scripts/generate-image.py \
--prompt "Soft-focus atmospheric background, warm gold and cream botanical elements, luxury spa aesthetic, wide landscape" \
--output public/images/hero.png \
--model gemini-2.5-flash-imagepython3 .../generate-image.py --prompt "..." --output public/images/hero.png --count 3
# Produces hero-1.png, hero-2.png, hero-3.pngpython3 .../generate-image.py \
--prompt "Same warm lighting and colour palette, but showing a massage treatment room" \
--reference public/images/existing-hero.jpg \
--output public/images/services-bg.png \
--model gemini-3-pro-image-previewpython3 plugins/design-assets/skills/image-processing/scripts/process-image.py \
optimise public/images/hero.png --output public/images/hero.webp --width 1920| Preset | Base Prompt |
|---|---|
| "Wide atmospheric background, soft-focus, [colour tones], [mood], landscape 1920x1080" |
| "Clean branded card background, [brand colours], subtle gradient, 1200x630" |
| "Professional stock-style photo of [subject], natural lighting, warm tones" |
| "Subtle repeating texture, [material], seamless tile, muted [colour]" |
| "Product photography, [item] on [surface], soft studio lighting, clean background" |
| Use case | Model | Cost |
|---|---|---|
| Drafts, quick placeholders | | Free (~500/day) |
| Final client assets | | ~$0.04/image |
| Style-matched variants | | ~$0.04/image |
| When | Read |
|---|---|
| Building effective prompts | references/prompting-guide.md |