watsonx-ai-provider is an npm package that provides watsonx.ai language model support for Vercel's AI SDK.
AI SDK is a framework for building AI-powered applications quickly. It can be used to create custom chat apps, as well as agents and AI integrations. It has ui hooks for managing front end state as well as abstractions for working with AI models. Our library has model support for streaming, tool calling, image input, and text embeddings.
It also allows you to use watsonx.ai models in other applications that integrate with AI SDK such as Opencode.
package/— the npm package. Seepackage/README.mdfor installation and usage.examples/cli— CLI chatbot exampleexamples/nextjs— Next.js chatbot example
- Package README — full usage docs (installation, examples, providerOptions, models, error handling)
- Migration guide — v1 → v2 upgrade notes
- Contributing — PR flow, releasing, and Trusted Publishing setup