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.
npx skills add fajrisilmi12-cyber/hermes-socmed-function --skill image-gen-9routergit clone --depth 1 https://github.com/fajrisilmi12-cyber/hermes-socmed-functionWrote 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.
[](https://agentmods.dev/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router)<a href="https://agentmods.dev/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router"><img src="https://agentmods.dev/badge/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router/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.
<a href="https://agentmods.dev/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router"><img src="https://agentmods.dev/badge/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.01207 |
| Opus 5 | $0.00012 | $0.00603 |
| Sonnet 5 | $0.00005 | $0.00241 |
| Haiku 4.5 | $0.00002 | $0.00121 |
Grade A, and why
image-gen-9router 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 11d 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.
curl -s $NINEROUTER_URL/v1/models/image \ How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Image Generation via 9Router
9Router is a local OpenAI-compatible gateway that exposes image generation
through /v1/images/generations. The same service handles LLM routing (it's
the AGY model Hermes uses) and image gen. Image gen is genuinely free via
the Cloudflare provider.
When to use this skill
- User wants to generate an image from a text prompt
- User wants AI art for an Instagram post / story / reel
- User wants to compare multiple image models (FLUX vs DALL-E vs Imagen)
- User has a working 9Router setup (NINEROUTER_URL + NINEROUTER_KEY in env)
9Router is the same service as AGY
Discovery: cat ~/.hermes/config.yaml shows
model:
base_url: http://localhost:20128/v1
That localhost:20128 is 9Router. Image gen and LLM chat go through the
same gateway, but with different endpoints and different model IDs. The
key (NINEROUTER_KEY) is shared.
Endpoints
| Endpoint | Purpose |
|---|---|
GET /v1/models/image |
List available image models (with owned_by provider) |
GET /v1/models/info?id=<model_id> |
Per-model params, capabilities, size enum |
POST /v1/images/generations |
Generate image(s) |
POST /v1/images/generations?response_format=binary |
Generate and return raw bytes |
Auth: Authorization: Bearer $NINEROUTER_KEY (required even for local 9Router).
Discover available models
curl -s $NINEROUTER_URL/v1/models/image \
-H "Authorization: Bearer $NINEROUTER_KEY" | jq '.data[].id'
Common models:
cf/@cf/black-forest-labs/flux-2-klein-4b— small, fast, free (Cloudflare)cf/@cf/black-forest-labs/flux-2-klein-9b— larger, more detail (Cloudflare)cf/@cf/black-forest-labs/flux-2-dev— development build (Cloudflare)gemini/gemini-3-pro-image-preview— Google's Imagen 3openai/dall-e-3— OpenAI DALL-E 3cf/@cf/leonardo/phoenix-1.0— Leonardo Phoenix via Cloudflare
Generate an image (Python)
import httpx, os
resp = httpx.post(
f"{os.environ['NINEROUTER_URL']}/v1/images/generations?response_format=binary",
headers={"Authorization": f"Bearer {os.environ['NINEROUTER_KEY']}"},
json={"model": "cf/@cf/black-forest-labs/flux-2-klein-4b",
"prompt": "your prompt here",
"size": "1024x1024"},
timeout=120,
)
resp.raise_for_status()
open("/tmp/out.png", "wb").write(resp.content)
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.
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.
- 11d ago First seen · 107 lines · 24 tokens per session scan A cd9fc752698e
image-gen-9router is a skill published in the GitHub repository fajrisilmi12-cyber/hermes-socmed-function (20 stars, last pushed 11d ago), licensed MIT. It adds 24 tokens to every session and 1,207 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.
Other skills, from other repositories
byted-seedream-image-generate
Generate high-quality images from text prompts using Volcano Engine Seedream models. Supports multiple artistic styles and aspect ratios. Use this skill when users want to create images from text descriptions, generate artwork in various styles, create visual content for creative projects, or need AI-powered image…
replicate-runner
Use when run AI models on Replicate cloud API. Deploy image generation, video creation, audio processing, and custom models without managing infrastructure. Use when working with replicate runner.
tag
A skill for turning image ideas, characters, scenes, and styles into Danbooru tags, which are standardized labels used in some AI image tools.
model-aware-image-prompt-engineer
Model-aware image prompt engineering for any agent or image generation workflow. Use when writing, improving, translating, debugging, or evaluating prompts for OpenAI image models, Gemini Nano Banana, Midjourney, FLUX, Qwen-Image, Z-Image, Stable Diffusion, SDXL, Pony, Illustrious, NoobAI, Animagine, HunyuanImage…
crayon-flat-naive
A photo-editing style that redraws a photo as a simple flat crayon fashion illustration while keeping the person’s identity, pose, clothing outline, and key accessories.
electric-blue-halftone-poster
A photo-editing style that turns one portrait or pet headshot into a square electric-blue poster with a tightly cropped black-and-white head, coloured stars, and a small barcode detail.