Agent skill

Keirouter Image

by mydisha in mydisha/keirouter

Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models.

MITAuto-check passedMedia & Creative

Install Keirouter Image

skills CLI
$ npx skills add mydisha/keirouter --skill keirouter-image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mydisha/keirouter keirouter-image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/keirouter-image .claude/skills/keirouter-image && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
keirouter-image
GitHub stars
147
Token cost
~691 tokens
SKILL.md length
133 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models.

  • The user wants to create
  • SKILL.md covers Discover, Endpoint, Examples and Response shape, plus 1 more section
  • Calls curl and jq; needs KEIROUTER_KEY
  • Render an image

What it does

Keirouter Image is an agent skill from mydisha/keirouter. Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models. Use when the user wants to create, generate, draw, or render an image, picture, or text-to-image (txt2img).

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image generation. It works with OpenAI, fal, MiniMax and Stable Diffusion. The repository describes itself as: Your friendly, blazing-fast, self-hostable AI gateway. The licence is MIT.

When your agent uses it

  • The user wants to create
  • Render an image
  • Text-to-image (txt2img)

Example prompts

  • “/keirouter-image”

Requirements

  • A credential in KEIROUTER_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 3d8b702. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KEIROUTER_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Keirouter Image loads about 691 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 133 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~691

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mydisha/keirouter at commit 3d8b702, republished under its MIT licence (© mydisha). 133 words, ~691 tokens.

