smithery.ai

gemini image generator

Generate images using Google Gemini with customizable options

First seen Mar 27, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents gemini

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,451 B
  • docs SUMMARY.md 91 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

gemini-image-generator

Instructions

Use this skill to generate images using Google Gemini's image generation model. The skill supports:

  • Text-to-image generation from prompts
  • Image-to-image generation with a reference image
  • Multiple output sizes (1K, 2K, 4K)
  • Custom output paths

The API key must be set via the GEMINIAPIKEY environment variable.

Parameters

  • --prompt (required): The text prompt describing the image to generate
  • --output (required): Output file path for the generated image
  • --reference: Optional reference image for style/content guidance
  • --size: Image size - "1K", "2K", or "4K" (default: 4K)

Examples

Basic text-to-image generation

./scripts/generate.py --prompt "A serene mountain landscape at sunset" --output images/landscape.png

With reference image for style guidance

./scripts/generate.py --prompt "Same character but wearing a party hat" --reference images/character.png --output images/party.png

Different output size

./scripts/generate.py --prompt "Abstract art" --output art.png --size 2K

Setup

Before first use, set up the virtual environment:

cd scripts && python3 -m venv venv && ./venv/bin/pip install -r requirements.txt

Set your API key:

export GEMINI_API_KEY="your-api-key-here"