Skip to main content
POST
AssemblyAI
Product: Visual Intelligence — Audio File Transcription Use case: Transcribe an uploaded audio/video file to text — async batch or sync, multiple providers (Whisper, ElevenLabs, AssemblyAI) with optional speaker labels. For live streams, see Live Audio Transcription. Host: https://mavi-backend.memories.ai/serve/api/v2 Auth: Authorization: sk-mavi-... (no Bearer prefix)
Uses AssemblyAI Universal-2 model. Submits a job and polls until completion, then returns the full result.
Pricing: $0.15/hour of audio, billed by actual audio duration (in seconds).

Audio Source

You must provide one of the following (priority: asset_id > url > source_url).

Parameters

string
required
API key for authentication (e.g. sk-mavi-...).
string
required
STT provider. Must be assemblyai.
string
The unique identifier of an uploaded audio/video asset (e.g. re_xxx). Resolved to a signed GCS URL.
string
A publicly accessible audio URL.
string
A gs:// GCS path or public HTTP URL. GCS paths are converted to signed URLs automatically.
string
Language code (ISO 639-1, e.g. en, zh). If omitted, the provider auto-detects the language.
boolean
default:"true"
Add punctuation.
boolean
default:"true"
Format numbers, dates, etc.
boolean
Enable speaker diarization.
integer
Expected number of speakers.
boolean
Enable automatic language detection.
number
Confidence threshold for language detection (0.0–1.0).
string
Speech recognition model to use.
number
Speech confidence threshold (0.0–1.0).
boolean
Include disfluencies (um, uh, etc.).
boolean
Enable sentiment analysis per utterance.
boolean
Enable entity detection (names, locations, etc.).
boolean
Automatically highlight key phrases.
boolean
Enable content safety detection.
boolean
Enable IAB topic categorization.
boolean
Automatically generate chapters.
boolean
Enable summarization.
string
Summarization model: informative or conversational.
string
Summary format: bullets, bullets_verbose, headline, paragraph, or gist.
boolean
Enable PII redaction.
string[]
PII types to redact (e.g. email_address, phone_number, person_name).
string
PII replacement strategy: hash or entity_name.
boolean
Redact PII from audio output.
string
Redacted audio quality: mp3 or wav.
boolean
Filter profanity from transcript.
string[]
List of words to boost recognition.
string
Boost strength: low, default, or high.
object[]
Custom spelling corrections.
string
AssemblyAI webhook callback URL.
boolean
Enable multi-channel transcription.
integer
Start transcription from this time (milliseconds).
integer
End transcription at this time (milliseconds).
boolean
Enable custom topic detection.
string[]
Custom topic labels.

Code Examples

Response

Response Parameters

Timestamps are in milliseconds (e.g. 520).