RouterBase 媒体生成
Use routerbase when an agent workflow needs to generate or transform media through a shared API gateway. This skill focuses on implementation planning for image, audio, speech, and video generation tasks: selecting the right endpoint or model family, shaping prompts and metadata, handling asynchronous jobs, storing returned assets, and keeping generated files traceable without exposing private user data.
Begin by classifying the requested media type, expected output format, size constraints, safety requirements, and whether the result is synchronous or requires polling. Then define request schemas, retry limits, idempotency behavior, and a storage convention for generated files. Agents should keep prompt text, generated URLs, and binary assets out of permanent logs unless the user explicitly asks to preserve them. Before release, test at least one successful generation path, one provider error, one timeout, and one invalid input case so the workflow can explain what failed and whether a retry is safe.
Installation
OpenClaw
clawhub install routerbase-media-generation
Source
- routerbase