gpt-image-gen

gpt-image-gen is a skill for Claude Code, Codex from code-yeongyu/senpi. It costs 66 tokens per session (2,479 once invoked), scanned A, original, MIT.

A guide for creating images with GPT image-generation tools. It explains how to choose the available image tool and how to write detailed prompts.

In plain words
What is it for?
Choosing an image-generation tool, describing subjects and scenes, rendering exact text, and iterating on image prompts.
Why use it?
It helps avoid vague prompts and gives a repeatable way to improve generated images when the first result is not right.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Choosing an image-generation tool, describing subjects and scenes, rendering exact text, and iterating on image prompts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/code-yeongyu/senpi/skill
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 code-yeongyu/senpi --skill skill
Clone the repo
git clone --depth 1 https://github.com/code-yeongyu/senpi

Made for: Claude Code, Codex.

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 gpt-image-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-yeongyu/senpi/skill/github.svg)](https://agentmods.dev/skills/code-yeongyu/senpi/skill)
Your own site
<a href="https://agentmods.dev/skills/code-yeongyu/senpi/skill"><img src="https://agentmods.dev/badge/skills/code-yeongyu/senpi/skill/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 gpt-image-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/code-yeongyu/senpi/skill"><img src="https://agentmods.dev/badge/skills/code-yeongyu/senpi/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,479 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.02479
Opus 5.5 $0.00026 $0.00992
Sonnet 5.5 $0.00013 $0.00496
Haiku 4.5 $0.00007 $0.00248

Measured 20d ago against content hash 0bb841032685, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gpt-image-gen 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 20d ago.

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.

packages/coding-agent/src/core/extensions/builtin/imagegen/skill/SKILL.md · 101 lines

How it starts

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

GPT Image Generation

How to get the image right the first time, and how to fix it fast when it is not. Read this before your first generation call.

Which tool

When image generation tooling is present in your tool set, pick the surface that actually exists right now:

  • If a native image_generation server tool is available, use it. The provider runs generation server-side and returns the image in the response stream.
  • Otherwise, call generate_image. It is eval-only, like bash: when an eval tool exists it is not in your direct tool list, so run it inside an eval cell as tool.generate_image({ prompt: "..." }) (js) or tool.generate_image(prompt="...") (py); tool_schema("generate_image") lists every parameter. Without an eval tool it is an ordinary direct tool. It sends your prompt and optional reference images to the configured OpenAI-compatible endpoint and saves the result as a png, jpeg, or webp file. The model, quality, size, background, and format controls below apply to generate_image, not to the native server tool.

Check your current tool set before choosing. Tool state can change mid-session (model switch, credential change), so trust the tools you can see over what this page said at startup. If both surfaces ever appear, prefer the native server tool. When the request is clear, generate directly instead of asking for confirmation; ask only when a required reference image is missing.

Model selection

  • gpt-image-2.6-sunburst (default): the most capable model. Use it for precise edits, fidelity to reference subjects and products, dense text or diagrams, and final production assets; at medium or high quality it keeps details the most consistent across repeated edits.
  • gpt-image-2.6-flare: the fast model, as quick as about six seconds at low quality, with stronger poster and product layouts than earlier Flare. Reach for it when latency or volume matters more than the last increment of quality.
  • gpt-image-2.5-sunburst, gpt-image-2.5-flare: the previous pair. generate_image falls back to them on its own (below); request them directly only to pin 2.5 output.
  • gpt-image-2: older generation; quality tiers stop at high, transparency is preview-level.

Read the full file on GitHub · 101 lines

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. 20d ago Changed 0bb841032685
  2. 25d ago Changed · +8 lines 5d089cb4701a
  3. 2mo ago Changed · -18 lines · +3 tokens per session 32c29f27c041
  4. 2mo ago Changed · +43 lines ad0659eb1871
  5. 3mo ago First seen · 68 lines · 63 tokens per session scan A c17f229c5207

Subscribe to this mod's changes

gpt-image-gen is a skill published in the GitHub repository code-yeongyu/senpi (530 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 2,479 once invoked, about $0.0003 per session on Opus 5.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

gpt-image-gen compared with skills from other repositories

gpt-image-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gpt-image-gencode-yeongyu/senpiSkill530todayMITA66Claude Code, Codex
transformerssynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A63Claude Code, Codex
segment-anything-modelsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A45Claude Code, Codex
hugging-face-clisynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A68Claude Code, Codex
autogpt-agentssynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A39Claude Code, Codex
blip-2-vision-languagesynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A52Claude Code, Codex
stable-diffusion-image-generationsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A50Claude Code, Codex