gpt-image-2
Generate and EDIT images with OpenAI gpt-image-2 via AceDataCloud API. Use when you need high-fidelity images from a prompt, or to edit/composite existing…
от AceDataCloud★ 17 звёзд на GitHub
Установить gpt-image-2 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
gpt-image-2 — Image Generation & Editing
OpenAI gpt-image-2 through AceDataCloud. Two endpoints, both synchronous (return image url(s) directly). Its standout is editing: feed real images (logos, QR codes, product shots, screenshots) and it composites/restyles them faithfully — great for on-brand video assets and character consistency.
Setup: See authentication for token setup.
1. Generate (text → image)
curl -X POST https://api.acedata.cloud/openai/images/generations \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","prompt":"a clean dark tech hero background with a glowing API hub, lots of negative space","size":"1792x1024","n":1}'
2. Edit / composite (images + prompt → image) ← the powerful one
Multipart. Pass one or more source images via repeated image[] (local files with
@, or URLs). Use it to fuse a real logo/QR into a generated scene, keep a subject
consistent across scenes, or restyle a screenshot.
curl -X POST https://api.acedata.cloud/openai/images/edits \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-F "model=gpt-image-2" \
-F "prompt=Place this logo crisply in the top-left on the tech background; keep the logo's exact colors and shape." \
-F "image[][email protected]" \
-F "image[][email protected]" \
-F "size=1792x1024" \
-F "n=1"
Response (both endpoints): {"data":[{"url":"https://...png"}]} → download data[0].url.
Sizes
size is WxH (a preset) or "auto". Common presets:
| Aspect | Sizes |
|---|---|
| 16:9 | 1792x1024 (HD), 2048x1152, 3840x2160 (4K) |
| 9:16 | 1024x1792, 1152x2048, 2160x3840 |
| 1:1 | 1024x1024, 2048x2048, 2880x2880 (4K) |
(Omit size or use "auto" to let the model pick. Custom sizes must have both sides a
multiple of 16, each side ≤ 3840, total pixels between 655,360 and 8,294,400, and an aspect
ratio ≤ 3:1 — otherwise 400.)
Model selection and billing
gpt-image-2 and its explicit gpt-image-2:reverse alias bill per successful image, with a base price of 0.19 Credits per image for generation and editing. Check current account pricing and final usage records before reporting cost; returned token statistics do not change this billing mode. gpt-image-2:official instead bills actual token usage.
During automatic recovery, reverse models may be fulfilled using GPT Image 2.5 Flare; the requested model and per-successful-image billing remain unchanged. Do not resubmit to force recovery or silently change the user's requested model. For the Flare/Sunburst model IDs and their explicit reverse aliases, use the GPT Image 2.5 skill.
Tips
- Editing keeps things faithful — to place a logo/QR exactly, pass it as one of the
image[]and say "keep its exact colors/shape, do not redraw it". - For character/scene consistency across video beats, generate one hero image, then
editsit per beat instead of regenerating from scratch. - Text in images renders legibly — good for titles/labels you don't want to overlay in HTML.
naccepts 1–10 and you are billed per image returned, not per request —n: 4costs 4×. (response_format: "b64_json"still requiresn: 1.)- Both endpoints are synchronous by default. For long 4K jobs pass
callback_url(optionally withasync: true) and pollPOST /openai/taskswith{"id": "<task_id>"}.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gpt-image-2?
Generate and EDIT images with OpenAI gpt-image-2 via AceDataCloud API. Use when you need high-fidelity images from a prompt, or to edit/composite existing images (e.g. fuse a real logo/QR/screenshot into a scene, keep characters consistent, restyle). Strong at legible text and faithful editing.
Как установить скилл gpt-image-2?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gpt-image-2 запускает скрипты?
Нет, скилл состоит только из инструкций (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…