gpt-image

gpt-image is a skill for Codex from AiAi-Mastermind/aiai-mastermind-tools-and-skills. It costs 95 tokens per session (1,178 once invoked), scanned A, original, MIT.

A skill for generating images from Claude Code through Codex CLI when you have a ChatGPT subscription but no usable image API key.

In plain words
What is it for?
Use it to create photos, illustrations, mockups, hero images, icons, textures, and other visual assets through the signed-in Codex CLI.
Why use it?
It provides a route to image generation when direct access to the image API is unavailable because a ChatGPT login is not an API key.

Skill for Codex

Written for Codex: runs codex exec. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Good fit Use it to create photos, illustrations, mockups, hero images, icons, textures, and other visual assets through the signed-in Codex CLI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image
Install

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.

Any agent
npx skills add AiAi-Mastermind/aiai-mastermind-tools-and-skills --skill gpt-image
Clone the repo
git clone --depth 1 https://github.com/AiAi-Mastermind/aiai-mastermind-tools-and-skills

Made for: Codex.

Wrote 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.

agentmods badge for gpt-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image/github.svg)](https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image)
Your own site
<a href="https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image"><img src="https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-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.

agentmods 80×15 button for gpt-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image"><img src="https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,178 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.01178
Opus 5 $0.00048 $0.00589
Sonnet 5 $0.00019 $0.00236
Haiku 4.5 $0.00010 $0.00118

Measured 12d ago against content hash 19cdcf2773fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

gpt-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 12d 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.

skills/gpt-image/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gpt-image

Overview

Generate images from Claude Code using a ChatGPT subscription (no paid API key) by delegating to Codex CLI's built-in image_gen tool, which runs through the user's ChatGPT OAuth session.

Core rule: a ChatGPT OAuth login is NOT an API key. Do not call the OpenAI Images API — the OAuth token lacks image scope and returns 401 missing scopes: api.model.images.request. Codex's built-in image_gen tool needs no key. Always route through Codex.

When to use

  • Any request to generate / create / make / render / draw an image, photo, mockup, hero, banner, illustration, icon, sprite, or texture from Claude Code.
  • The machine has Codex CLI plus a ChatGPT login, and there is no usable OPENAI_API_KEY.

Do NOT use when: a real OPENAI_API_KEY is available and direct API control is wanted, or the asset is better authored as code/SVG.

Prerequisites

  • codex --version succeeds (Codex CLI installed).
  • Codex is signed in to ChatGPT (authenticated via OAuth).
  • Do not read the key out of ~/.codex/auth.json — Claude Code's credential safety layer blocks it, and there is no usable image key there anyway. If image generation fails, report the error; do not hunt for a key.

Workflow

  1. Write a brief (plain text): shared style + per-image subject/composition + aspect ratio + ABSOLUTE destination path + constraints ("only write these files, no git, don't edit the repo").
  2. Run Codex headless:
    codex exec --sandbox workspace-write \
      -c sandbox_workspace_write.network_access=true \
      --skip-git-repo-check "$(< /abs/path/to/brief.txt)"
    
    Run it in the background for batches; then read the output file.
  3. Force the built-in tool in the brief: tell Codex to use its built-in image_gen tool (one call per image). Explicitly forbid the OpenAI Images API and one-off SDK scripts — that path 401s on OAuth.
  4. Single location — MOVE, don't copy. The built-in tool always writes to ~/.codex/generated_images/<session>/ first. Instruct Codex to mv (never cp) each file to the absolute destination, then rmdir the emptied session folder. Never touch other session folders (the user's prior work).
  5. Verify: open the saved images, confirm subject/quality/brand, confirm the destination holds the files and the cache session is gone.

Read the full file on GitHub · 77 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 12d ago First seen · 77 lines · 95 tokens per session scan A 19cdcf2773fd

Subscribe to this mod's changes

gpt-image is a skill published in the GitHub repository AiAi-Mastermind/aiai-mastermind-tools-and-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 95 tokens to every session and 1,178 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

wiki-ingest

Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…

AgriciDaniel/claude-obsidian · 88 tokens

autoresearch

Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…

AgriciDaniel/claude-obsidian · 80 tokens

canvas

Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.

AgriciDaniel/claude-obsidian · 72 tokens

defuddle

Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.

AgriciDaniel/claude-obsidian · 57 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

obsidian-markdown

Explain, draft, or validate Obsidian Flavored Markdown syntax: properties, wikilinks, embeds, callouts, tags, comments, highlights, block references, math, and Mermaid. Use when the user explicitly requests Obsidian note formatting or syntax help, not for general Markdown or broad vault operations.

AgriciDaniel/claude-obsidian · 68 tokens