API Directory › 🤖 AI & Machine Learning › AssemblyAI
API KeyHTTPSCORS

AssemblyAI API

Speech-to-text plus audio intelligence (summaries, topics, sentiment).

Auth
API Key
HTTPS
Yes
CORS
Yes
Open AssemblyAI docs ↗

What it does

AssemblyAI is a speech-to-text API with a deep audio intelligence layer: transcription plus speaker diarization, sentiment analysis, topic detection, chapter summaries, PII redaction, content moderation and an LLM-powered ‘LeMUR’ endpoint for asking questions over a transcript.

Base URL

https://api.assemblyai.com/v2

Authentication

Sign up at assemblyai.com and copy the key from the dashboard. Send it as the raw Authorization: YOUR_KEY header (no Bearer prefix). New accounts get free credit; after that it is pay-as-you-go per hour of audio.

Code examples

curl (submit)
curl https://api.assemblyai.com/v2/transcript \
  -H "Authorization: $ASSEMBLYAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"audio_url":"https://example.com/call.mp3","speaker_labels":true}'
Python
import assemblyai as aai

aai.settings.api_key = KEY
transcript = aai.Transcriber().transcribe("https://example.com/call.mp3")
print(transcript.text)

Rate limits & quotas

Transcription is asynchronous: you POST a job, then poll GET /v2/transcript/{id} until status is completed (or pass a webhook_url). Default concurrency is around 200 simultaneous jobs on pay-as-you-go; there is no monthly cap beyond your balance. Files upload to /v2/upload first if they are not already on a public URL.

Key response fields

idJob id for polling
statusqueued, processing, completed or error
textFull transcript once completed
words[]Per-word text, timestamps and confidence
utterances[]Speaker-labelled segments when speaker_labels is on

Common errors

401Missing or invalid key (remember: no Bearer prefix).
400Bad audio_url or unsupported format.
status = errorJob-level failure — read the error field in the transcript object.
429Concurrency limit exceeded.

When to use it (and alternatives)

Choose AssemblyAI when you want transcription and analysis (summaries, sentiment, redaction, Q&A) from one vendor. For lowest latency and cost on plain transcription compare Deepgram.

FAQ

How long does transcription take?

Pre-recorded audio typically processes in a fraction of real time — a one-hour file usually completes in a few minutes. Poll the job or use a webhook so you are not blocking.

What is LeMUR?

An endpoint that runs a large language model over one or more transcripts so you can summarise, extract action items or ask free-form questions without wiring up a separate LLM.

Can it redact personal information?

Yes — enable PII redaction and AssemblyAI removes names, numbers, card details and more from both the text and (optionally) the audio.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Prompt ImproverLearn Prompt Engineering

Related AI & Machine Learning APIs

← Back

More AI & Machine Learning APIs · All 196 APIs