
Gpt Image Skill
This wraps OpenAI's image generation API in a Python script with sensible defaults and Chinese language triggers. You get access to gpt-image-2 and the earlier models, with options for different aspect ratios, transparent backgrounds, and multi-image editing where you can feed in up to three reference images. The script handles both generation and editing modes, saves files locally, and supports custom API endpoints if you're running through Azure or a proxy. It's straightforward if you already have an OpenAI key and just want Claude to generate images without switching contexts. The bilingual triggers are a nice touch for international teams.
- skills.sh installs
- 150
- GitHub stars
- 1.7K
- last updated
- Apr 25, 2026
Install
$ npx -y skills add feiskyer/claude-code-settings --skill gpt-image-skill --agent claude-codeInstalls into .claude/skills of the current project.
Files
GPT Image Skill
Generate or edit images using OpenAI's GPT Image models through a bundled Python script.
Requirements
- OPENAI_API_KEY: Must be configured in
~/.gpt-image.envorexport OPENAI_API_KEY=<your-key> - OPENAI_API_BASE (optional): Custom API base URL for compatible endpoints (e.g. Azure OpenAI, proxies). Set in
~/.gpt-image.envor export it. - Python3 with dependencies: openai, Pillow. Install via
python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txtif not installed yet. - Executable:
${CLAUDE_SKILL_DIR}/gpt_image.py
Instructions
For image generation
-
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)
-
Run the script:
python3 ${CLAUDE_SKILL_DIR}/gpt_image.py --prompt "description of image" --output "filename.png" -
Show the user the saved image path when complete.
For image editing
Sponsors
Details
- Repository
- github.com/feiskyer/claude-code-settings
- Categories
- Backend & APIs, AI & Agent Building
- License
- MIT
- First seen
- Jun 11, 2026