@miragari/ai-media-router-client
v0.2.2
Published
Client runtime for multi-provider AI media generation, async jobs, batching, profiles, and normalized outputs.
Maintainers
Readme
@miragari/ai-media-router-client
Stateless client runtime for routing media generation requests across provider plugins. It handles request normalization, profiles, async polling, batch splitting, and result normalization without bundling any provider adapters.
Install
npm install @miragari/ai-media-router-clientWhat this package includes
- request normalization for image, video, audio, and 3D shapes
- provider registry and runtime context creation
- async polling, wait helpers, and cancellation flow
- image batch splitting when providers cannot create multiple assets natively
- profile and defaults support for repeatable product workflows
Typical use case
Use @miragari/ai-media-router-client when you want the router runtime without the built-in
providers. If you want the batteries-included entrypoint, prefer
@miragari/ai-media-router.
Example
import { MediaRouter } from "@miragari/ai-media-router-client"