Skip to main content
Use the official Cartesia SDKs to call TTS, STT, and voice APIs from JavaScript/TypeScript or Python.

JavaScript / TypeScript

Official JS/TS SDK for Node.js and browser applications.

Python

Official Python SDK for servers, scripts, and notebooks.

Install

npm install @cartesia/cartesia-js

Start here

Realtime Text-to-Speech Quickstart

Stream text to Cartesia over a WebSocket and receive audio in real time.

Examples

Simple code snippets demonstrating how to use each SDK method.