sub2api-image
Installation
SKILL.md
sub2api-image
Use this skill when the user wants TypeScript/Node image generation or editing through sub2api rather than Codex's built-in image tool.
Workflow
- Work from the skill root that contains this
SKILL.md. - Make sure credentials exist. If
SUB2API_BASE_URL/SUB2API_API_KEYare not already available, run the setup command once and follow its prompts:
node dist/openai_4k_image_generator.js --setup
It writes SUB2API_BASE_URL and SUB2API_API_KEY to the user-level config
(~/.config/sub2api-image/config.env, %APPDATA%\sub2api-image\config.env on Windows, $XDG_CONFIG_HOME respected). That file lives outside the skill directory, so skills add --copy reinstalls keep it. Non-interactive shells can pass --setup --base-url URL --api-key KEY instead. A project .env or process environment still takes precedence over the saved config.
- Prefer the compiled JS entrypoint for normal use: