Gpt Image Gen
ninehills/skills
生图 / 生成图片 / 画图 — 用 OpenAI gpt-image-2 生成图像。支持文生图、参考图生图 (img2img)、蒙版修补 (inpainting)。当用户要求用 GPT 画图、OpenAI 生图、gpt-image-2、文+图生图、参考图片生成、img2img、inpainting 时必加载此技能。Auth 自动继承 OPENAIAPIKEY / Codex OAuth…
Generate or edit images via GPT Image 2.5 Flare or Sunburst through DroidProxy Codex OAuth (no OPENAIAPIKEY).
$ npx skills add nikships/droidproxy --skill gpt-image -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nikships/droidproxy gpt-image --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/nikships/droidproxy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gpt-image .claude/skills/gpt-image && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "gpt-image" agent skill from https://github.com/nikships/droidproxy/tree/main/skills/gpt-image into .claude/skills/gpt-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gpt-image", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/nikships/droidproxy/tree/main/skills/gpt-imageType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add nikships/droidproxy --skill gpt-image -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nikships/droidproxy gpt-image --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikships/droidproxy.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/gpt-image .agents/skills/gpt-image && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "gpt-image" agent skill from https://github.com/nikships/droidproxy/tree/main/skills/gpt-image into .agents/skills/gpt-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gpt-image", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nikships/droidproxy --skill gpt-image -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nikships/droidproxy gpt-image --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikships/droidproxy.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/gpt-image .cursor/skills/gpt-image && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "gpt-image" agent skill from https://github.com/nikships/droidproxy/tree/main/skills/gpt-image into .cursor/skills/gpt-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gpt-image", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/nikships/droidproxy.git --path skills/gpt-image--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add nikships/droidproxy --skill gpt-image -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nikships/droidproxy gpt-image --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikships/droidproxy.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/gpt-image .gemini/skills/gpt-image && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "gpt-image" agent skill from https://github.com/nikships/droidproxy/tree/main/skills/gpt-image into .gemini/skills/gpt-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gpt-image", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install nikships/droidproxy gpt-imageInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add nikships/droidproxy --skill gpt-image -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nikships/droidproxy.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/gpt-image .github/skills/gpt-image && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "gpt-image" agent skill from https://github.com/nikships/droidproxy/tree/main/skills/gpt-image into .github/skills/gpt-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gpt-image", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nikships/droidproxy --skill gpt-image -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nikships/droidproxy gpt-image --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikships/droidproxy.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/gpt-image .opencode/skills/gpt-image && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "gpt-image" agent skill from https://github.com/nikships/droidproxy/tree/main/skills/gpt-image into .opencode/skills/gpt-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gpt-image", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
gpt-imageGenerate or edit images via GPT Image 2.5 Flare or Sunburst through DroidProxy Codex OAuth (no OPENAIAPIKEY).
Gpt Image is an agent skill from nikships/droidproxy. Generate or edit images via GPT Image 2.5 Flare or Sunburst through DroidProxy Codex OAuth (no OPENAIAPIKEY). Use when the user asks to generate, create, draw, or edit an image with GPT, OpenAI, Codex, gpt-image, or DALL-E, including transparent PNGs, and DroidProxy Codex OAuth is available. Prefer this over inventing image URLs or base64. If they name Grok or Imagine, use grok-imagine instead.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Media & Creative, covering Image generation and LLM API integration. It works with OpenAI and macOS. The repository describes itself as: macOS menu bar app that proxies Claude/Codex/Grok + More subscriptions for use with Factory Droid CLI. Actively maintained and updated with new model releases! The licence is MIT.
Read from SKILL.md and the folder at commit 9fdd443. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
jqcurlFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
developers.openai.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Gpt Image loads about 2.5k tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 1,108 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from nikships/droidproxy at commit 9fdd443, republished under its MIT licence (© nikships). 1,108 words, ~2,469 tokens.
.claude/skills/gpt-image/SKILL.md (or your agent's skills folder).POST http://localhost:8317/v1/images/generations (or /edits) with
Authorization: Bearer dummy-not-used. Send only gpt-image-2.5-flare or
gpt-image-2.5-sunburst. Never send an older image model, a dated snapshot,
or a chat id (gpt-* without image). Never use an OPENAI_API_KEY. Chat
models on :8317 do not generate images.
Default to Flare for fast, high-quality everyday generation. Use Sunburst when the user prioritizes demanding quality, editing precision, or subject preservation over latency. If Sunburst meets the requirements, prefer Flare only after it produces acceptable results on the same prompt, references, dimensions, and quality setting.
Use this for generating or editing visual assets, not for understanding an image the user already attached.
Requests often take 15–70s. Use --max-time 180. Default quality to
auto; select a higher explicit setting only to meet a quality requirement.
RESP=$(curl -sS --max-time 180 http://localhost:8317/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer dummy-not-used" \
-d "$(jq -n --arg p "A red balloon on a wooden table, soft natural light" \
'{model:"gpt-image-2.5-flare", prompt:$p, size:"1024x1024",
quality:"auto"}')")
if B64=$(printf '%s' "$RESP" | jq -er '.data[0].b64_json' 2>/dev/null); then
printf '%s' "$B64" | base64 -d > out.png
else
printf '%s\n' "$RESP" >&2
exit 1
fiCheck .data[0].b64_json before decoding. On failure print the raw body —
Codex errors are JSON (usage_limit_reached, auth_not_found,
moderation_blocked).
Same auth. JSON with a data URL — no upload step, no file_id. Do not
pass the data URL through jq --arg: a typical generated PNG is larger
than ARG_MAX (~1MB on macOS) and jq dies with Argument list too long.
Write the data URL to a file and use --rawfile, then POST with
--data-binary. Decode the same way as Generate.
SRC_FILE=$(mktemp)
REQ=$(mktemp)
printf 'data:image/png;base64,%s' "$(base64 -i ./photo.png)" > "$SRC_FILE"
jq -n --arg p "Make it blue-tinted studio lighting" --rawfile u "$SRC_FILE" \
'{model:"gpt-image-2.5-sunburst", prompt:$p, images:[{image_url:$u}],
quality:"auto"}' > "$REQ"
RESP=$(curl -sS --max-time 180 http://localhost:8317/v1/images/edits \
-H "Content-Type: application/json" \
-H "Authorization: Bearer dummy-not-used" \
--data-binary @"$REQ")
rm -f "$SRC_FILE" "$REQ"
if B64=$(printf '%s' "$RESP" | jq -er '.data[0].b64_json' 2>/dev/null); then
printf '%s' "$B64" | base64 -d > out.png
else
printf '%s\n' "$RESP" >&2
exit 1
fiPick the data-URL mime from the source (image/jpeg, image/png,
image/webp). Optional mask.image_url (PNG with alpha) marks the region
to replace. Chain edits by feeding each output back as the next
images[0].image_url.
If the user gives a detailed prompt or asks you to use theirs, use it verbatim. Otherwise define the intended result, then describe the subject, action/pose, setting, style, composition, lighting/mood, visible details, and constraints. For complex work, use labeled sections. Keep requirements easy to read rather than relying on special prompt syntax.
Quote required text exactly, specify its placement and typography, ask for no extra text, and verify spelling and legibility. For edits, say “change only X” and explicitly list what must stay the same. Identify each reference image by number and role (subject, style, clothing, or background). Make one change per edit and restate critical preservation constraints on every turn.
Ground named people, brands, places, and “current/latest” facts with a web search first. For a named real person, edit from a real reference photo — do not generate the likeness from text alone.
| Field | Values | Notes |
|---|---|---|
model | gpt-image-2.5-flare, gpt-image-2.5-sunburst | Flare by default; Sunburst for demanding quality or precise edits. No other model ids. |
prompt | string | Required on generate and edit. |
size | auto or WIDTHxHEIGHT | Each edge ≤3840 and divisible by 16; aspect ratio ≤3:1; 655,360–8,294,400 total pixels. Above 2560×1440 is experimental. |
quality | auto, low, medium, high, xhigh, max | Default auto. Compare one setting at a time; use xhigh/max only for an unmet quality requirement. Never send hd or standard. |
n | 1–10 | Default 1. Same-prompt variations use n, not parallel calls. |
background | auto, opaque, transparent | transparent needs output_format png or webp. |
output_format | png, jpeg, webp | Send png for transparency. |
output_compression | 0–100 | JPEG/WebP only. Omit unless asked. |
images | [{image_url}] | Edits only. Data URL or https URL. |
mask | {image_url} | Edits only. PNG with alpha. |
{"created": 0, "background": "opaque", "data": [{"b64_json": "..."}],
"output_format": "png", "quality": "low", "size": "1536x1024", "usage": {}}GPT Image 2.5 always returns base64, so do not send response_format.
.data[0] is only b64_json — no url, no mime_type. Pick the file
extension from top-level output_format when present, otherwise from the
decoded magic bytes (PNG / JFIF / RIFF…WEBP).
Codex OAuth often ignores size and sometimes quality. A 1024x1024 /
low request may come back 1536x1024 / low, or an off-enum size like
1312x1199 with quality: medium. Trust the response size / quality /
background and the decoded IHDR. Do not retry just because they
differ from the request.
When the user explicitly wants a transparent PNG or alpha background (sticker, cutout, icon), send both:
{"background":"transparent","output_format":"png"}If they asked for a campaign, slide, or print asset without mentioning transparency, keep opaque or ask. Don't assume.
The prompt beats background. If it describes a backdrop, scene, color,
plinth, or shadow, the model paints that instead of alpha. Keep the prompt
on an isolated subject and say so explicitly:
Size by use: icons/stickers 1024x1024, product shots 1024x1536, charts
1536x1024. Compare medium or high when the asset has small text.
Expect the returned pixel size to differ; that's not a failure.
Products / campaign cutouts. One object. No scene. Ask for fully transparent alpha around the silhouette. Good for reuse across storefronts and seasonal backgrounds.
Charts for dark slides. Ask for a genuinely transparent background and a transparent plot area — not just a transparent silhouette. No card, frame, filled panel, title, or grid fill. Specify pale/white labels and bright series colors so they read on navy or gradient themes. Keep exact data values in the prompt, then verify labels and proportions against the source before using the chart.
Icons, stickers, decorations. Keep everything outside the tile, die-cut border, or sprig transparent — including gaps between branches and leaves. No text, watermark, or drop shadow.
Print-on-demand. Generate the artwork and any blank garments as separate transparent PNGs. Keep open space inside the design transparent too (no white rectangle or badge). Composite locally; do not bake the print onto the garment in one generation if they need to reuse it.
After decoding, confirm a real alpha channel (RGBA / PNG tRNS) and that
some pixels are fully transparent. Also check top-level
"background":"transparent". If the file is opaque, strip backdrop
language from the prompt and retry once.
If background:transparent 400s, generate on a flat uniform background
that contrasts with the subject and key it out locally (PIL, ImageMagick).
Recolor the subject for the background they named before you finish — a
near-black mark on a dark header is invisible. Say what you did.
| Symptom | Fix |
|---|---|
| Connection refused | DroidProxy isn't running — tell the user to launch it |
auth_not_found / no auth for codex | Codex not connected, or the account is Free. Settings → Connect Codex. Image gen requires Plus/Pro. |
usage_limit_reached (plan_type, resets_in_seconds) | Quota exhausted. Tell the user when it resets. Do not retry in a loop. |
| 401 after a long idle | OAuth session dead — Settings → Connect Codex |
| 400 unsupported model | Use gpt-image-2.5-flare or gpt-image-2.5-sunburst; no other model is supported. |
jq: Argument list too long | You put a data URL in jq --arg. Use --rawfile as in Edit. |
Response size/quality ≠ request | Not a failure. Save the image. Do not retry. |
On moderation_blocked, stop. Don't retry and don't paraphrase the prompt
to evade the filter. Report the API's own message. Never invent image
content or a URL for a request that failed.
© nikships, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/gpt-image of nikships/droidproxy.
Open the folder on GitHubat commit 9fdd443
Gpt Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Gpt Image this skillnikships/droidproxy | 122 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Gpt Image Genninehills/skills | 280 | — | ~1.8k | Automated safety check: Notes | MIT | |
| Codex Image2fengfengzhidao/codex-image2-skill | 144 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Talking Avatar Voice Chat Appbuildfastwithai/gen-ai-experiments | 785 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Draw Image DiagramsRealSeaberry/AutoMCM-Pro | 257 | — | ~1.9k | Automated safety check: Notes | MIT | |
| Afmscouzi1966/maclocal-api | 346 | — | ~1.2k | Automated safety check: Pass | MIT |
ninehills/skills
生图 / 生成图片 / 画图 — 用 OpenAI gpt-image-2 生成图像。支持文生图、参考图生图 (img2img)、蒙版修补 (inpainting)。当用户要求用 GPT 画图、OpenAI 生图、gpt-image-2、文+图生图、参考图片生成、img2img、inpainting 时必加载此技能。Auth 自动继承 OPENAIAPIKEY / Codex OAuth…
fengfengzhidao/codex-image2-skill
Generate or edit raster images through a configurable OpenAI-compatible Image API using gpt-image-2.
buildfastwithai/gen-ai-experiments
Builds a realtime voice-chat app around a talking character portrait made from your photo or a text description, with mouth sprites driven by the audio.
RealSeaberry/AutoMCM-Pro
Generates diagrams, flowcharts and conceptual illustrations with OpenAI's gpt-image models, while leaving data plots and result figures to real plotting code.
scouzi1966/maclocal-api
Maintain and extend AFM (maclocal-api), a Swift OpenAI-compatible local LLM server and CLI for Apple Foundation Models, MLX models, API gateway proxying, and Vision OCR.
diegosouzapw/OmniRoute
A step-by-step workflow for pointing the OpenAI Codex CLI at an OmniRoute gateway on Linux, macOS or Windows, plus settings that keep multi-hour sessions alive.
nikships/droidproxy
Configure any third-party model as a custom model in Factory Droid (~/.factory/settings.json): resolve specs (context window, max output tokens, reasoning efforts), write a safe config entry, set…
nikships/droidproxy
Generate or edit images via Grok Imagine Image 2.0 through DroidProxy (no XAIAPIKEY).
nikships/droidproxy
Build, sign, notarize, and publish a new DroidProxy release.
Categories
Generate or edit images via GPT Image 2.5 Flare or Sunburst through DroidProxy Codex OAuth (no OPENAIAPIKEY). Gpt Image is an agent skill from nikships/droidproxy.5 Flare or Sunburst through DroidProxy Codex OAuth (no OPENAIAPIKEY).
Gpt Image fits situations like: the user asks to generate; edit an image with GPT; including transparent PNGs; droidProxy Codex OAuth is available.
Run `npx skills add nikships/droidproxy --skill gpt-image -a claude-code`. Or copy the skill folder (skills/gpt-image in nikships/droidproxy) into .claude/skills/gpt-image in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nikships/droidproxy --skill gpt-image -a codex`. Or copy the skill folder (skills/gpt-image in nikships/droidproxy) into .agents/skills/gpt-image in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nikships/droidproxy --skill gpt-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gpt-image, .gemini/skills/gpt-image, .github/skills/gpt-image and .opencode/skills/gpt-image in your project.
Going by SKILL.md and its folder, Gpt Image needs the command-line tools its instructions call (jq and curl) and credentials named OPENAI_API_KEY. Our summary lists: A credential in OPENAI_API_KEY.
SKILL.md names 1 domain. As links in the text: developers.openai.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Gpt Image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Gpt Image: Gpt Image Gen (ninehills/skills, 280 stars), Codex Image2 (fengfengzhidao/codex-image2-skill, 144 stars), Talking Avatar Voice Chat App (buildfastwithai/gen-ai-experiments, 785 stars) and Draw Image Diagrams (RealSeaberry/AutoMCM-Pro, 257 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
nikships (a GitHub user) maintains it in nikships/droidproxy, which has 122 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 9, 2026.
Source: nikships/droidproxy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.