chatgpt-imagegen
БесплатноЗапускает вложенные скриптыНе проверенGenerates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or…
от iurysza★ 423 звезды на GitHubОб этом скилле
ChatGPT Image Generation
Use the bundled chatgpt-img CLI for generation and edits. Resolve its path relative to this SKILL.md.
Setup
python3 -m pip install -r <skill-directory>/requirements.txt
export OPENAI_API_KEY='...'
OPENCODE_OPENAI_API_KEY is accepted as a fallback. CHATGPT_IMAGE_DEFAULT overrides the default model.
Image requests cost money. Confirm scope before generating many images or using high quality repeatedly.
Generate
<skill-directory>/scripts/chatgpt-img \
'A linocut illustration of a lighthouse in heavy rain' \
./lighthouse.png \
--size 1536x1024 \
--quality high
Edit
Single reference:
<skill-directory>/scripts/chatgpt-img edit \
./portrait.png \
'Use warm editorial lighting; preserve identity, pose, and clothing' \
./portrait-edited.png \
--quality high
Multiple references:
<skill-directory>/scripts/chatgpt-img \
--input ./portrait.png \
--input ./moodboard.png \
'Apply the moodboard lighting and palette while preserving the portrait identity' \
./portrait-styled.png
Optional masked edit:
<skill-directory>/scripts/chatgpt-img edit \
./input.png \
'Replace the masked background with a cloudy coastline' \
./output.png \
--mask ./mask.png
Important options
--model: defaults togpt-image-2--size: supported dimensions orauto--quality: GPT Image usesauto,low,medium, orhigh--background:auto,transparent, oropaque--format:png,jpeg, orwebp--compression:0through100for JPEG/WebP--num: number of outputs--input: repeatable reference image for edit mode--mask: optional edit mask--input-fidelity: supported by selected older GPT Image models, notgpt-image-2
Use --help and edit --help for the complete interface.
Prompting edits
State both the change and the invariants. For example, name the identity, geometry, text, logos, pose, camera angle, or materials that must remain unchanged. Describe lighting, palette, composition, and finish positively instead of relying on long negative lists.
Verification
- Check the process exit status.
- Confirm every expected output file exists and is non-empty.
- Report exact paths and any revised prompt returned by the API.
- Inspect the image with an available viewer when visual verification is part of the task.
Never expose API keys. Error output may include safe request metadata, but it must not include prompt contents or credentials.
Установить chatgpt-imagegen в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл chatgpt-imagegen?
Generates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or editorial visuals.
Как установить скилл chatgpt-imagegen?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chatgpt-imagegen запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic