generate-image

generate-image is a skill for Claude Code, Codex from SamurAIGPT/muapi-claude-code. It costs 39 tokens per session (214 once invoked), scanned A, original, MIT.

A tool for creating images from written descriptions through MuAPI. It uses the flux-dev model by default and can return finished image URLs.

In plain words
What is it for?
Use it to make pictures, illustrations, artwork, or other images from text prompts. Editing an existing image uses the separate edit-image tool.
Why use it?
It lets an agent submit an image request and wait for the result without handling the generation process manually. It can report the cost when that information is returned.

Skill for Claude CodeCodex

Part of the muapi plugin — 5 skills, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/samuraigpt/muapi-claude-code/generate-image
Any agent
npx skills add SamurAIGPT/muapi-claude-code --skill generate-image
Clone the repo
git clone --depth 1 https://github.com/SamurAIGPT/muapi-claude-code

Made for: Claude Code, Codex.

Or install muapi, the plugin that ships this one along with the rest of its 5 skills, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/samuraigpt/muapi-claude-code/generate-image.svg)](https://agentmods.dev/skills/samuraigpt/muapi-claude-code/generate-image)
Your own site
<a href="https://agentmods.dev/skills/samuraigpt/muapi-claude-code/generate-image"><img src="https://agentmods.dev/badge/skills/samuraigpt/muapi-claude-code/generate-image.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 214 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00214
Opus 5 $0.00019 $0.00107
Sonnet 5 $0.00008 $0.00043
Haiku 4.5 $0.00004 $0.00021

Measured 4d ago against content hash de4f17813127, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-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 4d 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/generate-image/SKILL.md · 27 lines

What it actually says

Generate Image

Use the MuAPI image generation tools to create images from text prompts.

Instructions

  1. Take the user's request and craft an effective image generation prompt
  2. Call the generate_image tool with the prompt
  3. The tool uses the flux-dev model by default and waits for completion
  4. Display the resulting image URL to the user
  5. Report the generation cost from the response if available

Request

$ARGUMENTS

Notes

  • Generation is synchronous — the tool submits the request and polls until complete
  • The response includes an images array with the output URLs
  • Cost information is included in result.cost.amount_usd
  • If the user wants to edit an existing image instead, use the edit_image tool with the flux-kontext-dev model
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. 4d ago First seen · 27 lines · 39 tokens per session scan A de4f17813127

Subscribe to this mod's changes

generate-image is a skill published in the GitHub repository SamurAIGPT/muapi-claude-code (4 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 214 once invoked, about $0.0002 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

youtube-shorts-generator

Generate viral 9:16 YouTube Shorts (or TikTok/Reels clips) from a long-form YouTube URL or local video. Triggers on requests like "make shorts from this video", "extract viral clips from this YouTube link", "auto-clip this podcast", "find the best moments and crop vertical". Pipeline downloads the source, transcribes…

Anil-matcha/awesome-generative-ai-apps · 135 tokens

paper-illustration

Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says "生成图表", "画架构图", "AI绘图", "paper illustration", "generate diagram", or needs visual figures for papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 67 tokens

paper-illustration-image2

Generate publication-quality academic illustrations through a local Codex app-server bridge that uses Codex native image generation. This is a separate experimental alternative to paper-illustration, intended for Claude Code users who want a GPT-image-style renderer without modifying the original skill.

wanshuiyin/Auto-claude-code-research-in-sleep · 59 tokens

acestep

AI music generation with ACE-Step 1.5 — background music, vocal tracks, covers, stem extraction, audio repainting, and continuation for video production. Use when generating music, soundtracks, jingles, or working with audio stems. Triggers include background music, soundtrack, jingle, music generation, stem…

digitalsamba/claude-code-video-toolkit · 84 tokens

ffmpeg

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

digitalsamba/claude-code-video-toolkit · 55 tokens

playwright-recording

Record browser interactions as video using Playwright. Use for capturing demo videos, app walkthroughs, and UI flows for Remotion videos. Triggers include recording a demo, capturing browser video, screen recording a website, or creating walkthrough footage.

digitalsamba/claude-code-video-toolkit · 53 tokens