Use the AssemblyAI CLI from KosmoKrator to call AssemblyAI tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
AssemblyAI can be configured headlessly with `kosmokrator integrations:configure assemblyai`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure assemblyai --set api_key="$ASSEMBLYAI_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor assemblyai --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
ASSEMBLYAI_API_KEY
Secret secret
yes
API Key
url
ASSEMBLYAI_URL
URL url
no
API Base URL
Call AssemblyAI Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to AssemblyAI.
assemblyai.assemblyai_transcribe
Write write
Submit an audio or video file URL for AI transcription. Supports speech-to-text, speaker diarization, summarization, sentiment analysis, and more. Returns a transcript ID to poll for results.
Retrieve a transcript by ID. Returns the transcription text, status (queued, processing, completed, error), confidence score, and any enabled AI features like speaker labels, chapters, or sentiment analysis.
Upload a local audio or video file to AssemblyAI. Returns an upload URL that can be passed to the transcribe tool as the audio_url parameter. Supports most common audio and video formats.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
assemblyai.assemblyai_transcribe
Submit an audio or video file URL for AI transcription. Supports speech-to-text, speaker diarization, summarization, sentiment analysis, and more. Returns a transcript ID to poll for results.
URL of the audio or video file to transcribe. Can also be an AssemblyAI upload URL from the upload tool.
language_code
string
no
Language code (e.g., "en_us", "es", "fr"). Defaults to auto-detection if omitted.
speaker_labels
boolean
no
Enable speaker diarization to identify who spoke and when.
auto_chapters
boolean
no
Automatically break the transcript into chapters.
entity_detection
boolean
no
Detect entities like dates, locations, and organizations in the transcript.
sentiment_analysis
boolean
no
Analyze sentiment (positive, negative, neutral) for each sentence.
summarization
boolean
no
Generate a summary of the transcript.
punctuate
boolean
no
Add punctuation to the transcript.
format_text
boolean
no
Format text with capitalization and paragraph breaks.
webhook_url
string
no
URL to receive a webhook when the transcript is complete.
custom_topics
array
no
List of custom topics to detect in the audio.
topics
array
no
Enable topic detection with AssemblyAI's built-in topics.
assemblyai.assemblyai_get_transcript
Retrieve a transcript by ID. Returns the transcription text, status (queued, processing, completed, error), confidence score, and any enabled AI features like speaker labels, chapters, or sentiment analysis.
Maximum number of transcripts to return per page (default: 20, max: 200).
status
string
no
Filter by status: "queued", "processing", "completed", or "error".
created_on
string
no
Filter by creation date. Accepts a date string or operator (e.g., "gte:2025-01-01").
before_id
string
no
Return transcripts created before this transcript ID (for pagination).
after_id
string
no
Return transcripts created after this transcript ID (for pagination).
throttled_only
boolean
no
Only return throttled transcripts.
assemblyai.assemblyai_upload
Upload a local audio or video file to AssemblyAI. Returns an upload URL that can be passed to the transcribe tool as the audio_url parameter. Supports most common audio and video formats.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.