image-gen

image-gen is a skill for Claude Code, Codex from redfox-data/redfox-community-dsh. It costs 32 tokens per session (2,480 once invoked), scanned A, original, MIT.

A command-line image generator that uses OpenAI’s gpt-image-2 model to create new images from text or edit images supplied as references. It can produce PNG, JPEG, or WebP files in supported sizes, including transparent backgrounds.

In plain words
What is it for?
Use it to create illustrations, logos, product images, or other visuals; edit an existing image; generate several variants; or export transparent assets.
Why use it?
It lets an agent turn written descriptions or existing images into usable image files without manually creating every version. Batch generation and format options support common asset-production tasks.

Skill for Claude CodeCodex

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

Good fit Use it to create illustrations, logos, product images, or other visuals; edit an existing image; generate several variants; or export transparent assets.

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

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 image-gen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/redfox-data/redfox-community-dsh/image-gen"><img src="https://agentmods.dev/badge/skills/redfox-data/redfox-community-dsh/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,480 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.00032 $0.02480
Opus 5.5 $0.00013 $0.00992
Sonnet 5.5 $0.00006 $0.00496
Haiku 4.5 $0.00003 $0.00248

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

Security

Grade A, and why

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 (assets/imagegen.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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/image-gen/SKILL.md · 213 lines

How it starts

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

GPT-image2

调用 OpenAI 最新的 gpt-image-2 模型生成高质量图片。粘贴提示词就能用。

Skill 特色

  • 支持命令行批量生成、参数化控制宽高比与分辨率档位
  • 文生图 + 图生图双模式,--image 一个参数启用编辑模式(最多 2 张参考图)

能力概述

  • 文生图:输入提示词,生成全新图片
  • 图生图:上传参考图(最多 2 张) + 提示词,基于原图编辑生成
  • 模型:gpt-image-2(OpenAI 最新图像模型)
  • 接口:红狐新版 gptImage2Submit / gptImage2Result
  • 输出格式:PNG(新接口固定输出)
  • 宽高比:1:1 / 3:2 / 2:3 / 4:3 / 3:4 / 5:4 / 4:5 / 16:9(默认) / 9:16 / 2:1 / 1:2 / 21:9 / 9:21
  • 分辨率档位:1k / 2k(默认) / 4k
  • 批量生成:单次最多 4 张(新接口上限)
  • 兼容旧像素格式:仍接受 1792x1024 等旧写法,脚本内部自动映射到宽高比 + 档位

使用方式

文生图 — 输入文字生成图片

# 基本生成(默认 16:9 + 2k)
python3 "$SKILL_PATH/assets/imagegen.py" "一只橘色的猫咪坐在窗台上看着窗外的夕阳"

# 横版 4k 高清
python3 "$SKILL_PATH/assets/imagegen.py" "futuristic city skyline" --size 16:9 --resolution 4k

# 竖版小红书封面(3:4 + 2k)
python3 "$SKILL_PATH/assets/imagegen.py" "product cover, minimal style" --size 3:4 --resolution 2k

# 方形 1k 快速档
python3 "$SKILL_PATH/assets/imagegen.py" "minimalist cat logo, flat design" --size 1:1 --resolution 1k

# 批量生成 4 张(新接口上限)
python3 "$SKILL_PATH/assets/imagegen.py" "icon set, flat style" -n 4

# 兼容旧像素写法(自动映射为 16:9 + 1k)
python3 "$SKILL_PATH/assets/imagegen.py" "cyberpunk street" --size 1792x1024

图生图 — 上传参考图编辑生成

# 单张参考图(自动上传 OSS → 提交任务)
python3 "$SKILL_PATH/assets/imagegen.py" "把猫咪改成白色,背景换成星空" --image ~/Pictures/cat.png

# 两张参考图(新接口最多支持 2 张)
python3 "$SKILL_PATH/assets/imagegen.py" "融合两张图的风格" --image ref1.png --image ref2.jpg

# 直接使用 URL 参考图(跳过上传步骤)
python3 "$SKILL_PATH/assets/imagegen.py" "把海报主体换成手表" --image "https://example.com/poster.jpg"

其他操作

# 仅提交任务(返回 taskId,不等待)
python3 "$SKILL_PATH/assets/imagegen.py" "complex scene" --no-download

# 查询已有任务结果
python3 "$SKILL_PATH/assets/imagegen.py" "" --task-id 5f100fcb8f3c4e3087c6aba93e121f7e

# 指定输出目录和文件名前缀
python3 "$SKILL_PATH/assets/imagegen.py" "illustration" -o ~/Pictures/AI --prefix artwork

参数说明

参数 说明 默认值
prompt 生成/编辑提示词(必填,最多 500 字) -
--size 宽高比(如 16:9);也兼容旧像素格式(如 1792x1024) 16:9
--resolution 分辨率档位:1k / 2k / 4k 像素格式自动匹配;宽高比默认 2k
-n, --count 生成数量(1-4,新接口上限 4) 1
--image 参考图路径或 URL(可多次传入,最多 2 张) -
-o, --output-dir 输出目录 ~/Downloads/QoderImages
--prefix 文件名前缀 image
--no-download 仅提交不等待 -
--task-id 查询已有任务 -
--api-key 指定 API Key -

Read the full file on GitHub · 213 lines

Files

What ships with it

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

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 Changed · +52 lines c6fe033589d4
  2. 3mo ago First seen · 161 lines · 32 tokens per session scan A 5511c1c51fe1

Subscribe to this mod's changes

image-gen is a skill published in the GitHub repository redfox-data/redfox-community-dsh (13 stars, last pushed 6d ago), licensed MIT. It adds 32 tokens to every session and 2,480 once invoked, about $0.0001 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-08-31.

Related

image-gen compared with skills from other repositories

image-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-genredfox-data/redfox-community-dshSkill136d agoMITA32Claude Code, Codex
dsh-hooks-authoringKYinCode/dsh-hooks-pluginSkill33mo agoMITA112Claude Code
web-artifact-designerxulelenlp/dsh-web-artifact-designerSkill93mo agoMITA115Claude Code, Codex
refactoromagents/omagentsSkill3613d agoMITA55Codex
tech-debt-auditomagents/omagentsSkill3613d agoMITA57Codex
deep-researchomagents/omagentsSkill3613d agoMITB24Codex
company-research-methodPerryLink/dsh-industry-researchSkill2277d agoApache-2.0A83Claude Code, Codex