Why use the CLI
- One command away — Install the CLI, set your API key, run
gladia transcribe. - Flexible output — Get plain text, JSON, SRT, or VTT straight to stdout.
- Full feature set — Speaker diarization, multilingual configuration, and model selection (
solaria-1,solaria-3). - Files or URLs — Transcribe a local recording or a remote link, with no download step.
- Pipe-friendly — Machine-readable output for shell scripts and CI pipelines.
Install
Quick start
API key setup
Provide your API key in one of three ways (checked in this order):Everyday examples
Commands
Output formats
Use-o or --output to control how the transcript is returned:
Transcription options
Global flag (any command):
--gladia-key — API key if not set in the environment or ~/.gladia.
Language
--languagelimits which language(s) Gladia considers. A comma-separated list is a hint list, not per-utterance switching.--code-switchingturns on per-utterance language detection. Add--languageto restrict which languages may appear. Not available withsolaria-3.
Diarization
Use--diarize when you need who spoke when. Speaker labels are included in the output (for example, Speaker 0: …).
Shell completion
When you install viainstall.sh or install.ps1, the script offers to configure tab completion for your shell. To skip the prompt (for example in CI), set GLADIA_NO_COMPLETION_PROMPT=1.
You can also set up completion manually:
gladia completion --help for full instructions per shell.
Next steps
Get your API key
Create an API key on the Gladia dashboard
Gladia CLI on GitHub
Source code, issues, and releases
Pre-recorded STT quickstart
Learn more about Gladia transcription features