Skip to main content
The official Python SDK wraps the transcription API and streaming API with typed clients, structured exceptions, and automatic retries.

Installation

Requires Python 3.10 or later.

Quickstart

1

Create an API key

Sign in to the Typeless Console and create an API key. The key is shown only once at creation — store it somewhere safe.
2

Set your API key

The SDK reads the key from the TYPELESS_API_KEY environment variable when you do not pass one explicitly.
3

Transcribe an audio file

Send a wav, ogg, or webm file (up to 50 MB / 5 minutes):
The model parameter is required on every request. Available tiers: typeless-1.0-lite, typeless-1.0-pro, and typeless-1.0-max.
transcribe() accepts a file path, in-memory bytes, or a readable binary file object:

Async client

Streaming

Use stream() for real-time raw PCM16 audio such as microphone capture. For offline files, use transcribe() instead. See the streaming guide for the underlying protocol.
The SDK sends keep-alive messages automatically while the connection is open.

Error handling

Every API error maps to a typed exception. See Errors for the full list of error codes.

Configuration

Reuse a single client across requests so the HTTP connection pool can reuse TCP connections, and close it when done:

Changelog

0.1.0

  • HTTP file transcription via TypelessClient.transcribe().
  • WebSocket real-time PCM16 streaming via stream() with automatic keep-alive.
  • AsyncTypelessClient mirroring the synchronous API.
  • Automatic retry with exponential backoff for transient HTTP failures.
  • Structured exception types mapped from API error codes.
  • Full type hints and py.typed marker (PEP 561).

Support

Email hello@typeless.com and include the request_id from any failed response.