Skip to main content
Every request to the Rime API requires a bearer token in the Authorization header.

Get an API key

An API key can synthesize speech against your account. Keep it on the server and treat it like a password.
  1. Sign in to the Rime dashboard.
  2. In the Rime dashboard, open API Tokens.
  3. Create a token and copy its value.

Use the token

This request authenticates with a bearer token and returns MP3 audio:
Use the same header for the HTTP, WebSocket, metadata, and utility endpoints.

CLI authentication

The rime CLI manages the key locally. Run rime login once, and the CLI stores the key at ~/.rime/rime.toml. You can also set it with the RIME_CLI_API_KEY environment variable.

On-prem authentication

The on-prem API service accepts the same Authorization: Bearer … header. You can also configure RIME_API_KEY for the deployment so callers don’t need to send the header. See the on-prem quickstart for details.

Common auth errors

If your request fails authentication, the API returns 401 Unauthorized with a short plain-text body explaining why: Always send the header as Authorization: Bearer <token> (capital B). The token alone, without Bearer, is rejected.