Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add qwwiwi/codex-gpt-image-2-subscription --skill codex-imagegit clone --depth 1 https://github.com/qwwiwi/codex-gpt-image-2-subscriptionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/qwwiwi/codex-gpt-image-2-subscription/codex-image)<a href="https://agentmods.dev/skills/qwwiwi/codex-gpt-image-2-subscription/codex-image"><img src="https://agentmods.dev/badge/skills/qwwiwi/codex-gpt-image-2-subscription/codex-image/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/qwwiwi/codex-gpt-image-2-subscription/codex-image"><img src="https://agentmods.dev/badge/skills/qwwiwi/codex-gpt-image-2-subscription/codex-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.01046 |
| Opus 5 | $0.00055 | $0.00523 |
| Sonnet 5 | $0.00022 | $0.00209 |
| Haiku 4.5 | $0.00011 | $0.00105 |
Grade A, and why
codex-image scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
codex-image — gpt-image-2 via Codex OAuth subscription
Overview
Images are generated by gpt-image-2 through the Codex/ChatGPT OAuth subscription (token from ~/.codex/auth.json, created by codex login). No API key, no per-image cost — quota is shared with the Codex subscription.
Common misconception (documented agent failure): "Codex is text-only, image generation needs OPENAI_API_KEY / DALL-E." Wrong. The Codex backend (chatgpt.com/backend-api/codex) serves the image_generation tool over the Responses API; host model gpt-5.5 invokes it, gpt-image-2 renders.
Note: the Codex Claude Code plugin (openai/codex-plugin-cc) does NOT generate images — its role is review/architecture. This skill's script bypasses the plugin and talks to the Codex backend directly using the same login.
Quick reference
# self-contained launcher — uses the skill's own venv, bootstraps it if missing
~/.claude/skills/codex-image/scripts/run.sh \
"prompt in English" [quality] [aspect] [ref1.png ... ref5.png]
| Param | Values | Notes |
|---|---|---|
| quality | low (~45s) / medium (default, ~1-2min) / high (~2-3min) |
|
| aspect | landscape 1536x1024 / square 1024x1024 / portrait 1024x1536 |
|
| refN | up to 5 local image paths (png/jpg/webp) | passed as input_image data-URL content blocks; style/character/logo transfer |
| output | prints path to PNG | saved in ~/.codex/cache/images/img_<ts>.png |
Prompt in English works best. Generation is slow — for high use a background call.
Hard constraints (violating any → HTTP 400 or wrong path)
- References: max 5 images, as content blocks.
{"type":"input_image","image_url":"data:<mime>;base64,...","detail":"auto"}placed NEXT TOinput_textin the same user message. There is no seed parameter — for strict reproducibility a paid image API is still the better tool; for character/style/logo transfer this works. - Never
client.images.generate()/ Images API — that is the API-key path, the OAuth subscription rejects it. Only Responses API + toolimage_generation(+tool_choice={"type":"image_generation"}so the host model draws immediately). stream=Trueandstore=Falseare mandatory — otherwise HTTP 400 from the Codex backend.inputmust be a LIST of message objects, not a bare string.- Auth:
tokens.access_token(+tokens.account_id→chatgpt-account-idheader) from~/.codex/auth.json. Required headers:OpenAI-Beta: responses=experimental,originator: codex_cli_rs.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 58 lines · 110 tokens per session scan A a4c8548e9791
codex-image is a skill published in the GitHub repository qwwiwi/codex-gpt-image-2-subscription (9 stars, last pushed 3mo ago), licensed MIT. It adds 110 tokens to every session and 1,046 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
local-image-gen
A local command-line tool for generating or editing images with Codex, Grok, or Gemini/Antigravity accounts and optional API keys.
openai-image-gen
Batch-generate images via OpenAI Images API. Random prompt sampler + index.html gallery.
ima2
Use the ima2-gen CLI/server to generate, edit, inspect, and manage local AI image generation jobs.
illo
Creates original editorial illustrations where a recurring mascot character performs the idea — one caught scene by default, a hand-built explainer diagram (labeled stages, a fan-out, timeline, loop, or stack) when the structure itself is the point, or a transparent character cutout (pose-only compositing asset, no…
replicate-images
Use when generating or editing images through the Replicate API, or when a modern image model keeps ignoring the prompt — choosing aspect ratio, resolution, seed and output format, image-to-image, multi-reference composition, text-driven inpainting, readable text inside a generated image, and structuring prompts per…
media-tools
A guide and script for generating images, illustrations, avatars, backgrounds, and banners through configured image-generation services. It uses available API keys from environment or local secret files.