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 $0.00012 $0.00603
Sonnet 5 $0.00005 $0.00241
Haiku 4.5 $0.00002 $0.00121

Measured 11d ago against content hash cd9fc752698e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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. 11d 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 (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.

Related

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…

bytedance/agentkit-samples · 65 tokens

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.

oyi77/1ai-skills · 40 tokens

tag

A skill for turning image ideas, characters, scenes, and styles into Danbooru tags, which are standardized labels used in some AI image tools.

1756141021/tag-skill · 26 tokens

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…

Emily2040/nano-banana-image-skill · 210 tokens

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.

Vieeeeeee/wibi-style · 143 tokens

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.

Vieeeeeee/wibi-style · 105 tokens