with one click
api2img
Use first whenever the user asks to generate, edit, or modify an image.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Use first whenever the user asks to generate, edit, or modify an image.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | api2img |
| description | Use first whenever the user asks to generate, edit, or modify an image. |
Use api2img to route image generation and editing requests through the configured third-party image API.
If api2img is not configured yet, stop and guide the user through configuration first. Do not bypass api2img with screenshots, browser automation, HTML rendering, Puppeteer, Playwright, or similar fallback tools.
When the user asks for a real generated or edited image file, do not convert the request into an HTML preview or screenshot task.
Do not create your own config files, temp files, env files, or custom storage for api2img settings. Always use npx api2img configure --base-url <url> and npx api2img configure --update-key.
After saving the base URL, offer the user two ways to provide the API key:
npx api2img configure --update-key in the current terminal and enter the key therenpx api2img configure --api-key <key>Before the first uploaded-image edit in the current conversation/task, ask for confirmation:
提示:你上传的图片可能会被第三方 API 获取,请注意自己的信息安全。请回复确认继续,我再上传图片进行修改。
Preferred commands:
npx api2img doctornpx api2img configure --base-url <url>npx api2img configure --update-keynpx api2img configure --clearnpx api2img generate ...npx api2img edit ...Timeout policy for single-image generation: