> ## Documentation Index
> Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-hosted

> Run AssemblyAI speech-to-text in your own infrastructure, on Amazon SageMaker, your own GPU servers, or serverless GPUs on Modal.

Run AssemblyAI speech-to-text in infrastructure you control, so audio and transcripts aren't sent to AssemblyAI.

> [card] [Amazon SageMaker](https://assemblyai.com/docs/self-hosted/sagemaker/streaming.md)
>
> Deploy Real-time STT from AWS Marketplace to an endpoint in your own AWS account, billed on your AWS bill.

> [card] [Docker](https://assemblyai.com/docs/self-hosted/docker/streaming.md)
>
> Run Real-time STT, Sync STT and speaker diarization on your own GPU servers, in any cloud or on premises.

> [card] [Modal](https://assemblyai.com/docs/self-hosted/modal/streaming.md)
>
> Run the Real-time STT and Sync STT stacks on serverless GPUs on Modal, for evaluation.

## What you can self-host

| | Amazon SageMaker | Docker | Modal |
| - | - | - | - |
| Real-time STT | [Real-time STT on Amazon SageMaker](https://assemblyai.com/docs/self-hosted/sagemaker/streaming.md) | [Real-time STT with Docker](https://assemblyai.com/docs/self-hosted/docker/streaming.md) | [Real-time STT on Modal](https://assemblyai.com/docs/self-hosted/modal/streaming.md) |
| Sync STT | Coming soon | [Sync STT with Docker](https://assemblyai.com/docs/self-hosted/docker/sync.md) | [Sync STT on Modal](https://assemblyai.com/docs/self-hosted/modal/sync.md) |
| Speaker diarization | Coming soon | [Speaker diarization with Docker](https://assemblyai.com/docs/self-hosted/docker/diarization.md) | Not available |

## Compare deployment options

| | Hosted API | Amazon SageMaker | Docker | Modal |
| - | - | - | - | - |
| Where it runs | AssemblyAI's cloud | A SageMaker endpoint in your AWS account | Your own GPU servers, in any cloud or on premises | Serverless GPUs in your Modal workspace, on Modal's multi-tenant cloud |
| Who operates it | AssemblyAI | AWS operates the instances; you choose their type and number | You | Modal runs the GPUs; you deploy and configure the app |
| Audio sent to AssemblyAI | Yes | No | No | No; it's processed on Modal's cloud |
| Models | Every [model](https://assemblyai.com/docs/getting-started/models.md) | AssemblyAI-STT-3.7-Realtime-Agent and Universal-3.6 Pro | Listed in the [repository README](https://github.com/AssemblyAI/streaming-self-hosting-stack#readme) | Listed in the [repository README](https://github.com/AssemblyAI/streaming-self-hosting-stack#readme) |
| Authentication | AssemblyAI API key | AWS IAM (SigV4) | Your own network controls | Modal proxy-auth token |
| Billing | AssemblyAI account | Your AWS bill, through AWS Marketplace | Commercial agreement with AssemblyAI | Commercial agreement with AssemblyAI, plus your Modal bill |
| Capacity | Scales automatically | Fixed per instance; you add instances | Fixed per GPU; you add GPUs | Scales on concurrent sessions |

SageMaker is a good fit when audio must stay inside your AWS account, when you want to buy through AWS Marketplace, or when you already run inference on SageMaker. Docker fits when you want to run on your own GPU servers, in any cloud or on premises. Modal is suited to evaluation; see [Real-time STT on Modal](https://assemblyai.com/docs/self-hosted/modal/streaming.md) and [Sync STT on Modal](https://assemblyai.com/docs/self-hosted/modal/sync.md) for its limits. Use the hosted API when you want AssemblyAI to manage capacity, or need features that [the SageMaker endpoint doesn't include](https://assemblyai.com/docs/self-hosted/sagemaker/streaming.md#whats-not-available), such as PII redaction and speaker diarization.
