Skip to main content
Choose the endpoint that best fits your application’s requirements — whether that’s using the default endpoint to route to the nearest data center, or ensuring your audio data stays within a given data residency zone such as EU or US.

Endpoints

EndpointURLRegion
Global (default)https://sync.assemblyai.com/transcribeNearest region
US data residencyhttps://sync.us.assemblyai.com/transcribeus-west-2, us-east-1
EU data residencyhttps://sync.eu.assemblyai.com/transcribeeu-north-1

Which endpoint should I use?

  • Default? Use the Global endpoint (sync.assemblyai.com). It will route your request to the region with the fastest response time for you.
  • Need US data residency? Use the US endpoint (sync.us.assemblyai.com). Your audio and transcription data will remain within the US.
  • Need EU data residency? Use the EU endpoint (sync.eu.assemblyai.com). Your audio and transcription data will remain within the EU.

How to use it

Replace the base URL in your request with the appropriate endpoint. The request format, headers, and parameters are identical for all endpoints.
Global (default)
import requests

with open("sample.wav", "rb") as f:
    audio = f.read()

response = requests.post(
    "https://sync.assemblyai.com/transcribe",
    headers={
        "Authorization": "<YOUR_API_KEY>",
        "X-AAI-Model": "u3-sync-pro",
    },
    files={
        "audio": ("sample.wav", audio, "audio/wav"),
    },
    timeout=60,
)
response.raise_for_status()
result = response.json()
print(result["text"])
US data residency
import requests

with open("sample.wav", "rb") as f:
    audio = f.read()

response = requests.post(
    "https://sync.us.assemblyai.com/transcribe",
    headers={
        "Authorization": "<YOUR_API_KEY>",
        "X-AAI-Model": "u3-sync-pro",
    },
    files={
        "audio": ("sample.wav", audio, "audio/wav"),
    },
    timeout=60,
)
response.raise_for_status()
result = response.json()
print(result["text"])
EU data residency
import requests

with open("sample.wav", "rb") as f:
    audio = f.read()

response = requests.post(
    "https://sync.eu.assemblyai.com/transcribe",
    headers={
        "Authorization": "<YOUR_API_KEY>",
        "X-AAI-Model": "u3-sync-pro",
    },
    files={
        "audio": ("sample.wav", audio, "audio/wav"),
    },
    timeout=60,
)
response.raise_for_status()
result = response.json()
print(result["text"])