Labsco
deepgram logo

api

โ˜… 12

by deepgram ยท part of deepgram/skills

Build with Deepgram's speech-to-text, text-to-speech, voice agent, and audio intelligence APIs.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup
๐Ÿงฉ One of 7 skills in the deepgram/skills package โ€” works on its own, and pairs well with its siblings.

Build with Deepgram's speech-to-text, text-to-speech, voice agent, and audio intelligence APIs.

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates โ€” shown here so you can audit it before installing. You don't need to read it to use the skill.


name: api description: > Deepgram API reference for speech-to-text, text-to-speech, voice agents, audio intelligence, and account management. Use whenever building with Deepgram APIs โ€” REST or WebSocket. Covers authentication, all endpoints, query parameters, request/response schemas, and WebSocket message formats. Reference files are organized by domain: listen (STT), speak (TTS), agent (voice agents), read (text/audio intelligence), models, projects, auth, and self-hosted.

Deepgram API

Build with Deepgram's speech-to-text, text-to-speech, voice agent, and audio intelligence APIs.

How Deepgram's APIs Fit Together

Copy & paste โ€” that's it
                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                   โ”‚       api.deepgram.com        โ”‚
                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                โ”‚
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ–ผ              โ–ผ              โ–ผ              โ–ผ              โ–ผ
/v1/listen   /v2/listen     /v1/speak      /v1/read    /v1/projects/*
 Nova โ€” ASR   Flux โ€” conv.   TTS            Text AI     Management
REST or WSS   WSS only       REST or WSS    REST only   REST only

                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                   โ”‚      agent.deepgram.com       โ”‚
                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                โ”‚
                                โ–ผ
                   /v1/agent/converse
                   WebSocket only
                   audio โ”€โ”€โ–ถ STT โ”€โ”€โ–ถ LLM โ”€โ”€โ–ถ TTS โ”€โ”€โ–ถ audio
                   (Deepgram orchestrates the full pipeline)

Which API Should I Use?

Copy & paste โ€” that's it
Audio โ†’ text (transcription)?
โ”œโ”€ General-purpose transcription (captions, batch, call logs, live streams with custom turn logic)
โ”‚  โ””โ”€ Nova models via /v1/listen
โ”‚     โ”œโ”€ Pre-recorded file    โ†’  REST  POST https://api.deepgram.com/v1/listen?model=nova-3
โ”‚     โ””โ”€ Live stream          โ†’  WSS   wss://api.deepgram.com/v1/listen?model=nova-3
โ”‚
โ””โ”€ Conversational audio / voice-agent-style turn detection
   โ””โ”€ Flux models via /v2/listen
      โ””โ”€ Live stream          โ†’  WSS   wss://api.deepgram.com/v2/listen?model=flux-general-en

Text โ†’ audio?
โ”œโ”€ One-shot                   โ†’  REST POST /v1/speak
โ””โ”€ Low-latency stream         โ†’  WSS  wss://api.deepgram.com/v1/speak

Full conversational voice agent (audio in, audio out)?
โ””โ”€ WSS wss://agent.deepgram.com/v1/agent/converse
   Deepgram handles STT + your configured LLM + TTS internally

Analyze text for insights?
โ””โ”€ REST POST /v1/read
   (summaries, sentiment, topics, intents)

Speech-to-Text: Nova (/v1/listen) vs Flux (/v2/listen)

Both model families are actively maintained and industry-leading. They solve different problems โ€” pick the one that matches your use case.

Nova (/v1/listen)Flux (/v2/listen)
Endpoint/v1/listen/v2/listen
Available modelsnova-3, nova-2, nova, enhanced, baseflux-general-en
Best forGeneral transcription โ€” captions, subtitles, call logs, batchConversational audio โ€” voice agents, interactive assistants, turn-taking UIs
OutputContinuous transcript streamStructured turn events + transcripts (built-in turn state machine)
Turn detectionManual (utterance_end_ms, VAD events)Built-in (EOT, eager-EOT, turn_index)
TransportsREST + WebSocketWebSocket only
Intelligence overlaysYes โ€” summarize, sentiment, topics, intents, diarize, redact, etc.No โ€” smaller focused param set; no smart_format / diarize / punctuate
Mid-session reconfigNo (reconnect to change)Yes (Configure message updates EOT thresholds + keyterms live)

Pick Nova (/v1/listen, model=nova-3) when:

  • Generating captions, subtitles, or transcripts for recorded media
  • Running batch transcription over files (REST)
  • You need analytics overlays (summarize, sentiment, topics, intents, diarize, redact)
  • You want WebSocket streaming with your own turn-detection logic

Pick Flux (/v2/listen, model=flux-general-en) when:

  • Building an interactive voice agent or assistant
  • You want end-of-turn detection handled for you
  • You need low-latency turn signals and barge-in support
  • You want to update EOT thresholds or keyterms mid-session without reconnecting

Migrating from Nova 3 to Flux? See the official Nova 3 โ†’ Flux migration guide.

API Domains

DomainRESTWebSocketReference
Listen v1 โ€” STT, Nova modelsPOST /v1/listenwss://api.deepgram.com/v1/listenlisten.md
Listen v2 โ€” STT, Flux (conversational)โ€”wss://api.deepgram.com/v2/listenlisten.md
Speak (TTS)POST /v1/speakwss://api.deepgram.com/v1/speakspeak.md
Voice AgentGET /v1/agent/settings/think/modelswss://agent.deepgram.com/v1/agent/converseagent.md
Read (Intelligence)POST /v1/readโ€”read.md
ModelsGET /v1/modelsโ€”models.md
Projects/v1/projects/*โ€”projects.md
AuthPOST /v1/auth/grantโ€”auth.md
Self-Hosted/v1/projects/*/selfhosted/*โ€”self-hosted.md

SDK-Specific Skills

This api skill covers the product contracts (endpoints, query params, message shapes) that are identical across SDKs. For language-idiomatic code โ€” imports, async patterns, builder APIs, common errors โ€” install the SDK-specific skills. Each Deepgram SDK publishes 7 product skills named deepgram-{lang}-{product} (e.g. deepgram-python-speech-to-text, deepgram-js-voice-agent) plus a maintainer skill deepgram-{lang}-maintaining-sdk. The deepgram-{lang}- prefix avoids collisions when you install skills from multiple SDKs.

Copy & paste โ€” that's it
# Install all skills from a specific SDK
npx skills add deepgram/deepgram-python-sdk     # Python
npx skills add deepgram/deepgram-js-sdk         # JavaScript / TypeScript
npx skills add deepgram/deepgram-java-sdk       # Java
npx skills add deepgram/deepgram-go-sdk         # Go
npx skills add deepgram/deepgram-rust-sdk       # Rust
npx skills add deepgram/deepgram-swift-sdk      # Swift
npx skills add deepgram/deepgram-kotlin-sdk     # Kotlin
npx skills add deepgram/deepgram-dotnet-sdk     # C# / .NET
npx skills add deepgram/deepgram-browser-sdk    # Browser TypeScript

# Or install a specific product skill from one SDK (note the deepgram-{lang}- prefix)
npx skills add deepgram/deepgram-python-sdk --skill deepgram-python-speech-to-text
npx skills add deepgram/deepgram-js-sdk     --skill deepgram-js-voice-agent

Related Deepgram skills

SkillPurpose
recipesMinimal runnable snippets per feature per language
examplesFull integration examples with third-party platforms (Twilio, LiveKit, etc.)
startersRunnable starter apps (framework ร— feature matrix)
docsNavigate Deepgram documentation
setup-mcpInstall the Deepgram MCP server

Documentation