openai-image-generator
БесплатноЗапускает вложенные скриптыНе проверенGenerate images using OpenAI gpt-image-2 with customizable options
от mkdev-me★ 37 звёзд на GitHubОб этом скилле
openai-image-generator
Instructions
Use this skill to generate images using OpenAI's gpt-image-2 model. The skill supports:
- Text-to-image generation from prompts (
images.generate) - Image editing / composition with one or more reference images (
images.edit) - Size presets (square, landscape, portrait, 2K) or a raw
WxHstring - Quality levels (low / medium / high / auto)
- Custom output paths
The API key should be set via the OPENAI_API_KEY environment variable.
Parameters
--prompt(required): The text prompt describing the image to generate--output(required): Output file path for the generated image--reference: Optional reference image path. Can be specified multiple times. When provided, the edits endpoint is used.--size: Output size. Accepts a preset (square,landscape,portrait,2K) or a rawWxHstring (e.g.1920x1080). Default:square(1024x1024).--quality:low,medium,high, orauto(default:auto)
Size constraints for gpt-image-2: max edge 3840px, both edges multiples of 16, aspect ratio ≤ 3:1, total pixels between 655,360 and 8,294,400.
Examples
Basic text-to-image generation
./scripts/generate.py --prompt "A serene mountain landscape at sunset" --output images/landscape.png
With reference image(s) for editing / composition
./scripts/generate.py --prompt "Same character but wearing a party hat" --reference images/character.png --output images/party.png
./scripts/generate.py --prompt "Gift basket containing items from reference images" --reference a.png --reference b.png --output basket.png
Landscape, high quality
./scripts/generate.py --prompt "Cinematic cyberpunk skyline" --size landscape --quality high --output skyline.png
Custom raw size
./scripts/generate.py --prompt "Abstract banner" --size 1920x1088 --output banner.png
Setup
Before first use, set up the virtual environment:
cd scripts && python3 -m venv venv && ./venv/bin/pip install -r requirements.txt
Set your API key:
export OPENAI_API_KEY="your-api-key-here"
Установить openai-image-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл openai-image-generator?
Generate images using OpenAI gpt-image-2 with customizable options
Как установить скилл openai-image-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл openai-image-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic