gpt-image-skill
Installation
SKILL.md
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
- OPENAI_API_KEY in
~/.gpt-image.envor the shell environment. - OPENAI_API_BASE (optional) for compatible endpoints such as Azure OpenAI or a proxy, in the same places.
- Python dependencies:
python3 -m pip install -r "<skill-dir>/requirements.txt". - Executable:
<skill-dir>/gpt_image.py.
Run it
Generate: