open-index/open-npm huggingface dataset:
npm package: @opennote-ed/video-client
Description: Opennote TypeScript SDK
Author: opennote-inc
Latest version: 1.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Opennote Typescript SDK

This is the Typescript SDK for the Opennote Video API. [Read the documentation here and see more examples](https://docs.opennote.com/video-api/introduction).

## Installation

```bash
npm/bun/pnpm/yarn install opennote
```

## Usage

```typescript
import { OpennoteVideoClient } from "@opennote-ed/video-client";

const client = new OpennoteVideoClient({ apiKey: "your_api_key" });

// Create a video
const video = await client.video.create({
    sections: 5,
    model: "feynman2",
    messages: [{ role: "user", content: "Hello, world!" }],
});

// Get the status of a video
const status = await client.video.status(video.videoId);
```