> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cartesia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Client Libraries

> Use the official JavaScript/TypeScript and Python SDKs to call the Cartesia API.

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

<CardGroup cols={2}>
  <Card title="JavaScript / TypeScript" icon="github" href="https://github.com/cartesia-ai/cartesia-js">
    Official JS/TS SDK for Node.js and browser applications.
  </Card>

  <Card title="Python" icon="github" href="https://github.com/cartesia-ai/cartesia-python">
    Official Python SDK for servers, scripts, and notebooks.
  </Card>
</CardGroup>

## Install

<Tabs>
  <Tab title="JavaScript / TypeScript">
    ```sh theme={null}
    npm install @cartesia/cartesia-js
    ```
  </Tab>

  <Tab title="Python">
    ```sh theme={null}
    # install from PyPI
    pip install --pre cartesia

    # for websocket support
    pip install 'cartesia[websockets]'
    ```
  </Tab>
</Tabs>

## Start here

<CardGroup cols={1}>
  <Card title="Realtime Text to Speech Quickstart" href="/get-started/realtime-text-to-speech-quickstart">
    Stream text to Cartesia over a WebSocket and receive audio in real time.
  </Card>
</CardGroup>
