SuperAPI AI Directory

gpt-image-generation

Design & creation

View repository

Updated 10-16 06:13

About this skill

GPT Image Generation

Run the bundled Node CLI from this skill directory.

Workflow

  1. Work from the skill root that contains this SKILL.md.
  2. Ensure codex login has created ~/.codex/auth.json.
  3. Generate images with:
node ./scripts/cli.js \
  --prompt-file ./prompt.md \
  --size 3840x2160 \
  --quality high \
  --output ./outputs/storyboard-4k.png
  1. Use --prompt for inline text or --prompt-file to read the prompt verbatim from disk.
  2. Treat 4K as 3840x2160 or 2160x3840.
  3. Report the absolute output path after generation.

Notes

  • Keep the prompt text unchanged when the user provides a finished prompt file.
  • The runtime entrypoint is scripts/cli.js; supporting validation tests live in scripts/test.js.
  • The CLI reads the local Codex login from ~/.codex/auth.json.
  • The CLI does not hardcode or derive any OAuth client identity; if the local access_token is near expiry, rerun codex login before generation.
  • The CLI writes PNG files and prints the backend-reported size when available.
  • If the request fails with size validation, adjust width and height so both are divisible by 16.