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

  1. Work from the skill root that contains this SKILL.md.
  2. Make sure credentials exist. If SUB2API_BASE_URL / SUB2API_API_KEY are 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.

  1. Prefer the compiled JS entrypoint for normal use:
Installs
4
GitHub Stars
1
First Seen
Oct 24, 2026