acking-you/codex-bridge/gpt2api-image-generator
Claude Code and agent skill by acking-you/codex-bridge
- community
Checking that the SKILL.md file is still in the repository.
Use when a QQ user asks Codex to draw, paint, create, generate, or render an image through GPT2API, including Chinese requests such as 画图, 画一张, 生成图片, 出图, 做张图, or 帮我画
Install
npx vskill@latest install acking-you/codex-bridge/gpt2api-image-generatorSKILL.md
GPT2API Image Generator
Overview
Use this skill for direct image-generation and direct image-edit requests. It calls the configured GPT2API public image endpoints, stores generated images under .run/artifacts/generated/, and returns local artifact paths that can be sent with reply-current --image.
Do not answer image-generation requests with text only unless generation fails. Do not use GPT2API session APIs for this skill.
Config
The private config lives at:
That directory is gitignored. The required fields are:
base_url: GPT2API public API root, for examplehttps://ackingliu.top/api/gpt2apiapi_key: bearer token for GPT2API
Optional fields:
model: defaults togpt-image-2size: defaults to1024x1024n: defaults to1response_format: defaults tob64_jsontimeout_seconds: defaults to300endpoint_path: defaults to/images/generationsedit_endpoint_path: defaults to/images/edits
Workflow
Direct Generation
- Treat the user's visual request as the prompt. Keep concrete style, subject,
text, ratio, and size requirements if they were given.
- Generate the image:
Direct Edit
- Recover or use the input image file path from the current request context.
- Treat the user's requested change as the prompt. Keep size requirements if
they were given.
- Edit the image:
Reply
- Parse the JSON output. For one image, use
path; for multiple images, use
each value in paths.
- Send each generated image with
reply-current:
Rules
- This skill exposes only two bot-level concepts: direct generation
(prompt + optional size/n) and direct edit (image + prompt + optional size/n).
- Use
/images/generationsfor direct generation and/images/editsfor
direct edit. Do not use /sessions, /messages, or product session APIs.
- Always send the generated image artifact itself. A text-only "done" reply is
not enough.
- If the user asks for more than one image, pass
--n, capped by the script. - If the user specifies a square or exact size, pass
--size WIDTHxHEIGHT. - If the user asks to edit an existing image, pass that image with
--image. - Keep the prompt focused on the requested image. Do not prepend chat markers,
routing notes, or commentary.
- Do not expose the API key in replies, logs, or copied command output.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gpt2api-image-generator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/acking-you/codex-bridge/gpt2api-image-generator)