gemini-image
Reference guide for using google-genai Python library to generate images with gemini-3-pro-image-preview model. Use this skill when building new projects that need Gemini image generation capabilities, to understand the correct API patterns, configuration options, and best practices.
npx skills add majiayu000/claude-skill-registry --skill gemini-image --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 Generation Guide Reference for generating images with Google's `gemini-3-pro-image-preview` model. ## Language References Load the appropriate reference based on the project's language: | Language | Reference File | |----------|------------------------| | Python | `references/python.md` | **Instructions:** When implementing Gemini image generation, read the corresponding language reference file for complete code patterns and examples. --- ## Model Information | Property | Value | |----------------------|------------------------------| | Model ID | `gemini-3-pro-image-preview` | | Cost | ~$0.134 per image (2K) | | Max Reference Images | 5+ (high fidelity) | | Resolutions | 1K, 2K, 4K | ## Supported Aspect Ratios | Ratio | Use Case | |--------|----------------------------| | `1:1` | Square, social media posts | | `2:3` | Portrait photos | | `3:2` | Landscape photos | | `3:4` | Portrait, mobile screens | | `4:3` | Standard display | | `4:5` | Instagram portrait | | `5:4` | Large format | | `9:16` | Vertical video, stories | | `16:9` | Widescreen, presentations | | `21:9` | Ultra-wide, cinematic | ## Image Sizes | Size | Resolution | Use Case | |------|------------|-----
- Language References
- Model Information
- Supported Aspect Ratios
- Image Sizes
- Environment Setup
- Core Capabilities
- 1. Text-to-Image Generation
- 2. Style Transfer with Reference Images
- 3. Image Editing
- 4. Batch Generation
- Prompt Engineering Tips
- Be Descriptive
- Specify Visual Elements
- For Style Transfer
export GOOGLE_API_KEY='your-api-key-here'
What does the gemini-image skill do?
Reference guide for using google-genai Python library to generate images with gemini-3-pro-image-preview model. Use this skill when building new projects that need Gemini image generation capabilities, to understand the correct API patterns, configuration options, and best practices.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-image --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.
