Generate, edit, and compose images using Google's Gemini AI API for design workflows and visual content creation
View on GitHubhirefrank/hirefrank-marketplace
edge-stack
January 16, 2026
Select agents to install to:
npx add-skill https://github.com/hirefrank/hirefrank-marketplace/blob/main/plugins/edge-stack/skills/gemini-imagegen/SKILL.md -a claude-code --skill gemini-imagegenInstallation paths:
.claude/skills/gemini-imagegen/# Gemini ImageGen SKILL ## Overview This skill provides image generation and manipulation capabilities using Google's Gemini AI API. It's designed for local development workflows where you need to create or modify images using AI assistance. ## Features - **Generate Images**: Create images from text descriptions - **Edit Images**: Modify existing images based on text prompts - **Compose Images**: Combine multiple images with layout instructions - **Multiple Formats**: Support for PNG, JPEG, and other common image formats - **Size Options**: Flexible output dimensions for different use cases ## Environment Setup This skill requires a Gemini API key: ```bash export GEMINI_API_KEY="your-api-key-here" ``` Get your API key from: https://makersuite.google.com/app/apikey ## Available Scripts ### 1. Generate Image (`scripts/generate-image.ts`) Create new images from text descriptions. **Usage:** ```bash npx tsx scripts/generate-image.ts <prompt> <output-path> [options] ``` **Arguments:** - `prompt`: Text description of the image to generate - `output-path`: Where to save the generated image (e.g., `./output.png`) **Options:** - `--width <number>`: Image width in pixels (default: 1024) - `--height <number>`: Image height in pixels (default: 1024) - `--model <string>`: Gemini model to use (default: 'gemini-2.0-flash-exp') **Examples:** ```bash # Basic usage GEMINI_API_KEY=xxx npx tsx scripts/generate-image.ts "a sunset over mountains" output.png # Custom size npx tsx scripts/generate-image.ts "modern office workspace" office.png --width 1920 --height 1080 # Using npm script npm run generate "futuristic city skyline" city.png ``` ### 2. Edit Image (`scripts/edit-image.ts`) Modify existing images based on text instructions. **Usage:** ```bash npx tsx scripts/edit-image.ts <source-image> <prompt> <output-path> [options] ``` **Arguments:** - `source-image`: Path to the image to edit - `prompt`: Text description of the desired changes - `output-path`: Where to