Skip to main content
This guide covers how to use the Relay API with TypeScript using the native fetch API.
An official TypeScript SDK may be available in the future. For now, use fetch or your preferred HTTP client.

Setup

Type definitions

Client class

Usage examples

Create a dataset

Upload audio (Node.js)

Upload audio (Browser)

Run inference

Error handling

Polling helper