Agent skill · Backend & API

gemini-image-gen

Guide for implementing Google Gemini API image generation - create high-quality images from text prompts using gemini-2.5-flash-image model. Use when generating images, creating visual content, or implementing text-to-image features. Supports text-to-image, image editing, multi-image composition, and iterative refinement.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill gemini-image-gen-aia-11-hn-mib-mib-mockinterviewaib-2 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0.0
Allowed tools: -Bash-Read-Write
Path: skills/ai-llm/gemini-image-gen-aia-11-hn-mib-mib-mockinterviewaib-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Gemini Image Generation Skill Generate high-quality images using Google's Gemini 2.5 Flash Image model with text prompts, image editing, and multi-image composition capabilities. ## When to Use This Skill Use this skill when you need to: - Generate images from text descriptions - Edit existing images by adding/removing elements or changing styles - Combine multiple source images into new compositions - Iteratively refine images through conversational editing - Create visual content for documentation, design, or creative projects ## Prerequisites ### API Key Setup The skill supports both **Google AI Studio** and **Vertex AI** endpoints. #### Option 1: Google AI Studio (Default) The skill automatically detects your `GEMINI_API_KEY` in this order: 1. **Process environment**: `export GEMINI_API_KEY="your-key"` 2. **Project root**: `.env` 3. **.claude directory**: `.claude/.env` 4. **.claude/skills directory**: `.claude/skills/.env` 5. **Skill directory**: `.claude/skills/gemini-image-gen/.env` **Get your API key**: Visit [Google AI Studio](https://aistudio.google.com/apikey) Create `.env` file with: ```bash GEMINI_API_KEY=your_api_key_here ``` #### Option 2: Vertex AI To use Vertex A

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Prerequisites
  3. API Key Setup
  4. Python Setup
  5. Quick Start
  6. Basic Text-to-Image Generation
  7. Using the Helper Script
  8. Key Features
  9. Aspect Ratios
  10. Response Modalities
  11. Image Editing
  12. Multi-Image Composition
  13. Prompt Engineering Tips
  14. Safety Settings
Ships with 1 file
  • metadata.json
Commands it runs
Enable Vertex AI
export GEMINI_USE_VERTEX=true
export VERTEX_PROJECT_ID=your-gcp-project-id
export VERTEX_LOCATION=us-central1  # Optional, defaults to us-central1
pip install google-genai
Generate single image
python .claude/skills/gemini-image-gen/scripts/generate.py \
Generate with specific modalities
Create directory if needed
mkdir -p ./docs/assets
More from claude-skill-registry
All skills →
About this skill
What does the gemini-image-gen skill do?

Guide for implementing Google Gemini API image generation - create high-quality images from text prompts using gemini-2.5-flash-image model. Use when generating images, creating visual content, or implementing text-to-image features. Supports text-to-image, image editing, multi-image composition, and iterative refinement.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill gemini-image-gen-aia-11-hn-mib-mib-mockinterviewaib-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going