9router-video

A video-generation connection for 9Router using xAI's Grok Imagine Video. Video creation runs as a background job: submit a request, check its status, then download the finished MP4.

In plain words
What is it for?
Use it for text-to-video, image-to-video, video editing, or extending an existing video. It requires a connected xAI account or an xAI API key in 9Router.
Why use it?
It gives applications a defined process for handling video requests that may take time to finish. It supports creating videos from text or images, editing videos, and extending them.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/decolua/9router/9router-video
Any agent
npx skills add decolua/9router --skill 9router-video
Clone the repo
git clone --depth 1 https://github.com/decolua/9router

Made for: Claude Code, Codex.

Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00074 $0.01096
Opus 5 $0.00037 $0.00548
Sonnet 5 $0.00015 $0.00219
Haiku 4.5 $0.00007 $0.00110

Measured yesterday against content hash a2cf7c2f42a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

9router-video 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 yesterday.

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 -X POST "$NINEROUTER_URL/v1/videos/generations" \
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/9router-video/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

9Router — Video Generation (xAI Grok Imagine)

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.

Requires a connected xAI account in the 9Router dashboard — either Grok Build OAuth (SuperGrok / X Premium+ subscription sign-in) or a direct xAI API key from console.x.ai. The two are separate auth types with separate billing; the dashboard shows which one each connection uses.

Endpoints (async job flow)

Video generation is asynchronous: the POST returns a request_id immediately, then you poll until the job is done or failed.

Endpoint Purpose
POST /v1/videos/generations text-to-video / image-to-video
POST /v1/videos/edits edit an existing video
POST /v1/videos/extensions extend an existing video
GET /v1/videos/{request_id} poll job status

Request fields (passed through to xAI unchanged — see https://docs.x.ai/developers/rest-api-reference/inference/videos):

Field Required Notes
model no xai/grok-imagine-video (prefix is stripped before upstream)
prompt yes for T2V video description
duration no seconds
aspect_ratio no 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
resolution no 480p, 720p, 1080p
image no { "url": "https://… or data:image/…;base64,…" } for image-to-video
video edits/extensions { "url": "…mp4" } or { "file_id": "…" }

Examples

Submit a job:

curl -X POST "$NINEROUTER_URL/v1/videos/generations" \
  -H "Authorization: Bearer $NINEROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"xai/grok-imagine-video","prompt":"A cinematic tracking shot through a neon city at night","duration":8,"aspect_ratio":"16:9","resolution":"720p"}'
# → {"request_id":"abc123"}   (response header x-9router-connection-id: <id>)

Poll until done (echo the connection header back so the same account polls the job):

Read the full file on GitHub · 77 lines

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. yesterday First seen · 77 lines · 74 tokens per session scan A a2cf7c2f42a9

Subscribe to this mod's changes

9router-video is a skill published in the GitHub repository decolua/9router (26,675 stars, last pushed 3d ago), licensed MIT. It adds 74 tokens to every session and 1,096 once invoked, about $0.0004 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

extremerouter-stt

Speech-to-text via ExtremeRouter /v1/audio/transcriptions using OpenAI Whisper / Groq / Gemini / Deepgram / AssemblyAI / NVIDIA / HuggingFace models. Use when the user wants to transcribe audio, convert speech to text, or get subtitles from audio files.

rsalmn/ExtremeRouter · 64 tokens

extremerouter

Entry point for ExtremeRouter — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions ExtremeRouter, NINEROUTERURL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant…

rsalmn/ExtremeRouter · 84 tokens

feednest

Read, search, highlight, and organize news from the user's RSS feeds through natural language.

feednest-app/mcp · 21 tokens

tokonomix-gateway

Direct HTTP access to the Tokonomix AI gateway — OpenAI- and Anthropic-compatible endpoints for chat, image generation, image editing, vision consensus, embeddings, audio transcription and reranking, with EU data-residency routing through one key. Use when building an app, an agent framework, or a CI pipeline without…

TokonoMix/tokonomix-council-mcp · 98 tokens

extremerouter-image

Generate images via ExtremeRouter /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).

rsalmn/ExtremeRouter · 75 tokens

extremerouter-tts

Text-to-speech via ExtremeRouter /v1/audio/speech using OpenAI / ElevenLabs / Deepgram / Edge TTS / Google TTS / Hyperbolic / Inworld voices. Use when the user wants to convert text to speech, generate audio, voiceover, narrate, or read text aloud.

rsalmn/ExtremeRouter · 71 tokens