Install the Weights SDK

Install the Weights SDK using npm:
npm install @weights-ai/sdk

Initialize the client

import { Weights } from '@weights-ai/sdk';

const weights = new Weights({
  bearerToken: 'your-api-key-here',
});

Get your API key

If you don’t have an API key yet, sign up at weights.com to get started.

Ready to explore?

Choose an example to learn how to use the Weights API: