The vendors handle the work of keeping the models trained and running, all for a fee. Some of the most prominent JavaScript libraries are these from OpenAI, Google Gemini, Vercel, IBM and Amazon.