invokeai-image-gen

invokeai-image-gen is a skill for Claude Code, Codex from sammcj/agentic-coding. It costs 69 tokens per session (1,354 once invoked), scanned A, original, Apache-2.0.

A tool for generating images through a locally running InvokeAI service, using models such as FLUX and SDXL.

In plain words
What is it for?
Use it for text-to-image generation and for controlling the prompt, model, dimensions, denoising steps, and guidance options.
Why use it?
It provides a documented way to choose an available model, supply a prompt, and save the generated image with selected settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for text-to-image generation and for controlling the prompt, model, dimensions, denoising steps, and guidance options.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sammcj/agentic-coding/invokeai-image-gen
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 sammcj/agentic-coding --skill invokeai-image-gen
Clone the repo
git clone --depth 1 https://github.com/sammcj/agentic-coding

Made for: Claude Code, 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 invokeai-image-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/sammcj/agentic-coding/invokeai-image-gen/github.svg)](https://agentmods.dev/skills/sammcj/agentic-coding/invokeai-image-gen)
Your own site
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/invokeai-image-gen"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/invokeai-image-gen/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 invokeai-image-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/sammcj/agentic-coding/invokeai-image-gen"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/invokeai-image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,354 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00069 $0.01354
Opus 5.5 $0.00028 $0.00542
Sonnet 5.5 $0.00014 $0.00271
Haiku 4.5 $0.00007 $0.00135

Measured 2mo ago against content hash 394a47b1e49c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

invokeai-image-gen 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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_disabled/invokeai-image-gen/SKILL.md · 126 lines

How it starts

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

InvokeAI Image Generation

Generate images via InvokeAI's REST API. Supports FLUX.2 Klein (default), Z-Image Turbo, FLUX.1, and SDXL.

Quick Start

Simply call the script with your prompt and the output file name:

python scripts/generate.py -p "A dramatic sunset over snow-capped mountains, warm orange light reflecting off a still alpine lake in the foreground. Soft clouds catch the fading light." -o sunset.png

Overriding The Default Model

If the user asks you to use a specific model, first find the model key, then use it in the command:

python scripts/generate.py --list-models | grep -i 'flux'

python scripts/generate.py -p "A tabby cat with bright green eyes sits on a weathered wooden windowsill, soft afternoon light streaming through lace curtains. Cosy, intimate mood." --model MODEL_KEY -o cat.png

Options

Option Description
--prompt, -p Generation prompt (required)
--negative, -n Negative prompt (SDXL only)
--model, -m Model key (UUID) or partial name match
--width, -W / --height, -H Dimensions
--steps, -s Denoising steps
--cfg, -c CFG scale
--guidance, -g Guidance strength (FLUX.1 only)
--scheduler Sampling scheduler
--seed Random seed
--output, -o Output path (default: invokeai-{seed}.png)
--list-models List installed models
--json JSON output

Model Defaults

Note: FLUX.2 Klein is the latest model which is used by default.

Model Steps Guidance CFG Scheduler
FLUX.2 Klein 4 3.5 1.0 euler
Z-Image Turbo 9 - 1.0 euler
FLUX.1 dev 28 3.5 1.0 euler
FLUX.1 Krea dev 28 4.5 1.0 euler
FLUX.1 Kontext dev 28 2.5 1.0 euler
FLUX.1 schnell 4 0.0 1.0 euler
SDXL 25 - 6.0 dpmpp_2m_k
SDXL Turbo 8 - 1.0 dpmpp_sde

All models default to 1024x1024. FLUX requires dimensions divisible by 16, SDXL by 8.

Read the full file on GitHub · 126 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. 2mo ago First seen · 126 lines · 69 tokens per session scan A 394a47b1e49c

Subscribe to this mod's changes

invokeai-image-gen is a skill published in the GitHub repository sammcj/agentic-coding (174 stars, last pushed 3d ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,354 once invoked, about $0.0003 per session on Opus 5.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-09-03.

Related

invokeai-image-gen compared with skills from other repositories

invokeai-image-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
invokeai-image-gensammcj/agentic-codingSkill1743d agoApache-2.0A69Claude Code, Codex
agentproto-llm-endpointagentproto/tsSkill11todayApache-2.0A77Claude Code, Codex
ap-workflowsagentproto/tsSkill11todayApache-2.0A85Claude Code, Codex
agentproto-appsagentproto/tsSkill11todayApache-2.0A171Claude Code, Codex
ap-cronagentproto/tsSkill11todayApache-2.0A70Claude Code, Codex
ap-lifecycleagentproto/tsSkill11todayApache-2.0A77Claude Code, Codex
pb-new-agent-sessionagentproto/tsSkill11todayApache-2.0A68Claude Code, Codex