All requests to the Rime API are authenticated with a bearer token in theDocumentation Index
Fetch the complete documentation index at: https://docs.rime.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header.
Get an API key
- Sign in at app.rime.ai.
- Open the API Tokens page.
- Create a new token and copy the value. Treat it like a password — anyone with the token can synthesize speech against your account.
Use the token
Set theAuthorization header on every request:
CLI authentication
Therime CLI manages your key for you. Run rime login once and the CLI stores it at ~/.rime/rime.toml. You can also set it explicitly via the RIME_CLI_API_KEY environment variable.
On-prem authentication
On-prem deployments accept the sameAuthorization: Bearer … header. You can also pre-configure a key at the deployment level using the RIME_API_KEY environment variable, so callers don’t need to send the header at all. See the on-prem quickstart for details.
Common auth errors
If your request fails authentication, the API returns401 Unauthorized with a short plain-text body explaining why:
| Status | Body | Cause |
|---|---|---|
401 | missing headers | No Authorization header was sent. |
401 | invalid api key | The token is not recognized, or it was sent without the Bearer scheme. |
Authorization: Bearer <token> (capital B). The token alone, without Bearer, is rejected.

