Install
openclaw skills install @zenlee123/routerbase-media-generationBuild 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.
openclaw skills install @zenlee123/routerbase-media-generationUse 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.
POST https://routerbase.com/v1/images/generationsPOST https://routerbase.com/v1/videos/generationsPOST https://routerbase.com/v1/audio/speech or POST https://routerbase.com/v1/audio/generationscurl -X POST https://routerbase.com/v1/images/generations \
-H "Authorization: Bearer $ROUTERBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/imagen-4",
"prompt": "A clean product-style illustration of an AI model router dashboard",
"aspect_ratio": "1:1",
"resolution": "1K"
}'
{
"model": "blackforestlabs/flux-2-pro-i2i",
"prompt": "Make the source image look like a polished watercolor editorial illustration",
"image_urls": ["https://example.com/source.jpg"]
}
const create = await fetch("https://routerbase.com/v1/videos/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ROUTERBASE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "google/veo-3-1-fast",
prompt: "A 5-second shot of abstract network routes lighting up on a dark map",
}),
});
const task = await create.json();
// Poll GET /v1/videos/generations/{id} until the task reaches a terminal status.
Use a callback URL when the application already has a durable webhook receiver. Otherwise, poll with backoff and a clear timeout.
aspect_ratio, resolution, quality, style, negative_prompt, and image_urls against the selected model's supported fields.