Deepgram Self-Hosted
Deepgram ships its inference stack as container images you run on your own NVIDIA GPUs. Audio never leaves your network; only small license-verification messages do. This skill decides whether you need that, gets you licensed, and routes to the deployment target.
Self-hosting is gated on an Enterprise agreement. Read Decide before you deploy first — a large share of "we need on-prem" requirements are actually data-residency requirements that a regional endpoint already satisfies, with none of the GPU operations.
Decide before you deploy
Read down the table and take the first row whose requirement you actually have. If none of them apply, the hosted API is the answer.
| Requirement | Answer | What you operate |
|---|---|---|
| Audio may not leave your network, or you need bare metal, an air gap, or FIPS crypto | Full self-hosted containers | GPUs, drivers, containers, models, scaling |
| Must run inside your AWS account, and you want AWS to handle provisioning and scaling | Amazon SageMaker via AWS Marketplace | A SageMaker Endpoint |
| Dedicated capacity, regional control, or compliance isolation — but not your hardware | Deepgram Dedicated — {SHORT_UID}.{REGION}.api.deepgram.com | Nothing — existing API keys work |
| Data must be processed in the EU, Australia, or India | Regional endpoint: api.eu.deepgram.com, api.au.deepgram.com, api.in.deepgram.com | Nothing — same API keys and SDKs, change the base URL only |
| None of the above | Hosted API, api.deepgram.com | Nothing |
People reach for the top row first. Most requirements are satisfied by a row further down.
The three regional endpoints serve Speech-to-Text, Text-to-Speech, Voice Agent, and Text Intelligence. Confirm the current limitations at Regional Endpoints before you promise a region to a customer.
Self-hosting is the most expensive row in engineering time. Choose it for a real network, sovereignty, or air-gap constraint — not for latency, which regional and Dedicated endpoints address without handing you a GPU fleet.
Bootstrap licensing and credentials first
Nothing runs without both of these, and they are different things people routinely conflate.
| | Self-hosted API key | Distribution credentials |
|---|---|---|
| What it is | DEEPGRAM_API_KEY — licenses running containers | A Quay username and secret — pulls container images |
| Looks like | A normal Deepgram API key secret | deepgram+6ba7b810-… plus a 64-character secret |
| Where it goes | Container environment; [license] in api.toml / engine.toml | docker login quay.io, or a Kubernetes image-pull Secret |
| Created by | Console → API Keys, or the project keys API | Console → Self-Hosted tab, or the distribution-credentials API |
Steps:
- Confirm project access. Your Console project needs a Self-Hosted tab. No tab means the project was never granted self-hosted products, or has managed access but not self-service. Both are resolved by Deepgram: contact sales or your account representative. You cannot self-serve past this.
- Create a self-hosted API key in Console. Expand its details to see which self-hosted products it may license. All self-hosted customers get API and Engine; the License Proxy must be enabled for your project by Deepgram Support.
- Create distribution credentials in the Console Self-Hosted tab. The secret is displayed once — record it immediately. Verify from the CLI:
```bash
# List existing credential sets (read-only, safe)
curl -s -H "Authorization: Token $DEEPGRAM_API_KEY" \
"https://api.deepgram.com/v1/projects/$DEEPGRAM_PROJECT_ID/self-hosted/distribution/credentials"
```
Returns 200 with a distribution_credentials array. Note the hyphen in self-hosted — selfhosted returns 404.
A 200 here does not mean your project has self-hosted access. On a project with no self-hosted entitlement the endpoint still returns 200 with an empty array rather than a 403. The Console Self-Hosted tab in step 1 is the real entitlement check; an empty list proves nothing either way.
The POST variant takes a scopes query parameter, which accepts self-hosted:products (the default, meaning all) or per-product scopes: self-hosted:product:api, :engine, :license-proxy, :dgtools, :billing, :hotpepper, :metrics-server. Only api, engine, license-proxy, and billing map to containers documented publicly; the rest are undocumented, so scope credentials to what you actually deploy. provider accepts quay.
- Log in to Quay on every deployment host:
docker login quay.io(orpodman login). - Get the model files. Deepgram delivers encrypted
.dgmodel files as download links from your account representative (.dgv2files for FIPS images; the two formats are not interchangeable). They are not in any public repository and are not on Quay. See Gated by a human. - Verify runtime licensing. Containers hold an outbound HTTPS connection to
license.deepgram.com:443for licensing and usage reporting. That connection uses mTLS, so probing it withcurlor an SSL scanner produces spurious errors — that is expected, not a fault. A401in container logs means the API key lacks self-hosted permissions; a timeout means your firewall is blocking the egress.
To rotate or revoke credentials, use the four endpoints documented in the api skill's references/self-hosted.md.
What actually runs
| Component | Image | Role | Required |
|---|---|---|---|
| API | quay.io/deepgram/self-hosted-api | Accepts requests, serves /v1/listen, /v1/speak, /v2/listen, /v2/speak, /v1/agent/converse; delegates inference | Yes |
| Engine | quay.io/deepgram/self-hosted-engine | Runs inference on the GPU; loads .dg models (.dgv2 on the -fips image) | Yes |
| License Proxy | quay.io/deepgram/self-hosted-license-proxy | Caches licensing so a license-server outage does not stop inference; can be the only container with egress | Recommended in production; access granted by Deepgram |
| Billing | quay.io/deepgram/self-hosted-billing | Validates a license file locally and journals usage — air-gapped deployments only | Air gap only |
Images are tagged by release date, for example release-261001, the tag carried across the Docker, Podman, and Helm templates and the Helm chart's appVersion. Check the templates for the current one. Pin an explicit tag; never rely on a floating one.
Minimum viable deployment: one API container plus one Engine container on one GPU host, with api.toml, engine.toml, and at least one .dg model. The License Proxy and Billing containers are additive.
Default ports, from the template TOML files: API 8080; Engine 8080 for API-to-Engine traffic and 9991 for its metrics server; License Proxy 8443 for license verification and 8080 for its /v1/status health route.
Deepgram does not terminate TLS for you. Put your own proxy (NGINX, HAProxy, Apache) in front of the API container.
Pick a deployment target
| Target | Use when | Reference |
|---|---|---|
| Docker / Podman Compose | Single host, a proof of concept, bare metal, or the simplest air gap | docker-podman.md |
| Kubernetes + Helm | Production, autoscaling, multi-node, air-gapped or FIPS deployments, Voice Agent | kubernetes.md |
| Amazon SageMaker | AWS-only, and you want AWS to provision and scale | sagemaker.md |
| — | Sizing hosts, choosing GPUs, drivers, OS, firewall rules | hardware.md |