imagen logo

imagen

Free

Generate images using Google Gemini's image generation API for UI mockups, icons, illustrations, and visual assets. *By [@sanjay3290](https://github.com/sanjay3290)*

FreeFree tier
Inputs: textOutputs: image
Type
Open Source

About imagen

The Imagen skill for Claude Code enables generating images using Google Gemini's image generation model. It automatically detects when an image is needed during a coding session and generates and saves images directly to your project. Supports multiple resolutions (512px, 1K, 2K), custom output paths, and is cross-platform (Windows, macOS, Linux). Requires a free API key from Google AI Studio.

Key Features

Cross-platform: works on Windows, macOS, and Linux
Automatic activation: Claude detects when an image is needed and runs the skill
Multiple image sizes: 512px, 1K (default), or 2K resolution
Custom output paths: save generated images anywhere in your project
Frontend ready: ideal for UI development, placeholders, icons, and hero images
Documentation images: generate diagrams, illustrations, flowcharts
Manual script usage for advanced users with size and model options

Pros & Cons

Pros
  • Automatic activation by Claude simplifies image generation during coding
  • Multiple resolution options (512, 1K, 2K) for different use cases
  • Custom output paths allow flexible integration into projects
  • Cross-platform support (Windows, macOS, Linux) with a single Python script
  • Free API key available from Google AI Studio with a generous free tier
  • Simple setup with environment variable for API key
Cons
  • Requires a Google Gemini API key and internet connectivity
  • Image quality and capabilities depend on the underlying Gemini model
  • Limited to text-to-image generation; no inpainting or editing features explicitly mentioned
  • Only generates static images, not animated or interactive content

Best For

Generate UI mockups and placeholder images during frontend developmentCreate app icons, hero images, and chart placeholders for landing pagesProduce architecture diagrams, flowcharts, and illustrations for documentationQuickly generate visual assets during any coding session without leaving the terminal

FAQ

How do I install the Imagen skill?
Install via the plugin marketplace using `/plugin install imagen@ai-skills` or add the entire marketplace with `/plugin marketplace add sanjay3290/ai-skills`.
What API key is needed?
A free API key from Google AI Studio is required. Set it as the environment variable `GEMINI_API_KEY`.
What image sizes are supported?
Three sizes are supported: 512px (512x512, ideal for icons and thumbnails), 1K (1024x1024, default for general use), and 2K (2048x2048, for high-res and print).
Can I save images to a custom path?
Yes, you can specify a custom output path when requesting an image, e.g., 'save it to ./public/hero.png'.
Does the skill work on all operating systems?
Yes, the skill is cross-platform and works on Windows, macOS, and Linux.