Agent skill · software engineering · aiskillstore

routerbase-media-generation

Build image, video, and audio generation workflows on RouterBase. Use when calling RouterBase image, video, audio, speech, or media APIs; selecting media model IDs; handling synchronous image responses; polling asynchronous video or audio tasks; using callback URLs; storing generated media before retention expiry; or migrating OpenAI-compatible image generation calls to RouterBase.

Why this skill is useful

Adds detailed executable scripts and workflows for integrating with RouterBase media APIs that aren't covered in public documentation.

What it needs

Requires routerbase installed locally. Requires routerbase account access. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

RouterBase Media Generation Overview Use routerbase to access image, video, and audio generation models through one API. This skill helps agents choose the right media endpoint, handle sync versus async responses, and return production-safe integration guidance. Read references/routerbase-media.md when exact endpoints, parameters, media retention notes, or example requests are needed. Media Workflow 1. Determine the modality: image, image edit/upscale, video, text-to-speech, music, or other audio. 2. Query or verify the current model ID for that modality. Prefer the live catalog when credentials are available. 3. Pick the endpoint: Image: POST https://routerbase.com/v1/images/generations Video: POST https://routerbase.com/v1/videos/generations Speech/audio: POST https://routerbase.com/v1/audio/speech or POST https://routerbase.com/v1/audio/generations 4. Decide sync behavior: Image generation is synchronous in RouterBase docs. Video and audio generation are asynchronous; poll task details by ID or supply a callback URL. 5. Download and persist generated files on the user's side. RouterBase docs describe generated image/video media retention as time-limited. 6. Add user-facing progress and retry handling for async media jobs. Image Example Image-to-Image Example Async Video Or Audio Pattern Use a callback URL when the application already has a durable webhook receiver. Otherwise, poll with backoff and a clear timeout. Production Guardrails Keep media prompts and input image URLs appropriate for the user's rights and product policy. Store generated media before retention expiry. Validate aspectratio, resolution, quality, style, negativeprompt, and imageurls against the selected model's supported fields. Treat model-specific parameters as model-dependent; do not assume every image model honors every option. For async tasks, persist the task ID, request payload hash, created time, status, result URLs, and error details. …

How to use it

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

@skills aiskillstore/routerbase-media-generation

View the source on GitHub

Browse the @skills marketplace