gemini-image
Invoke Google Gemini for image generation and understanding using the Python google-genai SDK. Supports gemini-3-pro-image-preview (generation + understanding), gemini-2.5-flash-image (fast generation), and vision models for analysis.
npx skills add majiayu000/claude-skill-registry --skill gemini-image-rdfitted-claude-code-setup --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.
# Gemini Image Skill Invoke Google Gemini models for image generation, image understanding, and visual analysis using the Python `google-genai` SDK. ## Available Models | Model ID | Description | Best For | Output Format | |----------|-------------|----------|---------------| | `gemini-3-pro-image-preview` | Best image generation + understanding | High-quality image gen, complex visual analysis | JPEG | | `gemini-2.5-flash-image` | Fast image generation | Quick image creation | PNG | | `gemini-3-pro-preview` | Multimodal understanding | Image analysis without generation | N/A | | `gemini-2.5-flash` | Fast vision | Quick image analysis | N/A | ## Configuration **API Key**: `${GEMINI_API_KEY}` ## Usage ### Image Generation ```bash python -c " from google import genai from google.genai import types client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY")) response = client.models.generate_content( model='gemini-3-pro-image-preview', # Returns JPEG | Use gemini-2.5-flash-image for PNG contents='Generate an image of a sunset over mountains', config=types.GenerateContentConfig( response_modalities=['IMAGE', 'TEXT'] ) ) # Map mime types to file extensions mime_to_ext = {'image/png':
- Available Models
- Configuration
- Usage
- Image Generation
- Image Understanding (Analyze Image from File)
- Image Understanding (From URL)
- Workflow
- Example Invocations
- Generate Product Image
- Analyze Screenshot
- OCR / Extract Text from Image
- Compare Two Images
- Image Generation Parameters
- Supported Image Formats
python -c "
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
response = client.models.generate_content(
Map mime types to file extensions
mime_to_ext = {'image/png': '.png', 'image/jpeg': '.jpg', 'image/gif': '.gif', 'image/webp': '.webp'}
Save generated image
if response.candidates and response.candidates[0].content:
for part in response.candidates[0].content.parts:What does the gemini-image skill do?
Invoke Google Gemini for image generation and understanding using the Python google-genai SDK. Supports gemini-3-pro-image-preview (generation + understanding), gemini-2.5-flash-image (fast generation), and vision models for analysis.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-image-rdfitted-claude-code-setup --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.
