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.5 | $0.00010 | $0.00483 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (21 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 1,207 once invoked, about $0.0001 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-30.
image-gen-9router compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-gen-9routerfajrisilmi12-cyber/hermes-socmed-function | Skill | 21 | 2mo ago | MIT | A | 24 | Claude Code, Codex |
| byted-seedream-image-generatebytedance/agentkit-samples | Skill | 484 | today | Apache-2.0 | A | 65 | Claude Code, Codex |
| tag1756141021/tag-skill | Skill | 20 | 19d ago | MIT | A | 43 | Claude Code, Codex |
| crayon-flat-naiveVieeeeeee/wibi-style | Skill | 184 | yesterday | none | A | 146 | Codex |
| diamond-kid-head-cardVieeeeeee/wibi-style | Skill | 184 | yesterday | none | A | 128 | Codex |
| electric-blue-halftone-posterVieeeeeee/wibi-style | Skill | 184 | yesterday | none | A | 105 | Codex |
| marker-child-doodleVieeeeeee/wibi-style | Skill | 184 | yesterday | none | A | 102 | Codex |