Node.js SDK

You can inference and tune foundation models in IBM watsonx.ai programmatically by using the watsonx.ai Node.js package.

See IBM watsonx.ai Node.js SDK for the package documentation.

Using the Node.js package from your IDE

The @ibm-cloud/watsonx-ai npm package is available from the registry link: https://www.npmjs.com/package/@ibm-cloud/watsonx-ai.

You can install the watsonx-ai package in your integrated development environment by using the following command:

npm install @ibm-cloud/watsonx-ai

Prerequisites

To get started with the watsonx.ai Node.js package, you first need credentials and a project ID or deployment ID. For more information, see the following topics:

Parent topic: Coding generative AI solutions