gemini-image-generator

gemini-image-generator is a skill for Claude Code from ckorhonen/claude-skills. It costs 34 tokens per session (2,958 once invoked), scanned A, original, MIT.

An image-generation tool that uses Google's Gemini API to create pictures from text, edit existing images, or combine reference images.

In plain words
What is it for?
Use it for app icons, logos, UI placeholders, promotional graphics, game sprites, concept art, mood boards, and prompt-based image edits.
Why use it?
It helps create visual assets without manually drawing or editing every image.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-skills plugin — 62 skills, 4 commands, 7 agents shipped together

Good fit Use it for app icons, logos, UI placeholders, promotional graphics, game sprites, concept art, mood boards, and prompt-based image edits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ckorhonen/claude-skills/gemini-image-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ckorhonen/claude-skills --skill gemini-image-generator
Clone the repo
git clone --depth 1 https://github.com/ckorhonen/claude-skills

Made for: Claude Code.

Or install claude-skills, the plugin that ships this one along with the rest of its 62 skills, 4 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-image-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/ckorhonen/claude-skills/gemini-image-generator/github.svg)](https://agentmods.dev/skills/ckorhonen/claude-skills/gemini-image-generator)
Your own site
<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/gemini-image-generator"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/gemini-image-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-image-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/gemini-image-generator"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/gemini-image-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.02958
Opus 5 $0.00017 $0.01479
Sonnet 5 $0.00007 $0.00592
Haiku 4.5 $0.00003 $0.00296

Measured 12d ago against content hash 4315713c8c61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gemini-image-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_image.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gemini-image-generator/SKILL.md · 398 lines

How it starts

The opening of the file, as written. The whole thing — 398 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Gemini Image Generator

Overview

Generate images using Google's Gemini API with support for text-to-image generation, image editing, and multi-image reference inputs. Supports the fast Gemini 2.5 Flash Image model and the high-quality Gemini 3.1 Flash Image model with up to 4K resolution.

Model naming note (2026): Google's image generation models follow a "Nano Banana" branding. gemini-2.5-flash-image-preview is "Nano Banana", gemini-3.1-flash-image-preview is "Nano Banana 2". These are distinct from the conversational Gemini models. See models reference.

When to Use

  • Generating app icons, logos, and UI assets
  • Creating marketing visuals and promotional graphics
  • Prototyping UI designs with AI-generated placeholders
  • Generating game sprites and 2D assets
  • Creating concept art and mood boards
  • Editing or modifying existing images with text prompts
  • Style transfer using reference images

Prerequisites

  • Python 3.9+
  • google-genai package
  • GEMINI_API_KEY environment variable

Installation

pip install google-genai

Getting an API Key

  1. Go to Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key"
  4. Copy the key and set it as an environment variable:
export GEMINI_API_KEY="your-api-key"

Add to your shell profile (~/.zshrc or ~/.bashrc) for persistence:

echo 'export GEMINI_API_KEY="your-api-key"' >> ~/.zshrc

Quick Start

Generate a simple image:

python scripts/generate_image.py -p "A fluffy orange cat sitting on a windowsill, warm sunlight, cozy atmosphere"

Generate with specific aspect ratio:

python scripts/generate_image.py -p "Modern tech startup banner" -a 16:9 -o banner.png

Edit an existing image:

python scripts/generate_image.py -p "Make the sky more dramatic with sunset colors" -i photo.jpg -o edited.png

Command Reference

Read the full file on GitHub · 398 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 398 lines · 34 tokens per session scan A 4315713c8c61

Subscribe to this mod's changes

gemini-image-generator is a skill published in the GitHub repository ckorhonen/claude-skills (14 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 2,958 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying…

agentscope-ai/QwenPaw · 152 tokens

professional-media-prompts

A prompt-writing workflow for creating detailed image and video instructions for visual assets, storyboards, character sheets, and reference-based generation. It organizes identity, composition, action, camera, timing, and sound requirements.

agentscope-ai/QwenPaw · 112 tokens

visual-asset-design

A guide for turning character, scene, and prop ideas into prompts for generating consistent reference images. It covers layouts, camera views, visual identity, and continuity across image variations.

agentscope-ai/QwenPaw · 113 tokens

edu-math-tutorial

A Chinese-language guide for turning a maths problem into a step-by-step teaching video. It explains how to break down the solution, write narration, format equations, and structure scenes.

agentscope-ai/QwenPaw · 146 tokens

banner-creator

Create banners using AI image generation. Discuss format/style, generate variations, iterate with user feedback, crop to target ratio. Use when user wants to create a banner, header, hero image, cover image, GitHub banner, Twitter header, or readme banner.

ReScienceLab/opc-skills · 57 tokens

logo-creator

Create logos using AI image generation. Discuss style/ratio, generate variations, iterate with user feedback, crop, remove background, and export as SVG. Use when user wants to create a logo, icon, favicon, brand mark, mascot, emblem, or design a logo.

ReScienceLab/opc-skills · 59 tokens