Quick Start
extra-small AI SDK for Browser, Node.js, Deno, Bun or Edge Runtime.
What is xsAI?
xsAI is a series of utils to help you use OpenAI or OpenAI-compatible API.
Why use the xsAI?
xsAI has a similar interface to the Vercel AI SDK, but smaller.
This makes it ideal for a variety of scenarios that require smaller bundle size, such as web applications, cli running through npx, and so on.
So how small is xsAI?
Without further ado, let's look at the results from https://pkg-size.dev:
Package size
xsAI reduces the installation size 100x and the bundle size 10x.
And it could be smaller!
If you only need basic text generation, you can just install the @xsai/generate-text
package:
Package size
Join our Community
If you have questions about anything related to xsAI,
you're always welcome to ask our community on GitHub Discussions.
Edit on GitHub
Last updated on