9router-video

9router-video is a skill for Claude Code, Codex from decolua/9router. It costs 74 tokens per session (1,096 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/decolua/9router/9router-video
About the project

9Router routes requests from coding tools such as Claude Code, Codex, Cursor, and Cline to AI models from many providers. Developers use it to reduce token usage, track subscription capacity, and switch automatically between subscription, cheap, and free models. The catalogue includes nine skills and one instruction for 9Router.

decolua/9router · 30,875 stars · on GitHub · 9router.com

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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 9router-video

README.md
[![agentmods](https://agentmods.dev/badge/skills/decolua/9router/9router-video/github.svg)](https://agentmods.dev/skills/decolua/9router/9router-video)
Your own site
<a href="https://agentmods.dev/skills/decolua/9router/9router-video"><img src="https://agentmods.dev/badge/skills/decolua/9router/9router-video/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 9router-video

Your own site · 80×15
<a href="https://agentmods.dev/skills/decolua/9router/9router-video"><img src="https://agentmods.dev/badge/skills/decolua/9router/9router-video.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 40
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.1 $0.00074 $0.01096
Opus 5.5 $0.00030 $0.00438
Sonnet 5.5 $0.00015 $0.00219
Haiku 4.5 $0.00007 $0.00110

Measured 1mo ago against content hash a2cf7c2f42a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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. 1mo ago 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 (30,875 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,096 once invoked, about $0.0003 per session on Opus 5.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.