Skip to main content
The Sully SDKs provide authenticated clients for note generation and transcription. Sully M1 uses the OpenAI SDK instead.

Install

Create a client

Request methods

The clients add the Sully authentication headers and parse successful JSON responses. The public guides use these methods: TypeScript returns parsed JSON. Python requires cast_to; use httpx.Response when you want to read the response with .json():
For multipart requests, pass a FormData body in TypeScript. In Python, pass form fields with body, the upload with files, and a multipart content type:
Creation requests use a five-minute client timeout because note generation and transcription setup can exceed the SDK’s one-minute default. Automatic retries are disabled because repeating either POST can create duplicate billable work.

Create a streaming token

Create a short-lived token before opening a browser WebSocket connection:
The SDK authenticates the token request but does not open the WebSocket or capture audio. See streaming transcription for the connection flow.

Errors

Non-success responses raise typed SDK errors: