image_generation

image_generation is a skill for Claude Code, Codex from serejaris/kimi-skills. It costs 266 tokens per session (1,810 once invoked), scanned A, original, MIT.

An AI image-generation tool that creates pictures from text descriptions. It supports selected image sizes and aspect ratios, transparent or opaque backgrounds, and public reference-image URLs.

In plain words
What is it for?
Use it to create illustrations, concept images, and other bitmap graphics from prompts, including versions guided by public reference images.
Why use it?
It turns a written visual idea into an image file without requiring the user to draw it manually. The documented size and background limits help define what can be requested.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/image_generation_tool.py ensure-deps.

Good fit Use it to create illustrations, concept images, and other bitmap graphics from prompts, including versions guided by public reference images.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/serejaris/kimi-skills
agentmods
npx agentmods add skills/serejaris/kimi-skills/image_generation

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_generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/serejaris/kimi-skills/image_generation/github.svg)](https://agentmods.dev/skills/serejaris/kimi-skills/image_generation)
Your own site
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/image_generation"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/image_generation/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_generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/image_generation"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/image_generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 266 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,810 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00266 $0.01810
Opus 5.5 $0.00106 $0.00724
Sonnet 5.5 $0.00053 $0.00362
Haiku 4.5 $0.00027 $0.00181

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

Security

Grade A, and why

image_generation scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

downloads the image to your `output` path with `curl` (the extension is
plugin-skills/image_generation/SKILL.md · 159 lines

How it starts

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

Image Generation

Use this skill to create an image from a text description with AI image generation, then save it locally and display it to the user.

Setup

Before the first use, ensure the agent-gw Python SDK (version 0.2.6 or newer) is installed. This checks the current environment and installs or upgrades it only when needed:

python3 scripts/image_generation_tool.py ensure-deps

The SDK needs an API key from api_key=..., KIMI_API_KEY, or ~/.kimi/agent-gw.json.

Parameters

  • description (required): detailed text description of the image to generate.
  • ratio: one of 1:1, 3:2, 2:3, 16:9, 9:16. Default 1:1.
  • resolution: one of 1K, 2K, 4K. Default 1K. Opaque background supports only these combinations: 1K: 1:1 (1024x1024), 3:2 (1536x1024), 2:3 (1024x1536); 2K: 1:1 (2048x2048), 16:9 (2048x1152); 4K: 16:9 (3840x2160), 9:16 (2160x3840). Transparent background only supports 1K with 1:1, 3:2, 2:3.
  • background: opaque (default) or transparent.
  • reference_image: public URL(s) that guide the generation. Repeat --reference-image for multiple. The gateway only accepts public URLs, so a local image must be converted with image-to-url first (see "Reference images" below); passing a local path to generate is rejected.
  • output (required): local output path ending in .jpg, .jpeg, or .png. Transparent background must use .png.

Workflow

  1. Build a detailed, descriptive description from the user's request: include subject, style, composition, lighting, colors, and mood.
  2. Choose ratio, resolution, and background. Enforce the supported combinations. For opaque images: 1K allows 1:1 / 3:2 / 2:3; 2K allows 1:1 / 16:9; 4K allows 16:9 / 9:16. Transparent only allows 1:1 / 3:2 / 2:3 ratios, 1K resolution, and PNG output.
  3. Pick an output file path with a matching extension.
  4. If the user supplies reference images, they must be public URLs. For any local image (a file on the execution environment, whether that is a sandbox or the client's local machine), first run the image-to-url command to upload it and get a public URL, then pass that URL with --reference-image. The gateway only accepts public reference URLs; passing a local path to generate is rejected.
  5. Run the generate command (see "Script"). It calls generate_image on the gateway, reads media.url / media.mime_type from the response, and downloads the image to your output path with curl (the extension is corrected to match mime_type).
  6. If the call fails, explain the failure reason from the printed error. Do not invent an image or a local path.
  7. On success, the script prints the saved file path. Then display the image to the user by calling the readFile tool on that path. Reading the image to show it is the model's job, not this plugin's work.

Read the full file on GitHub · 159 lines

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. 1mo ago First seen · 159 lines · 266 tokens per session scan A e01546db3a49

Subscribe to this mod's changes

image_generation is a skill published in the GitHub repository serejaris/kimi-skills (9 stars, last pushed 3mo ago), licensed MIT. It adds 266 tokens to every session and 1,810 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

review-plan

Review a plan by running internal reviews and a peer review in parallel and returning combined findings. Use when the user asks to "review my plan", "check my plan", "critique my plan", or wants feedback on a plan.

tobihagemann/turbo · 50 tokens

offensive-bug-identification

Systematic bug identification methodology: source code review patterns, black-box testing strategies, taint analysis, dangerous function hunting, data flow tracing, and automated scanning setup. Use for code audits, bug bounty triage, or building vulnerability identification pipelines.

SnailSploit/Claude-Red · 0 tokens

create-changelog

Create a CHANGELOG.md following keepachangelog.com conventions with version history backfilled from GitHub releases or git tags. Use when the user asks to "create a changelog", "add a changelog", "initialize changelog", "start a changelog", "set up changelog", "generate changelog", or "backfill changelog".

tobihagemann/turbo · 75 tokens

agent-ready-oauth-discovery

Sub-skill de agent-ready-cloudflare: Implement OAuth/OIDC Discovery.

fabricioctelles/skills · 22 tokens

datarobot-agent-assist-build

Use when the user wants to design, build, code, or deploy an AI agent on DataRobot; mentions agentspec.yaml, dress rehearsal, the DataRobot agent template, LangGraph, CrewAI, LlamaIndex, NAT, Base agents, MCP servers, backend APIs, custom frontends, or the DataRobot CLI.

datarobot-oss/datarobot-agent-skills · 74 tokens

stock-screening

Use when building a screen to find candidates. Covers screen design, criteria that actually discriminate, avoiding overfitting, survivorship bias, and turning a screen's output into a shortlist rather than a shopping list. Trigger on "build a stock screener", "my screen returns hundreds of stocks", "find stocks that…

nimadorostkar/Claude-Skills-collection · 92 tokens