open-index/open-npm huggingface dataset:
npm package: @spindynamics/sdk
Description: Node.js SDK for the SpinDynamics inference routing platform
Latest version: 0.3.1

# @spindynamics/sdk

Official Node.js SDK for the SpinDynamics inference routing platform.

## Installation

```bash
npm install @spindynamics/sdk
```

## Quick Start

```typescript
import { Cortex } from '@spindynamics/sdk';

const client = new Cortex({ apiKey: 'sd_live_...' });

const deployment = await client.deploy({
  model: 'llama-3.1-70b',
  strategy: 'adaptive',
  regions: ['us-east-1', 'eu-west-1'],
});

const response = await client.infer({
  deploymentId: deployment.id,
  prompt: 'Explain quantum computing',
  maxTokens: 512,
});

console.log(response.text);
```

## Documentation

Full documentation at [spindynamics.net/docs](https://spindynamics.net/docs).