← ClaudeAtlas

generate-imagelisted

This skill should be used when the user asks to "generate an image", "create a picture", "make an image of", "edit this image", "transform this photo", or needs AI-generated visual content using Google's Gemini image generation model.
mfmezger/ai_agent_dotfiles · ★ 1 · AI & Automation · score 68
Install: claude install-skill mfmezger/ai_agent_dotfiles
# Image Generation with Gemini Generate images using Google's Gemini image generation model via Vertex AI. Supports both text-to-image and image-to-image generation. ## Prerequisites Environment variables (can be in `.env` file in working directory): - `GOOGLE_APPLICATION_CREDENTIALS` - Path to service account JSON file - `GOOGLE_CLOUD_PROJECT` - GCP project ID ## Usage Run the generation script using `uvx`: ```bash # Text-to-image generation uvx --with google-genai --with python-dotenv python ~/.claude/skills/generate-image/scripts/generate.py "PROMPT" # Image-to-image generation (with input image) uvx --with google-genai --with python-dotenv python ~/.claude/skills/generate-image/scripts/generate.py "PROMPT" -i /path/to/input/image.png ``` ### Options | Flag | Description | Default | | ------------------- | ----------------------------------------- | --------- | | `-i, --input PATH` | Input image for image-to-image generation | None | | `-o, --output PATH` | Where to save the image | Temp file | | `--aspect-ratio` | "16:9", "1:1", "9:16" | "16:9" | | `--size` | "1K" or "2K" | "2K" | ### Examples ```bash # Basic text-to-image - saves to temp file, prints path uvx --with google-genai --with python-dotenv python ~/.claude/skills/generate-image/scripts/generate.py "A serene mountain landscape at sunset" # Save to specific loc