9Router Image Generation
decolua/9router
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.
Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models.
$ npx skills add mydisha/keirouter --skill keirouter-image -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mydisha/keirouter keirouter-image --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "keirouter-image" agent skill from https://github.com/mydisha/keirouter/tree/main/skills/keirouter-image into .claude/skills/keirouter-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keirouter-image", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mydisha/keirouter/tree/main/skills/keirouter-imageType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mydisha/keirouter --skill keirouter-image -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mydisha/keirouter keirouter-image --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/keirouter-image .agents/skills/keirouter-image && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "keirouter-image" agent skill from https://github.com/mydisha/keirouter/tree/main/skills/keirouter-image into .agents/skills/keirouter-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keirouter-image", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mydisha/keirouter --skill keirouter-image -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mydisha/keirouter keirouter-image --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/keirouter-image .cursor/skills/keirouter-image && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "keirouter-image" agent skill from https://github.com/mydisha/keirouter/tree/main/skills/keirouter-image into .cursor/skills/keirouter-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keirouter-image", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mydisha/keirouter.git --path skills/keirouter-image--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mydisha/keirouter --skill keirouter-image -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mydisha/keirouter keirouter-image --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/keirouter-image .gemini/skills/keirouter-image && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "keirouter-image" agent skill from https://github.com/mydisha/keirouter/tree/main/skills/keirouter-image into .gemini/skills/keirouter-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keirouter-image", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mydisha/keirouter keirouter-imageInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mydisha/keirouter --skill keirouter-image -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/keirouter-image .github/skills/keirouter-image && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "keirouter-image" agent skill from https://github.com/mydisha/keirouter/tree/main/skills/keirouter-image into .github/skills/keirouter-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keirouter-image", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mydisha/keirouter --skill keirouter-image -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mydisha/keirouter keirouter-image --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mydisha/keirouter.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/keirouter-image .opencode/skills/keirouter-image && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "keirouter-image" agent skill from https://github.com/mydisha/keirouter/tree/main/skills/keirouter-image into .opencode/skills/keirouter-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "keirouter-image", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
keirouter-imageGenerate 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. 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.
Read from SKILL.md and the folder at commit 3d8b702. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
curljqFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names these keys or tokens, usually read from environment variables:
KEIROUTER_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from mydisha/keirouter at commit 3d8b702, republished under its MIT licence (© mydisha). 133 words, ~691 tokens.
.claude/skills/keirouter-image/SKILL.md (or your agent's skills folder).Requires KEIROUTER_URL (and KEIROUTER_KEY if auth enabled). See https://raw.githubusercontent.com/mydisha/keirouter/main/skills/keirouter/SKILL.md for setup.
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"POST $KEIROUTER_URL/v1/images/generations
| Field | Required | Notes |
|---|---|---|
model | yes | from /v1/models/image |
prompt | yes | image description |
n | no | count (provider-dependent) |
size | no | 1024x1024, 1792x1024, ... |
quality | no | standard / hd (OpenAI) |
response_format | no | url (default) or b64_json |
Add query ?response_format=binary to receive raw image bytes (handy for saving file).
Save to file (binary):
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.pngJS (URL response):
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));JSON (default response_format=url):
{ "created": 1735000000, "data": [{ "url": "https://..." }] }response_format=b64_json:
{ "created": 1735000000, "data": [{ "b64_json": "iVBORw0KGgo..." }] }Query ?response_format=binary returns raw image bytes (Content-Type image/png or image/jpeg).
| Provider | ID | Notes |
|---|---|---|
| OpenAI | openai | DALL-E 3, standard/hd quality |
| Gemini | gemini | Imagen, only prompt required |
| MiniMax | minimax | Standard OpenAI shape |
| Stability AI | stability-ai | style preset, output_format |
| Fal.ai | fal-ai | Async polling, img2img via image |
| NanoBanana | nanobanana | Edit mode via image/images[] |
| OpenRouter | openrouter | Routes 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
Just SKILL.md in skills/keirouter-image of mydisha/keirouter.
Open the folder on GitHubat commit 3d8b702
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Keirouter Image this skillmydisha/keirouter | 147 | — | ~691 | Automated safety check: Pass | MIT | |
| 9Router Image Generationdecolua/9router | 30k | — | ~830 | Automated safety check: Pass | MIT | |
| Nano Banana Pro Prompts Recommend SkillYouMind-OpenLab/nano-banana-pro-prompts-recommend-skill | 1.9k | 1 repos | ~4.1k | Automated safety check: Pass | None | |
| ImageNexus-JPF/note-companion | 870 | 3 repos | ~3.9k | Automated safety check: Pass | MIT | |
| Shotshypersocialinc/shots | 240 | — | ~2k | Automated safety check: Pass | None | |
| Media Toolstherichardngai-code/gpt-image-2-pro-max | 101 | — | ~1.5k | Automated safety check: Notes | MIT |
decolua/9router
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.
YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill
Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs.
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.
hypersocialinc/shots
Generate, revise, translate, and manage App Store / Google Play marketing screenshots.
therichardngai-code/gpt-image-2-pro-max
Two CLI tools for image generation + vision analysis using goclaw's provider-chain pattern.
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…
mydisha/keirouter
Entry point for KeiRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch.
mydisha/keirouter
Chat / code generation via KeiRouter using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos.
mydisha/keirouter
Generate vector embeddings via KeiRouter /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia embedding models for RAG, semantic search, similarity.
mydisha/keirouter
Speech-to-text via KeiRouter /v1/audio/transcriptions using OpenAI Whisper / Groq / Gemini / Deepgram / AssemblyAI models.
mydisha/keirouter
Text-to-speech via KeiRouter /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Inworld voices.
mydisha/keirouter
Fetch URL → markdown / text / HTML via KeiRouter /v1/web/fetch using Firecrawl / Jina Reader / Tavily Extract / Exa Contents.
Works with
Categories
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.
Keirouter Image fits situations like: the user wants to create; render an image; text-to-image (txt2img).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.