aima-image-gen

aima-image-gen is a skill for Claude Code, Codex from Approaching-AI/AIMA. It costs 21 tokens per session (247 once invoked), scanned A, original, Apache-2.0.

A skill for generating images with AIMA's local z-image model, using an OpenAI-compatible image service.

In plain words
What is it for?
Use it to generate images from text descriptions, choose an output size, and save the result as a PNG file.
Why use it?
It provides a repeatable command for creating PNG images without requiring an external API key.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to generate images from text descriptions, choose an output size, and save the result as a PNG file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/approaching-ai/aima/aima-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 Approaching-AI/AIMA --skill aima-image-gen
Clone the repo
git clone --depth 1 https://github.com/Approaching-AI/AIMA

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/approaching-ai/aima/aima-image-gen.svg)](https://agentmods.dev/skills/approaching-ai/aima/aima-image-gen)
Your own site
<a href="https://agentmods.dev/skills/approaching-ai/aima/aima-image-gen"><img src="https://agentmods.dev/badge/skills/approaching-ai/aima/aima-image-gen.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 247 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. 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.00021 $0.00247
Opus 5 $0.00010 $0.00123
Sonnet 5 $0.00004 $0.00049
Haiku 4.5 $0.00002 $0.00025

Measured 8d ago against content hash 2ff7b50c6734, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

aima-image-gen 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate.sh), 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.

Makes network callslowCapability

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

metadata: {"openclaw":{"emoji":"🎨","requires":{"bins":["curl"]},"always":true}}
internal/openclaw/skills/aima-image-gen/SKILL.md · 34 lines

What it actually says

AIMA Image Generation (z-image)

Generate images using AIMA's local z-image model via the OpenAI-compatible Images API.

Generate

{baseDir}/scripts/generate.sh "your image description" --filename output.png

Useful flags:

{baseDir}/scripts/generate.sh "a cute cat" --filename cat.png --size 512x512
{baseDir}/scripts/generate.sh "mountain sunset" --filename sunset.png --size 1024x1024

Output

  • The script saves the image to the workspace and prints the path.
  • MEDIA: line is printed for OpenClaw to auto-attach on supported chat providers.

Notes

  • Model: z-image (local, no API key needed)
  • Runs on AIMA proxy at http://127.0.0.1:6188/v1
  • Response format: base64 PNG
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. 8d ago First seen · 34 lines · 21 tokens per session scan A 2ff7b50c6734

Subscribe to this mod's changes

aima-image-gen is a skill published in the GitHub repository Approaching-AI/AIMA (16 stars, last pushed 6d ago), licensed Apache-2.0. It adds 21 tokens to every session and 247 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other skills, from other repositories

olares-router

Olares models via olares-cli router — Router (the AI gateway) and the Model Console inside a locally installed model application. Configure cloud vendors and their models, manage local LLM / embedding / audio / OCR model applications, edit a local model's card, name models with aliases, groups and default categories…

beclab/Olares · 202 tokens

gemini-api-agent-platform

Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK for enterprise AI applications. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

davila7/claude-code-templates · 61 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

deepstream-sop

Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…

NVIDIA/skills · 219 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

data-engineering

A guide to data engineering, the work of collecting, moving, processing, and checking data. It covers workflow tools such as Airflow, Dagster, and Prefect, plus streaming and data-quality tools.

fengshao1227/ccg-workflow · 53 tokens