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:
Always send the header as
Authorization: Bearer <token> (capital B). The token alone, without Bearer, is rejected.

