Select The EU Region for EU Data Residency

In this guide, we’ll show you how to configure your code to utilise the EU endpoint when interacting directly with the API, as well as across our SDKs.

The EU endpoint is available for Async STT and LeMUR. Streaming STT is not currently supported.

Get Started

Before we begin, make sure you have an AssemblyAI account and an API key. You can sign up for a free account and get your API key from your dashboard.

Python (Requests)

The only difference here is adding the eu. subdomain to the base URL. Everything else in your request code stays the same:

1# US endpoint (default)
2url = "https://api.assemblyai.com"
3
4# EU endpoint - just change the base URL
5url = "https://api.eu.assemblyai.com"

Python SDK

To set the EU endpoint as the base URL when using the Python SDK, add the following line of code before setting the Transcriber object:

1import assemblyai as aai
2
3aai.settings.base_url = "https://api.eu.assemblyai.com" // Set the base URL to the EU endpoint

Javascript (Axios)

Similar to the requests library for Python, the only difference here is adding the eu. subdomain to the base URL as follows:

1// US endpoint (default)
2const url = 'https://api.assemblyai.com'
3
4// EU endpoint - just change the base URL
5const url = 'https://api.eu.assemblyai.com'

Javascript SDK

To set the EU endpoint as the base URL when using the Javascript SDK, set the baseUrl parameter in your AssemblyAI client as follows:

1import { AssemblyAI } from "assemblyai";
2
3const client = new AssemblyAI({
4 apiKey: process.env.ASSEMBLYAI_API_KEY,
5 baseUrl: "https://api.eu.assemblyai.com" // Set the baseUrl to the EU endpoint
6});

If you encounter any issues or have any questions, reach out to our Support team.