9router-image

Solid

Generate images via 9Router /v1/images/generations using OpenAI / Gemini Imagen / DALL-E / FLUX / MiniMax / SDWebUI / ComfyUI / Codex models. Use when the user wants to create, generate, draw, or render an image, picture, or text-to-image (txt2img).

AI & Automation 17,320 stars 2650 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 9Router — Image Generation Requires `NINEROUTER_URL` (and `NINEROUTER_KEY` if auth enabled). See https://raw.githubusercontent.com/decolua/9router/refs/heads/master/skills/9router/SKILL.md for setup. ## Discover ```bash curl $NINEROUTER_URL/v1/models/image | jq '.data[].id' # Per-model params/options (size enum, quality enum, capabilities like edit) curl "$NINEROUTER_URL/v1/models/info?id=openai/dall-e-3" ``` ## Endpoint `POST $NINEROUTER_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). ## Examples Save to file (binary): ```bash curl -X POST "$NINEROUTER_URL/v1/images/generations?response_format=binary" \ -H "Authorization: Bearer $NINEROUTER_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.NINEROUTER_URL}/v1/images/generations`, { method: "POST", headers: { "Authorization": `Bearer ${process.env.NINEROUTER_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ mo...

Details

Author
decolua
Repository
decolua/9router
Created
5 months ago
Last Updated
6 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category