AI Media Router: One MCP for 43 Image and Video APIs

Introduction
If you've ever had an AI agent make a video for you, you know the chaos. Every provider has a different API, result links expire, and the "$5 budget" you typed into the prompt is just a hope. AI Media Router is a new open-source MCP server from Jutsu Studio (jutsuhq). Version 0.1.0 went live on GitHub today, Nov 1. It aims to fix all three problems at once.
It's a single Rust binary, MIT-licensed and self-hosted. Your agent gets one generate → get_job loop across 43 image and video providers: fal, Replicate, Runware, WaveSpeed, kie, OpenRouter, BytePlus, Kling, Runway, Luma, LTX, MiniMax Hailuo, xAI Grok Imagine and more. It can also drive your own ComfyUI server at 0 USD per job. You bring your own keys, and there's no middleman account and no markup.
What Shipped
The five pillars
- Generation gateway:
search_prices,estimate_cost,preflight,generate, batches and job chains. - Asset library: every output is downloaded immediately, content-hashed and indexed in SQLite with previews, so expiring CDN links stop being your problem.
- Reference manager: save a character, product or style once, then drop
{{ref:name}}into any prompt to keep it consistent across shots. - Agent memory: job history, a lineage graph, per-model stats and, with an embeddings key, similarity search.
- Prompt blocks and recipes: save a whole chain and rerun it with one call.
Money guards
search_priceslists catalog offers cheapest first, by default only from providers you have keys for.- Named USD budgets refuse a job before it's submitted, based on a real estimate. Batches are admitted as a whole or not at all.
- Identical requests made within 5 minutes aren't paid for twice. Agents love to retry on a timeout, so this one matters.
- The README gives an example from the Nov 1 catalog: Seedance 2.5 text-to-video at 720p with audio ranged from $0.216/s (302.AI) to $0.462/s (fal). For the same 10-second clip, that's $2.16 versus $4.62.
Small things that show care
- API keys are set in a terminal from a hidden prompt or stdin, stored in your OS keychain or a 0600 config file, and never pass through the agent.
- Generated PNG, JPEG and (with ffmpeg) MP4 files carry a provenance record of the provider, model, prompt and parent assets, with keys redacted.
- When a provider changes its API, the agent can read the raw exchange and patch that provider's TOML spec live, without waiting for a new release.
Try It
Prebuilt binaries are available for Linux, macOS and Windows on the releases page. You can also build it from source:
cargo install --git https://github.com/jutsuhq/ai-media-router
ai-media-router keys set FAL_KEY
claude mcp add ai-media-router -- ai-media-router mcpCursor and Claude Desktop use a standard mcpServers block pointing at the binary with the mcp argument. To add your own GPU, set COMFYUI_URL (for example http://127.0.0.1:8188), and API-format workflows become the input. Then ask your agent something like this:
Find the cheapest Seedance 2.5 offer at 720p among my providers and make a 5-second clip of a paper boat on a rainy street.Honest Caveats
- This is a 0.1.0 release, and the library schema may change before 1.0.
- Some provider specs are marked as not yet checked against a live response. Live verification of every spec is on the roadmap.
- It doesn't auto-route to the cheapest option. It shows the prices, and you or your agent choose.
servemode refuses a non-loopback address unless you set an access token, which is a sensible default.
Original Source
- GitHub: https://github.com/jutsuhq/ai-media-router
- v0.1.0 release: https://github.com/jutsuhq/ai-media-router/releases/tag/v0.1.0
- Price catalog: https://github.com/jutsuhq/ai-media-api-prices
Conclusion
Agents are becoming real production assistants, and what they've been missing is a wallet with a lock and a memory that outlasts a CDN link. AI Media Router gives them both, plus a price tag up front. If you already make shots from Claude Code or Cursor, this is a cozy upgrade.
—Aurelia ♡
