gemini-image-gen
Generate images directly from Claude Code CLI using Google's Gemini API.
npx skills add majiayu000/claude-skill-registry --skill gemini-image-gen-freitasp1-claude-code-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: gemini-image-gen description: Image generation with Google Gemini API. Models: gemini-2.5-flash-image (fast) or gemini-3-pro-image-preview (quality). For social media graphics, marketing, infographics. --- # Gemini Image Generation Generate images directly from Claude Code CLI using Google's Gemini API. ## Setup **API Key:** https://aistudio.google.com/apikey **Environment Variable:** `GOOGLE_AI_API_KEY` **Install:** `pip install google-genai pillow python-dotenv` ## Basic Usage ```python import os from google import genai client = genai.Client(api_key=os.environ.get("GOOGLE_AI_API_KEY")) response = client.models.generate_content( model="gemini-2.5-flash-image", # Fast # model="gemini-3-pro-image-preview", # Quality contents=["Your image prompt here"] ) # Extract and save image from response for part in response.candidates[0].content.parts: if hasattr(part, 'inline_data') and part.inline_data: with open("output.png", "wb") as f: f.write(part.inline_data.data) ``` ## Models | Model | Speed | Quality | Use Case | |-------|-------|---------|----------| | `gemini-2.5-flash-image` | Fast (~5s) | Good | Drafts, iterations | | `gemini-3-pro-image-preview` | Slower (~15s) | Excel
- Setup
- Basic Usage
- Models
- Use Cases
- Advanced: Manufacturing Dashboard Example
- Image Compression for PPTX
- Real-World Usage
What does the gemini-image-gen skill do?
Generate images directly from Claude Code CLI using Google's Gemini API.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-image-gen-freitasp1-claude-code-skills --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.
