openai-image
Make images with OpenAI's gpt-image-2 through the paid Images API at a fixed quality, about 4 US cents each at medium. Use for game concept art and any image…
от GregHilston★ 15 звёзд на GitHub
Установить openai-image в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
OpenAI image generation
One command, already on PATH. Run it in your shell (the terminal tool in
Hermes, Bash in Claude Code, bash in pi) exactly as shown: no python3 in
front and no directory.
openai-image.py 'PROMPT' # medium, 1536x1024
openai-image.py --size 1024x1536 'PROMPT' # portrait; 1024x1024 square
openai-image.py --n 3 --out /abs/dir --name musket 'PROMPT' # three variants, musket-1.png ...
openai-image.py --ref /abs/approved.png 'PROMPT' # match a reference image's style (edits endpoint)
openai-image.py --quality high 'PROMPT' # about 4x the cost; only when asked
In a sandbox the script downloads over a keep-alive connection through
HTTPS_PROXY: urllib's Connection: close makes the proxy drop the last
10 KB (IncompleteRead). A cut response is retried once; --format jpeg is
the fallback.
Every call, failed ones included, goes in ~/.cache/openai-image/ledger.jsonl.
The model has no transparent background; ask for a plain flat mid-grey one and key it out later. A reference image costs about 15 times the input tokens and, in the first test, matched what the prompt alone gave, so use it only when a prompt fails to hold the style.
Every call costs money: medium measured 1,372 output tokens (about $0.04) at
1536x1024 or 1024x1536 and 1,756 (about $0.05) at 1024x1024; high is about four
times that. Stay at medium unless Greg asks for high, and make only the
variants the task needs. A 429 insufficient_quota is the org spend limit,
raised at platform.openai.com/settings/organization/limits: tell Greg rather
than retrying.
Put the prompt in single quotes and write it without apostrophes. For
Loser Picks concept art, build the prompt from that repo's
docs/art/concept-prompting.md.
The safety system refuses ([illicit]) on subject words even when negated:
"no bolts in flight" still trips it. Leave out gun, rifle, bullet, bolt,
quarrel, firing, in flight, assault, kill, death, blood, homemade, improvised
and built-from, and say "front", not "muzzle". Frame a weapon as a chunky toy
prop (bright plastic or foam, plain grey background, no people) in the subject
text itself. This passed: "one chunky toy crossbow, fat rounded stock, short
thick bow arms, fat rubber string, big foam dart with a suction cup tip resting
on top".
The output has one MEDIA: line per image. In Hermes, end your reply with
those lines as printed; in Claude Code, read the PNGs to see them; in pi, give
the paths. Do not use curl, a web search or the ChatGPT Plus endpoint
instead.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл openai-image?
Make images with OpenAI's gpt-image-2 through the paid Images API at a fixed quality, about 4 US cents each at medium. Use for game concept art and any image where the object must be right and every image must match in quality; image-generate (FLUX on moria) is free and faster for loose sketches.
Как установить скилл openai-image?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл openai-image запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…