gpt-image-skill
/gpt-image-skill
Generate or edit images when the user names OpenAI, GPT Image, or a gpt-image model. Use the default image skill when no provider is named.
- Author
- feiskyer ↗
- Repository
- codex-settings ↗
- Licence
- MIT
- Last repository change
- 27.09.2026
Assessment and security
- Files in this package
- 6
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: gpt_image.py, tests/test_gpt_image.py
What it does and when to use it
Generate or edit images when the user names OpenAI, GPT Image, or a gpt-image model. Use the default image skill when no provider is named.
Original author description
Generate or edit images when the user names OpenAI, GPT Image, or a gpt-image model. Use the default image skill when no provider is named.
How it works
- Resolve the skill directory
- Requirements
- Run it
- When a run fails
SKILL.md preview
--- name: gpt-image-skill description: Generate or edit images when the user names OpenAI, GPT Image, or a gpt-image model. Use the default image skill when no provider is named. --- # GPT Image Skill Generate or edit images with OpenAI's GPT Image models through the bundled `gpt_image.py`. ## Resolve the skill directory Before running any command, resolve the absolute directory containing this `SKILL.md` and refer to it as `<skill-dir>`. Never assume the current working directory is the skill directory. Keep user input and output paths relative to the user's working directory unless the user requests another location. ## Requirements 1. **OPENAI_API_KEY** in `~/.gpt-image.env` or the shell environment. 2. **OPENAI_API_BASE** (optional) for compatible endpoints such as Azure OpenAI or a proxy, in the same places. 3. **Python dependencies**: `python3 -m pip install -r "<skill-dir>/requirements.txt"`. 4. **Executable**: `<skill-dir>/gpt_image.py`. ## Run it Generate: ```bash python3 "<skill-dir>/gpt_image.py" --prompt "Modern minimalist logo for a tech startup" \ --quality high --background transparent --output "logo.png" ``` Edit or combine references: ```bash python3 "<skill-dir>/gpt_image.py" edit --prompt "Add a rainbow in the sky" \ --input photo.png --output "photo-with-rainbow.png" ``` `edit` accepts several `--input` files to composite multiple references into one image. Options live on the subcommands, so read them with `generate --help` or `edit --help` — the bare `python3 "<skill-dir>/gpt_image.py" --help` only lists the two modes. That is where the current `--model`, `--size`, `--quality`, `--format`, `--background`, and `--n` values are; every one has a working default, so pass only what the request actually constrains. Parent directories in the output path are created automatically, and an omitted `--format` is inferred from the `.png`, `.jpg`/`.jpeg`, or `.webp` extension, defaulting to PNG. Report the saved path when the run completes. ## When a run fails Check that `OPENAI_API_KEY` is set and, for a custom endpoint, that `OPENAI_API_BASE` is correct; confirm input images exist and are readable, the output directory is writable, and the model name is valid. Do not report success unless an image was saved locally.
Files in this package (6)
- SKILL.md 2 KB
- gpt_image.py 10 KB
- requirements.txt 1 KB
- agents/openai.yaml 1 KB
- evals/evals.json 1 KB
- tests/test_gpt_image.py 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · feiskyer/codex-settings | 100 | MIT |
| feiskyer/claude-code-settings | 100 | MIT |
Database snapshot: 13.11.2026 · package version a4c19f0872f4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100gpt-image-2-api
Generate and edit images with gpt-image-2 through a third-party OpenAI-compatible API using .env-configured OPENAI_API_KEY and OPENAI_BASE_URL values. Use when the user asks to create images, edit reference images, create visual assets, illustrations, or image variations with a… - 100imagegen
Generate or edit raster images with an OpenAI-compatible Images API (default model gpt-image-2). Use when the user asks for image generation, image edits, GPT Image, gpt-image-2, or image outputs that should be saved into the current project. - 95ttapi-openai-image
Generate and edit images with TTAPI OpenAI GPT Image 2 and GPT Image 2.5 routes. Use for OpenAI Image, GPT Image, 商品图、海报、图片编辑 and existing GPT image jobs; use another product Skill when the user names Nano Banana or another image family. - 100gpt-image-1-5
Generate and edit images using OpenAI's GPT Image 1.5 model. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the… - 100codex-image2
Configure a custom OpenAI-compatible image service with a local setup page, or generate and edit images through that service with automatic preference for gpt-image-2.5 when listed, falling back to gpt-image-2. Use for codex-image2 setup, API configuration, text-to-image, image… - 100gpt-image-edit
Edit images with OpenAI GPT Image 2 (the `/edit` endpoint of ChatGPT Images 2.0) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents GPT Image Edit's strengths (preservation…