Agent skill · practicalswan

codex-router-media

Generate video, music, speech, or images with the operator's MiniMax Token Plan subscription through the codex-router media CLI. Use when the session runs a MiniMax custom (non-OpenAI) model (for example minimax-m3) with the MiniMax Token Plan provider connected, and the user explicitly asks to create a video, a song or music track, spoken audio, or an image. Do not use for reading or analyzing existing media.

What it needs

About 3k tokens when loaded.

What this skill does

MiniMax media generation (codex-router) The router stores the operator's MiniMax Token Plan API key. The media command resolves that key itself — you never see or handle the credential. Each call spends the operator's paid MiniMax quota, so generate only what the user explicitly asked for, once, and reuse the downloaded file for retries of later steps. How to call it Run the router CLI through the shell tool. Locate it once per session: the install root is the current.sourceRoot field of ~/.codex/codex-router/install-manifest.json (%USERPROFILE% on Windows), and the command is <sourceRoot>/bin/media (<sourceRoot>\model-router.ps1 codex media on Windows). Quote the path; it may contain spaces. If the manifest is missing, try ~/.local/share/codex-router/bin/media. Always pass --json so the result is machine-readable, and --out so the file lands where the user wants it (default: the current directory). Actions video is asynchronous upstream: the command submits a task and polls until the clip is rendered (typically 1–3 minutes; it blocks until done and downloads the mp4). If it exits saying the task is still rendering, wait and run media status --task-id ID — never resubmit the same prompt. video model: the default MiniMax-Hailuo-02 is the one the Token Plan serves. MiniMax-H3 is refused on this subscription; the command already explains that, so do not retry with H3. music needs either --lyrics (use section tags like [verse], [chorus]) or --instrumental. --image turns video generation into image-to-video from a first frame (local file path or URL). Rules 1. Generate only on an explicit user request, and only once per request. Ask before regenerating a result the user has not rejected. 2. Report the saved file path back to the user. The download URLs expire, so the file is the deliverable, not the URL. 3. If the command reports a missing credential or an insufficient balance, relay that message and stop; do not hunt for keys or edit configuration. 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills practicalswan/codex-router-media

View the source on GitHub

Browse the @skills marketplace