ModelFusion
FreeA TypeScript library for building apps with LLMs and other ML models (speech-to-text, text-to-speech, image generation).
About ModelFusion
ModelFusion is an abstraction layer for integrating AI models into JavaScript and TypeScript applications, unifying the API for common operations such as text streaming, structured object generation, and tool usage. It provides production-ready features including observability hooks, logging, automatic retries, throttling, and error handling. Multi-modal support spans text generation, image generation, vision, text-to-speech, speech-to-text, and embedding models. ModelFusion is vendor-neutral, enforces TypeScript type inference and validation, and is designed for serverless and tree-shakeable deployments. Note: ModelFusion has joined Vercel and is being integrated into the Vercel AI SDK; the repository is now archived.
Key Features
Pros & Cons
- Vendor-neutral: works with multiple model providers without lock-in
- Multi-modal: supports text, image, audio, and embeddings in one library
- TypeScript native: full type inference and validation for model outputs
- Production observability: built-in logging and observer hooks
- Robust: automatic retries and throttling for reliability
- Lightweight: tree-shakeable and minimal dependencies for serverless
- Repository archived: no longer actively maintained as standalone; being merged into Vercel AI SDK
- Limited to TypeScript/JavaScript ecosystems
- Requires external API keys or local setup for most models (no built-in model hosting)