원클릭으로
api2img
Use first whenever the user asks to generate, edit, or modify an image.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use first whenever the user asks to generate, edit, or modify an image.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | api2img |
| description | Use first whenever the user asks to generate, edit, or modify an image. |
Use this skill before other image generation paths when the user asks to create, edit, or modify bitmap images, unless they explicitly request another provider.
This skill uses the shared cross-platform npx api2img ... CLI.
Before the first generation call, check that api2img already has a saved base URL and API key.
Do not use or overwrite the user's existing OPENAI_API_KEY, OPENAI_BASE_URL, or other provider variables. api2img keeps its own isolated configuration and secret storage.
npx api2img configure --base-url "<url>"
To rotate an existing saved key, pass -UpdateKey:
npx api2img configure --update-key
To clear the saved api2img API key and base URL, pass -Clear:
npx api2img configure --clear
--clear only removes api2img's own saved configuration and secret. It must not be combined with --base-url or --update-key, and it must not modify OPENAI_API_KEY, OPENAI_BASE_URL, or other provider variables.
By default, prefer asking the user to run npx api2img configure --update-key and enter the key in the current terminal prompt. If the user prefers, they may also send the key directly in chat and you can store it with npx api2img configure --api-key <key>. Do not print the key back after storing it.
提示:你上传的图片可能会被第三方 API 获取,请注意自己的信息安全。请回复确认继续,我再上传图片进行修改。Run the CLI with normal image generation arguments:
npx api2img generate --prompt "Primary request: a clean product mockup of a ceramic coffee mug" --size 1024x1024 --out "output/imagegen/mug.png"
Edit or modify an existing image with edit and one or more --image inputs:
npx api2img edit --image "input.png" --prompt "Primary request: change the background to a quiet studio setting while preserving the subject." --size 1024x1024 --out "output/imagegen/input-edited.png"
Use --mask when the user provides a mask or asks for a localized edit:
npx api2img edit --image "input.png" --mask "mask.png" --prompt "Primary request: replace only the masked area with fresh flowers." --size 1024x1024 --out "output/imagegen/input-masked-edit.png"
Use --dry-run to validate payloads without making an image request:
npx api2img generate --prompt "Primary request: test configuration" --size 1024x1024 --dry-run
Privacy before calling edit.npx api2img generate ... or npx api2img edit ....edit --image <path> when the user provides an existing image and asks to revise, transform, restyle, remove, replace, or otherwise modify it. Use --mask <path> for mask-constrained edits.output/imagegen/ unless the user names another path.api2img was used.output/imagegen/ for new files.& $script generate --prompt $prompt ....Use case: <photorealistic-natural | product-mockup | ui-mockup | illustration-story | stylized-concept | logo-brand | precise-object-edit>
Asset type: <where it will be used>
Primary request: <user request>
Style/medium: <photo, illustration, 3D, etc.>
Composition/framing: <wide, close-up, centered, etc.>
Lighting/mood: <if relevant>
Text (verbatim): "<exact text, if any>"
Constraints: <must keep / must avoid>
Avoid: no watermark, no unintended text
output/imagegen/output.png.--out or --out-dir when the user names a destination.generate-batch; do not use --n as a substitute for different prompts.