Skip to main content
Transcribe audio from your terminal. One install, one command, no boilerplate. The Gladia CLI wraps the Gladia speech-to-text API for terminals, shell scripts, and pipelines — 100+ languages, speaker diarization, and code switching in a single command.
Get your API key from the Gladia dashboard before running your first transcription.

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

Other platforms and binaries are available on GitHub releases.

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

  • --language limits which language(s) Gladia considers. A comma-separated list is a hint list, not per-utterance switching.
  • --code-switching turns on per-utterance language detection. Add --language to restrict which languages may appear. Not available with solaria-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 via install.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:
Run 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