A JavaScript client with TypeScript types definitions for gradient
npm install --save @gradientai/nodejs-sdk
Refer to SDK quickstart page for more examples. The gradient-sdk-typescript-example repository has a complete working example!
import { Gradient } from "@gradientai/nodejs-sdk";
const gradient = new Gradient({});
const models = await gradient.listModels();
See the complete list of endpoints in the API reference.
This package requires NodeJS at least in version 18.
To report issues with the SDK, it is possible to submit an issue in the package repo.