Download SKILL.mdSave it as .claude/skills/keirouter-image/SKILL.md (or your agent's skills folder).
name
keirouter-image
description
Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models. Use when the user wants to create, generate, draw, or render an image, picture, or text-to-image (txt2img).

KeiRouter — Image Generation

Requires KEIROUTER_URL (and KEIROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/mydisha/keirouter/main/skills/keirouter/SKILL.md for setup.

Discover

bash
curl $KEIROUTER_URL/v1/models/image | jq '.data[].id'
# Per-model params/options (size enum, quality enum)
curl "$KEIROUTER_URL/v1/models/info?id=openai/dall-e-3"

Endpoint

POST $KEIROUTER_URL/v1/images/generations

FieldRequiredNotes
modelyesfrom /v1/models/image
promptyesimage description
nnocount (provider-dependent)
sizeno1024x1024, 1792x1024, ...
qualitynostandard / hd (OpenAI)
response_formatnourl (default) or b64_json

Add query ?response_format=binary to receive raw image bytes (handy for saving file).

Examples

Save to file (binary):

bash
curl -X POST "$KEIROUTER_URL/v1/images/generations?response_format=binary" \
  -H "Authorization: Bearer $KEIROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini/gemini-3-pro-image-preview","prompt":"watercolor mountains at sunrise","size":"1024x1024"}' \
  --output out.png

JS (URL response):

js
const r = await fetch(`${process.env.KEIROUTER_URL}/v1/images/generations`, {
  method: "POST",
  headers: { "Authorization": `Bearer ${process.env.KEIROUTER_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ model: "gemini/gemini-3-pro-image-preview", prompt: "neon city", size: "1024x1024" }),
});
const { data } = await r.json();
console.log(data[0].url || data[0].b64_json.slice(0, 40));

Response shape

JSON (default response_format=url):

json
{ "created": 1735000000, "data": [{ "url": "https://..." }] }

response_format=b64_json:

json
{ "created": 1735000000, "data": [{ "b64_json": "iVBORw0KGgo..." }] }

Query ?response_format=binary returns raw image bytes (Content-Type image/png or image/jpeg).

Provider quick reference

ProviderIDNotes
OpenAIopenaiDALL-E 3, standard/hd quality
GeminigeminiImagen, only prompt required
MiniMaxminimaxStandard OpenAI shape
Stability AIstability-aistyle preset, output_format
Fal.aifal-aiAsync polling, img2img via image
NanoBananananobananaEdit mode via image/images[]
OpenRouteropenrouterRoutes to underlying image models

© mydisha, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/keirouter-image of mydisha/keirouter.

Open the folder on GitHubat commit 3d8b702

Compare with similar skills

Keirouter Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Keirouter Image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Keirouter Image this skillmydisha/keirouter147—~691Automated safety check: PassMIT
9Router Image Generationdecolua/9router30k—~830Automated safety check: PassMIT
Nano Banana Pro Prompts Recommend SkillYouMind-OpenLab/nano-banana-pro-prompts-recommend-skill1.9k1 repos~4.1kAutomated safety check: PassNone
ImageNexus-JPF/note-companion8703 repos~3.9kAutomated safety check: PassMIT
Shotshypersocialinc/shots240—~2kAutomated safety check: PassNone
Media Toolstherichardngai-code/gpt-image-2-pro-max101—~1.5kAutomated safety check: NotesMIT

Similar skills

  • Generates images through a 9Router gateway's image endpoint, with model discovery, the request fields and per-provider quirks for OpenAI, Gemini, MiniMax and others.

    30k GitHub stars~830 tokensUpdated 7 days ago
    Media & CreativeAuto-check passed
  • Nano Banana Pro Prompts Recommend Skill

    YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill

    Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    Media & CreativeAuto-check passed
  • Image

    Nexus-JPF/note-companion

    When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets.

    870 GitHub starsUsed in 3 repos~3.9k tokens
    Media & CreativeAuto-check passed
  • Shots

    hypersocialinc/shots

    Generate, revise, translate, and manage App Store / Google Play marketing screenshots.

    240 GitHub stars~2k tokensUpdated 5 mo ago
    Media & CreativeAuto-check passed
  • Media Tools

    therichardngai-code/gpt-image-2-pro-max

    Two CLI tools for image generation + vision analysis using goclaw's provider-chain pattern.

    101 GitHub stars~1.5k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Image Gen

    open-octo/octo-agent

    Acquire images as files — generate them with an AI image model (14 providers: OpenAI/gpt-image, Gemini, Qwen, Zhipu, Volcengine, Stability, FLUX, Ideogram, MiniMax, and more), search openly-licensed…

    125 GitHub stars~3.1k tokensUpdated today
    Media & CreativeAuto-check: notes

More from mydisha/keirouter

All 8 skills in this repo
  • Keirouter

    mydisha/keirouter

    Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.

    147 GitHub stars~995 tokensUpdated 28 days ago
    Auto-check passed
  • Keirouter Chat

    mydisha/keirouter

    Chat / code generation via KeiRouter using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos.

    147 GitHub stars~859 tokensUpdated 28 days ago
    Auto-check passed
  • Keirouter Embeddings

    mydisha/keirouter

    Generate vector embeddings via KeiRouter /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia embedding models for RAG, semantic search, similarity.

    147 GitHub stars~577 tokensUpdated 28 days ago
    Auto-check passed
  • Keirouter Stt

    mydisha/keirouter

    Speech-to-text via KeiRouter /v1/audio/transcriptions using OpenAI Whisper / Groq / Gemini / Deepgram / AssemblyAI models.

    147 GitHub stars~680 tokensUpdated 28 days ago
    Auto-check passed
  • Keirouter Tts

    mydisha/keirouter

    Text-to-speech via KeiRouter /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Inworld voices.

    147 GitHub stars~599 tokensUpdated 28 days ago
    Auto-check passed
  • Keirouter Web Fetch

    mydisha/keirouter

    Fetch URL → markdown / text / HTML via KeiRouter /v1/web/fetch using Firecrawl / Jina Reader / Tavily Extract / Exa Contents.

    147 GitHub stars~741 tokensUpdated 28 days ago
    Auto-check passed

Questions about Keirouter Image

What does Keirouter Image do?

Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models. Keirouter Image is an agent skill from mydisha/keirouter.ai models.

When should I use Keirouter Image?

Keirouter Image fits situations like: the user wants to create; render an image; text-to-image (txt2img).

How do I install Keirouter Image in Claude Code?

Run `npx skills add mydisha/keirouter --skill keirouter-image -a claude-code`. Or copy the skill folder (skills/keirouter-image in mydisha/keirouter) into .claude/skills/keirouter-image in your project. Claude Code loads it when a task matches its description.

How do I install Keirouter Image in Codex?

Run `npx skills add mydisha/keirouter --skill keirouter-image -a codex`. Or copy the skill folder (skills/keirouter-image in mydisha/keirouter) into .agents/skills/keirouter-image in your project. Codex loads it when a task matches its description.

Can I use Keirouter Image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mydisha/keirouter --skill keirouter-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/keirouter-image, .gemini/skills/keirouter-image, .github/skills/keirouter-image and .opencode/skills/keirouter-image in your project.

What does Keirouter Image need to run?

Going by SKILL.md and its folder, Keirouter Image needs the command-line tools its instructions call (curl and jq) and credentials named KEIROUTER_KEY. Our summary lists: A credential in KEIROUTER_KEY.

Does Keirouter Image access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Keirouter Image safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Keirouter Image use?

Keirouter Image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Keirouter Image use?

About 691 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Keirouter Image?

Skills that share tags, products or a category with Keirouter Image: 9Router Image Generation (decolua/9router, 30k stars), Nano Banana Pro Prompts Recommend Skill (YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill, 1.9k stars), Image (Nexus-JPF/note-companion, 870 stars) and Shots (hypersocialinc/shots, 240 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Keirouter Image?

mydisha (a GitHub user) maintains it in mydisha/keirouter, which has 147 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 11, 2026.

Source: mydisha/keirouter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.