← ClaudeAtlas

9router-imagelisted

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).
Shinzzyak/VansRouter · ★ 0 · Web & Frontend · score 72
Install: claude install-skill Shinzzyak/VansRouter
# 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": "appl