Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Imported from yangsonhung/awesome-agent-skills (skills/zh-cn/routerbase-media-generation-cn/SKILL.md). Install upstream with npx skills add yangsonhung/awesome-agent-skills --skill routerbase-media-generation-cn. Copyright stays with the author.
RouterBase 媒体生成
Overview
使用 routerbase 通过统一 API 表面构建图片、音频和视频生成流程。本技能帮助选择媒体端点、设计提示词和参数、处理同步或异步响应、管理生成资产,并补充安全检查。
何时使用
当用户提出以下需求时使用本技能:
通过 RouterBase 生成图片、音频、语音或视频
为某个生成工作流选择合适的媒体端点和供应商
处理重试、轮询、失败任务、输出 URL 和资产保留
为生成媒体设计安全提示词、审核和存储规则
编写媒体生成请求的客户端示例
不要使用
以下场景不应使用本技能:
未经同意且没有保留策略就创建或存储用户私密媒体
在平台未说明的情况下假设生成资产 URL 永久有效
面向外部发布的媒体跳过审核、版权或品牌安全检查
使用说明
明确目标媒体类型、输出格式、分辨率或时长、延迟容忍度和存储位置。
写代码前先确定端点模式和供应商假设。
API Key 和用户资产路径必须使用占位符。
对异步生成补充重试、轮询、超时和失败状态处理。
增加安全清单,覆盖提示词约束、私密数据、内容权利和生成资产保留。
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Installed into a catalogue, chosen by a router
Install routerbase-media-generation-cn and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.