image-gen-9router

image-gen-9router is a skill for Claude Code, Codex from fajrisilmi12-cyber/hermes-socmed-function. It costs 24 tokens per session (1,207 once invoked), scanned A, original, MIT.

A skill for generating images through 9Router, a local gateway that provides access to several image-generation models.

In plain words
What is it for?
It is for generating images from text prompts, creating social-media artwork, and comparing models such as FLUX, Imagen, DALL-E, and SD when 9Router is configured.
Why use it?
It gives an AI agent a documented way to create images and choose among supported models through one service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit It is for generating images from text prompts, creating social-media artwork, and comparing models such as FLUX, Imagen, DALL-E, and SD when 9Router is configured.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router
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 fajrisilmi12-cyber/hermes-socmed-function --skill image-gen-9router
Clone the repo
git clone --depth 1 https://github.com/fajrisilmi12-cyber/hermes-socmed-function

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-gen-9router

README.md
[![agentmods](https://agentmods.dev/badge/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router/github.svg)](https://agentmods.dev/skills/fajrisilmi12-cyber/hermes-socmed-function/image-gen-9router)
Your own site
<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.

agentmods 80×15 button for image-gen-9router

Your own site · 80×15
<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>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,207 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.00024 $0.01207
Opus 5.5 $0.00010 $0.00483
Sonnet 5.5 $0.00005 $0.00241
Haiku 4.5 $0.00002 $0.00121

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

Security

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.

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

curl -s $NINEROUTER_URL/v1/models/image \
skills/image-gen-9router/SKILL.md · 107 lines

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 3
  • openai/dall-e-3 — OpenAI DALL-E 3
  • cf/@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)

Read the full file on GitHub · 107 lines

Files

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.

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. 2mo ago First seen · 107 lines · 24 tokens per session scan A cd9fc752698e

Subscribe to this mod's changes

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.

Related

image-gen-9router compared with skills from other repositories

image-gen-9router next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-gen-9routerfajrisilmi12-cyber/hermes-socmed-functionSkill212mo agoMITA24Claude Code, Codex
byted-seedream-image-generatebytedance/agentkit-samplesSkill484todayApache-2.0A65Claude Code, Codex
tag1756141021/tag-skillSkill2019d agoMITA43Claude Code, Codex
crayon-flat-naiveVieeeeeee/wibi-styleSkill184yesterdaynoneA146Codex
diamond-kid-head-cardVieeeeeee/wibi-styleSkill184yesterdaynoneA128Codex
electric-blue-halftone-posterVieeeeeee/wibi-styleSkill184yesterdaynoneA105Codex
marker-child-doodleVieeeeeee/wibi-styleSkill184yesterdaynoneA102Codex