gpt-image-skill

gpt-image-skill is a skill for Claude Code from feiskyer/claude-code-settings. It costs 115 tokens per session (1,497 once invoked), scanned A, original, MIT.

A skill for generating or editing images through OpenAI's GPT Image API, a programming interface for requesting image operations. It uses a bundled Python script and supports configuration such as model, size, quality, and output file.

In plain words
What is it for?
Use it to create or edit images with GPT Image models, specifying a prompt, optional dimensions, model, quality, number of images, and output filename.
Why use it?
It provides a documented way to turn image prompts or input images into saved image files when the required API key and Python dependencies are available.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-code-settings plugin — 12 skills, 9 agents, 1 MCP server shipped together

About the project

Claude Code Skills & Agents is a collection of reusable skills, sub-agents, and configuration templates that extend Claude Code with workflows such as research, image generation, translation, and GitHub automation. It is for Claude Code users who want to install these capabilities individually or as a marketplace plugin. The catalogue entries are components from this collection.

feiskyer/claude-code-settings · 1,647 stars · on GitHub · feisky.xyz

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.

agentmods
npx agentmods add skills/feiskyer/claude-code-settings/gpt-image-skill
Any agent
npx skills add feiskyer/claude-code-settings --skill gpt-image-skill
Clone the repo
git clone --depth 1 https://github.com/feiskyer/claude-code-settings

Made for: Claude Code.

Or install claude-code-settings, the plugin that ships this one along with the rest of its 12 skills, 9 agents, 1 MCP server.

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-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/feiskyer/claude-code-settings/gpt-image-skill.svg)](https://agentmods.dev/skills/feiskyer/claude-code-settings/gpt-image-skill)
Your own site
<a href="https://agentmods.dev/skills/feiskyer/claude-code-settings/gpt-image-skill"><img src="https://agentmods.dev/badge/skills/feiskyer/claude-code-settings/gpt-image-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00115 $0.01497
Opus 5 $0.00057 $0.00749
Sonnet 5 $0.00023 $0.00299
Haiku 4.5 $0.00012 $0.00150

Measured 7d ago against content hash 2d33bc50d034, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 1 executable file (gpt_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/gpt-image-skill/SKILL.md · 183 lines

How it starts

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

GPT Image Skill

Generate or edit images using OpenAI's GPT Image models through a bundled Python script.

Requirements

  1. OPENAI_API_KEY: Must be configured in ~/.gpt-image.env or export OPENAI_API_KEY=<your-key>
  2. OPENAI_API_BASE (optional): Custom API base URL for compatible endpoints (e.g. Azure OpenAI, proxies). Set in ~/.gpt-image.env or export it.
  3. Python3 with dependencies: openai, Pillow. Install via python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt if not installed yet.
  4. Executable: ${CLAUDE_SKILL_DIR}/gpt_image.py

Instructions

For image generation

  1. Ask the user for:

    • What they want to create (the prompt)
    • Desired size (optional, defaults to 1024x1024)
    • Output filename (optional, auto-generates UUID-based name if not specified)
    • Model preference (optional, defaults to gpt-image-2)
    • Quality (optional, defaults to auto)
    • Number of images (optional, defaults to 1)
  2. Run the script:

    python3 ${CLAUDE_SKILL_DIR}/gpt_image.py --prompt "description of image" --output "filename.png"
    
  3. Show the user the saved image path when complete.

For image editing

  1. Ask the user for:

    • Input image file(s) to edit (up to 3)
    • What changes they want (the prompt)
    • Output filename (optional)
  2. Run with input images:

    python3 ${CLAUDE_SKILL_DIR}/gpt_image.py edit --prompt "editing instructions" --input image1.png image2.png --output "edited.png"
    

Available Options

Models (--model)

  • gpt-image-2 (default) — Latest model with strong instruction following, text rendering, and broad world knowledge
  • gpt-image-1.5 — Mid-tier model
  • gpt-image-1 — First-generation GPT image model
  • gpt-image-1-mini — Lightweight, faster generation

Sizes (--size)

  • 1024x1024 (default) — Square
  • 1024x1536 — Portrait (2:3)
  • 1536x1024 — Landscape (3:2)
  • auto — Let the model decide

Quality (--quality)

  • auto (default) — Model decides optimal quality
  • high — Higher detail, slower
  • medium — Balanced
  • low — Fastest

Read the full file on GitHub · 183 lines

Files

What ships with it

3 files 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. 7d ago First seen · 183 lines · 115 tokens per session scan A 2d33bc50d034

Subscribe to this mod's changes

gpt-image-skill is a skill published in the GitHub repository feiskyer/claude-code-settings (1,647 stars, last pushed 24d ago), licensed MIT. It adds 115 tokens to every session and 1,497 once invoked, about $0.0006 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

nanobanana-skill

Generate, remix, or edit images with Nanobanana / Nano Banana 2 through the bundled Gemini CLI wrapper. Use this whenever the user wants AI image generation or editing, especially for reference-image composition, character consistency, grounded visuals that may need live web search, style transfer, marketing graphics…

feiskyer/codex-settings · 107 tokens

gpt-image-skill

Generate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc). Triggers: "gpt image", "openai image", "generate image with openai", "draw image", "create image", "image generation", "AI drawing", "图片生成", "AI绘图", "生成图片", "画图". Use this skill whenever the user wants to generate or edit images and…

feiskyer/codex-settings · 112 tokens

youtube-transcribe-skill

Extract subtitles or transcripts from YouTube URLs and save normalized timestamped text locally. Use when the user asks for YouTube subtitles, captions, transcripts, video-to-text, 视频字幕, 字幕提取, YouTube 转文字, or 提取字幕.

feiskyer/codex-settings · 58 tokens

minimax-image-skill

Generate images with the MiniMax Image API. Use when the user asks for MiniMax image generation, image-01, image-01-live, or an image from a text prompt through MiniMax.

feiskyer/codex-settings · 46 tokens

feature-demo-recording

Record a demo video of a web feature from a real browser. Two modes -- a NARRATED film where measured voiceover drives the timeline (designed slides, subtitles, punch-in camera, rendered from an HTML timeline), and a SILENT evidence clip for a PR or a QA pass. Use when the user asks to record a video, demo, or screen…

kirodotdev/KiroCrew · 90 tokens

image-authoring

Author images and diagrams as code — SVG, Pillow, Excalidraw, mermaid. Load when asked to draw, illustrate, or make an image, icon, logo, poster, or diagram.

kirodotdev/KiroCrew · 45 tokens