Skip to main content
This guide covers how to use the Relay API with Python using the requests library.
An official Python SDK may be available in the future. For now, use requests or httpx for HTTP requests.

Installation

Setup

Python

Helper class

For convenience, create a simple client class:
Python

Usage examples

Create a dataset

Python

Upload audio

Python

Add annotations and train

Python

Run inference

Python

Error handling

Python

Async with httpx

For async applications, use httpx:
Python