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

# Cerebrium

> Deploy Rime TTS on Cerebrium's serverless infrastructure.

export const IntegrationHeader = ({partnerLogo, partnerAlt = "Partner logo", rimeLogo = "/images/rime_logo_new.svg", rimeAlt = "Rime logo", rimeHeight = "40px", partnerHeight = "40px"}) => <div style={{
  width: "100%",
  display: "flex",
  flexDirection: "row",
  alignItems: "center",
  justifyContent: "center",
  gap: "12px",
  flexWrap: "nowrap",
  marginBottom: "24px"
}}>
    <img src={rimeLogo} style={{
  height: rimeHeight,
  display: "inline-block"
}} alt={rimeAlt} />
    <span style={{
  fontSize: "24px",
  color: "#666",
  display: "inline-block"
}}>
      +
    </span>
    <img src={partnerLogo} style={{
  height: partnerHeight,
  display: "inline-block"
}} alt={partnerAlt} />
  </div>;

<IntegrationHeader partnerLogo="/images/cerebrium.png" partnerAlt="Cerebrium logo" />

Deploy Rime TTS on [Cerebrium](https://www.cerebrium.ai/) with a Rime API key and Cerebrium CLI 1.39.0 or later. The deployment exposes REST and WebSocket interfaces and scales according to the concurrency and replica settings in `cerebrium.toml`.

### Get started

1. Create a Rime account and obtain your API key.
2. Create a secret in Cerebrium named `RIME_API_KEY` with your Rime key.
3. Initialize your app with the Cerebrium CLI (v1.39.0 or higher):

```bash theme={null}
cerebrium init rime
```

4. Define your deployment using a `cerebrium.toml` file with the `[cerebrium.runtime.rime]` configuration. Specify your compute resources (e.g., AMPERE\_A10 GPU, memory, CPU), scaling parameters, and region (e.g., `us-east-1`).
   See [Cerebrium's documentation](https://docs.cerebrium.ai/cerebrium/partner-services/rime#rime) for full implementation details.

5. Deploy with:

```bash theme={null}
cerebrium deploy
```

Once deployed, you can send real-time TTS inference requests using either:

* REST API, with an endpoint like:

```bash theme={null}
https://api.cortex.cerebrium.ai/v4/<project-id>/rime
```

Include your RIME API key in the Authorization header and specify your desired speaker, model, and text.

* WebSocket interface for streaming audio

The Cerebrium container authenticates to the Rime API with the `RIME_API_KEY` secret, and Cerebrium scales your containers automatically based on the concurrency and replica settings defined in the TOML file.

For full setup instructions, see the [Cerebrium documentation](https://docs.cerebrium.ai/cerebrium/partner-services/rime#rime).
