Codex imagegen
Generate or edit raster images through Codex CLI built-in $imagegen so usage goes through ChatGPT/Codex subscription limits instead of OpenAI API billing. Use this when the user wants image assets, reference-image edits, icons, posters, banners, UI placeholders, sprites, or generated visual files and explicitly wants Codex quota/subscription usage.From its SKILL.md
npx -y skills add pablopda/codex-imagegen-bridge --skill codex-imagegenAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, as published. Nobody here has run it
Codex ImageGen Bridge
Use this skill to generate or edit images through Codex built-in $imagegen.
This is for users who want subscription-backed Codex usage instead of local
OPENAI_API_KEY API billing.
Workflow
- Require an output path. Prefer
outputs/<short-name>.pngwhen the user does not specify one. - Use the local CLI from this project:
codex-imagegen -p "PROMPT" -f outputs/result.png
- For reference images, pass each one with
-i:
codex-imagegen -p "Restyle this as a clean app icon" -i reference.png -f outputs/icon.png
- Add
--size,--quality, or--styleonly when useful. - Do not set or rely on
OPENAI_API_KEY. The CLI stripsOPENAI_API_KEYandCODEX_API_KEYby default before launchingcodex exec. - Report the saved output path.
Important Behavior
- The bridge runs
codex execand asks Codex to use$imagegen. - Built-in Codex image generation uses
gpt-image-2and counts toward general Codex usage limits when Codex is signed in with ChatGPT. - API-key usage is intentionally avoided by default. Only use
--allow-api-envif the user explicitly asks to allow API-key-backed Codex execution. - The command refuses to overwrite existing output files unless
--forceis provided.
Preflight
Before first use, check:
codex login status
codex --version
codex-imagegen --help
If Codex is not signed in with ChatGPT, ask the user to run:
codex login