Architecture

Published latency figures
- Coda: This page documents the current image and service-pair setup. Rime has not published Coda on-prem performance numbers.
- Mist v2: Rime measured median latency of 175ms with randomly generated sentences between 40 and 50 characters on A10Gs and similar GPUs.
- Arcana: See performance tuning.
Prerequisites
Hardware requirements
- GPU
- For Mist
- NVIDIA T4, L4, A10, or higher
- For Coda
- Confirm GPU requirements with Rime before provisioning
- For Arcana
- NVIDIA A100, H100 MIG
3g.40gb, or higher
- NVIDIA A100, H100 MIG
- For Mist
- Storage
- 50 GB storage
- CPU
- 8 vCPUs
- Memory requirements
- 32 GiB
Software requirements
- Supported Linux Distributions
- Debian 12 (
bookworm), x86_64 - Ubuntu Server 24.04 (
noble), x86_64
- Debian 12 (
- NVIDIA drivers
- Minimum:
525.60.13 - Recommended:
570.133.20or higher
- Minimum:
- Docker
- NVIDIA Container Toolkit
Installations
NVIDIA drivers
Follow https://www.nvidia.com/en-us/drivers to install the latest NVIDIA drivers, or use the following instructions on Debian-based systems:NVIDIA Driver Installation (Debian-based)
Docker
Follow https://docs.docker.com/engine/install to install Docker on your system. Optionally, add the current user to thedocker group for convenience: https://docs.docker.com/engine/install/linux-postinstall.
The code snippets below assume that you can run docker as the current login.
NVIDIA Container Toolkit
Follow https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html to install the NVIDIA Container Toolkit. Follow both the Installation and the Configuration sections.Verification
To verify that you have all the prerequisites installed, run the following command:Verify Prerequisites
Firewall requirements
The Rime API service listens on port 8000 for HTTP, port 8002 for binary WebSockets, and port 8003 for JSON WebSockets. Allow the following outbound traffic in your firewall rules:https://optimize.rime.ai/usage: registers on-prem usage with Rime’s usage service.https://optimize.rime.ai/license: verifies that your on-prem license is active.us-docker.pkg.devon port 443: container image registry.
API and registry credentials
Generate an API key
In the Rime dashboard, create an API key on the API Tokens page. Rime supplies the Artifact Registry key and license access separately.Deployment
Select the model and API images, configure the service pair, then start it with Docker Compose.Artifact Registry login
Use the Artifact Registry key provided by Rime:Log in to Artifact Registry
Container images
Image tags
Substitute that tag for<tag> in the image references below, and update all containers together when you upgrade.
TTS service
Arcana
The August 15 Arcana cutoff applies to the cloud API. The Arcana images below remain available for on-prem deployments.
us-docker.pkg.dev/rime-labs/arcana/v2/<language>:<tag>.
- The supported languages are:
en,es,fr,de,ar,hi,si.
Arcana v3 (multilingual)
The Arcana v3 images can be found atus-docker.pkg.dev/rime-labs/arcana/v3/ennea:<tag>.
- The supported languages are:
en,es,fr,pt,de,ja,si,he.
us-docker.pkg.dev/rime-labs/engine/arcana:<tag>us-docker.pkg.dev/rime-labs/package/arcana/<language>:<tag>
Coda (multilingual)
The Coda v1 images can be found atus-docker.pkg.dev/rime-labs/coda/v1/coda:<tag>.
- The supported languages are:
en,es,fr,pt,de,ja,ar.
Hindi is available through the cloud Coda API but is not included in the current
20260801 on-prem image.Mist v3 (multilingual)
The Mist v3 images can be found atus-docker.pkg.dev/rime-labs/mist/v3/omni:<tag>
- The supported languages are:
de,en,es,fr.
API service
us-docker.pkg.dev/rime-labs/api/service:<tag>
YYYYMMDD tag as the model images.
Docker Compose configuration
Create acompose.yml file that defines the services and their configurations:
compose.yml
When running on Kubernetes, ensure thatMODEL_URLpoints tohttp://0.0.0.0:8080/invocationsinstead of the Docker Compose service name.
Multi-model backend
If you want to serve multiple Arcana languages via a single API instance, you can create acompose.yml like the following:
compose.yml
ARCANA_{LANG}_MODEL_URL environment variable must point to the container running the Arcana image for that language,
but you should still point MODEL_URL to a default model container. The model environment variables currently supported are:
Authentication configuration
By default, callers must pass their Rime API key in every request via theAuthorization: Bearer <key> header. Two additional environment variables let you configure authentication at the deployment level instead.
Pre-configuring the API key (RIME_API_KEY)
If you set RIME_API_KEY, the API service will use it to authenticate with the Rime license server automatically, and callers do not need to include an API key in their requests.
You can supply it as an environment variable:
compose.yml
/secrets/rime_api_key inside the container:
compose.yml
Authorization header.
Alternate API key header (API_KEY_HEADER)
On platforms that intercept the Authorization header, set API_KEY_HEADER to the name of an alternate header that callers will use to pass their Rime API key:
compose.yml
Platform API key (PLATFORM_API_KEY)
On platforms that require authenticated inter-container requests, set PLATFORM_API_KEY so the API service can reach the model backend. You can also mount it as a secret at /secrets/platform_api_key:
compose.yml
Start Docker Compose
Start Docker Compose
Allow approximately five minutes for model warm-up before sending the first synthesis request.
Verify health
Health check
apiStatus: "ok", licenseStatus: "valid", and modelReachable: true:
AWS video walkthrough
Requests and response formats
HTTP requests
Request:Request example
Response format
result.txt
Receiving a response in MP3 format
Request:Request example
result.mp3
Receiving a response in PCM (raw) format
Request:Request example
result.pcm
WebSocket endpoints
JSON websockets
The API service serves the JSON WebSocket endpoint forcoda, arcana, and mist models on port 8003. For example, ws://localhost:8003 is equivalent to Rime’s cloud JSON WebSocket API.
See the Coda JSON WebSocket docs, Arcana JSON WebSocket docs, and Mist JSON WebSocket docs depending
on which model backend you have configured.
Non-JSON websockets
The API service serves the non-JSON WebSocket endpoint on port8002. For example, ws://localhost:8002 is equivalent to Rime’s cloud WebSocket API.
Deprecated Mist endpoint (port 8001)
The API service also serves a deprecated WebSocket endpoint on port8001. It is compatible only with the Mist model family. Use the current WebSocket endpoints for new integrations.
