rachit-sharma08/coding-agent-skills/deepgram-api
Claude Code and agent skill by rachit-sharma08/coding-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
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 — Nova and Flux STT), speak (TTS — Aura and Flux TTS), agent (voice agents), read (text/audio intelligence), models, projects, auth, and self-hosted.
Install
npx vskill@latest install rachit-sharma08/coding-agent-skills/deepgram-apiSKILL.md
The same SKILL.md was published earlier as rachit-sharma08/coding-agent-skills/deepgram-api.
Deepgram API
Build with Deepgram's speech-to-text, text-to-speech, voice agent, and audio intelligence APIs.
"Flux" names two separate products. Flux STT is conversational speech-to-text on/v2/listen(model=flux-general-en). Flux TTS is turn-based speech synthesis on/v2/speak(model=flux-{voice}-{language}). They share a name and a design philosophy — turn-aware, built for voice agents — but they are different endpoints with different models, params, and messages. When a request just says "Flux", check whether it is about transcribing audio or producing it.
Getting Started
All API requests require authentication via API key or JWT:
- API Key:
Authorization: Token <API_KEY> - JWT:
Authorization: Bearer <JWT>
Base servers:
- REST & STT/TTS WebSocket:
https://api.deepgram.com - Voice Agent WebSocket and `GET /v1/agent/settings/think/models`:
https://agent.deepgram.com
GET /v1/agent/settings/think/models lives on the agent. host too, not on api.: it returns 404 on api.deepgram.com and 200 on agent.deepgram.com. Everything else REST stays on api.deepgram.com.
Regional endpoints
To keep processing inside a geography, swap the host. Same API keys, same paths, same SDKs — only the base URL changes. Requests are never routed out of region: if the region is unavailable they fail rather than fall back.
| Region | Host | |
|---|---|---|
| EU | api.eu.deepgram.com | |
| Australia | api.au.deepgram.com | |
| India | api.in.deepgram.com |
The data plane is regional; the Projects management API is not. On all three regional hosts:
| Endpoint | Regional | |
|---|---|---|
POST /v1/listen, wss://…/v1/listen | Yes | |
wss://…/v2/listen | Yes | |
POST /v1/speak, wss://…/v1/speak | Yes | |
POST /v2/speak, wss://…/v2/speak | Yes | |
POST /v1/read | Yes | |
wss://…/v1/agent/converse | Yes | |
GET /v1/models | Yes | |
POST /v1/auth/grant | Yes | |
/v1/projects/* (keys, members, usage, billing) | No — 404 |
Two host rules that catch people out:
- Voice Agent moves onto the `api.` host regionally. There is no
agent.eu.deepgram.com
(the name does not resolve). Use wss://api.eu.deepgram.com/v1/agent/converse. GET /v1/agent/settings/think/models moves with it. Globally it stays on agent.deepgram.com.
- Keep management calls on `api.deepgram.com`. Point a client's management calls at a
regional host and /v1/projects returns 404, so split the base URL by call type if your app both transcribes and manages keys.
Whisper models are not served in any of the three regions — use Nova or Flux STT models there.
For Deepgram Dedicated and self-hosted hosts, see Custom Endpoints; for the full per-region feature matrix and SDK snippets, see Regional Endpoints.
How Deepgram's APIs Fit Together
Which API Should I Use?
Speech-to-Text: Nova (/v1/listen) vs Flux STT (/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 STT (/v2/listen) | ||
|---|---|---|---|
| Endpoint | /v1/listen | /v2/listen | |
| Available models | nova-3 (also nova-3-medical, nova-3-pharma), nova-2, nova, enhanced, base | flux-general-en, flux-general-multi | |
| Best for | General transcription — captions, subtitles, call logs, batch | Conversational audio — voice agents, interactive assistants, turn-taking UIs | |
| Output | Continuous transcript stream | Structured turn events + transcripts (built-in turn state machine) | |
| Turn detection | Manual (utterance_end_ms, VAD events) | Built-in (EOT, eager-EOT, turn_index) | |
| Transports | REST + WebSocket | WebSocket only | |
| Intelligence overlays | Yes — summarize, sentiment, topics, intents, diarize_model, redact, etc. | No — smaller focused param set; no smart_format / diarize_model / punctuate | |
| Mid-session reconfig | No (reconnect to change) | Yes (Configure message updates EOT thresholds, keyterms, language hints, and numerals 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_model,redact) - You want WebSocket streaming with your own turn-detection logic
Pick Flux STT (`/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, keyterms, language hints, or
numeralsmid-session without reconnecting
Migrating from Nova 3 to Flux STT? See the official Nova 3 → Flux migration guide.
Text-to-Speech: Aura (/v1/speak) vs Flux TTS (/v2/speak)
Both TTS families are actively maintained. /v2/speak is a new endpoint, not a replacement — /v1/speak is unchanged, and there is no aliasing, redirect, or deprecation. The families do not overlap: Aura voices are served only on /v1/speak, Flux TTS voices only on /v2/speak.
Aura (/v1/speak) | Flux TTS (/v2/speak) | ||
|---|---|---|---|
| Endpoint | /v1/speak | /v2/speak | |
| Models | aura-2-* (en, es, de, nl, fr, it, ja), aura-* | flux-{voice}-{language}, e.g. flux-alexis-en — English at launch | |
model param | Optional (defaults to aura-asteria-en) | Required; an aura-* string is rejected | |
| Best for | Broadest voice catalog, multilingual, compressed audio, one-shot synthesis | Voice agents — streaming LLM output, barge-in, multi-turn conversations | |
| Mental model | Text buffer → audio stream | Streaming-first, turn-based conversation | |
| Turn lifecycle | None | SpeechStarted → audio → Flushed → SpeechMetadata per turn (server-assigned speech_id) | |
| Cross-turn context | None (reconnect to reset) | Prosody persists across turns automatically — no API surface | |
| Transports | REST + WebSocket | REST (batch) + WebSocket (streaming) | |
| Streaming encodings | linear16, mulaw, alaw | linear16, mulaw, alaw — raw audio only | |
| Batch encodings | mp3, opus, flac, aac, linear16, mulaw, alaw + container / bit_rate | Same — but batch-only; the socket rejects them | |
| Interruption | Clear discards the buffer, no feedback | Interrupt → SpeechInterrupted with text_spoken / text_remaining | |
| Mid-stream reconfig | No (fixed at connection) | Yes — Configure updates speed only | |
speed | 0.7 to 1.5, Aura-2, English and Spanish only | 0.5 to 1.5 in 0.05 steps; capped at 1.15 when the text carries a pause marker (PAUSE_SPEED_CAP_EXCEEDED above that); see Inline controls for the pronunciation rule | |
expressivity | Not supported | -2…2, default 0 (beta; fixed for the connection) | |
| Inline controls | Pronunciation \{"word":"...","pronounce":"<IPA>"\} (GA on Aura-2, English and Spanish, input up to 2000 characters, combinable with speed); no pause control | Pronunciation (Early Access, both transports) only with speed exactly 1.0: CONTROL_COMBINATION_INVALID on batch, DATA-0002 on the socket; pause \{pause:500ms\} on batch only, 500 to 3000 ms in 100 ms steps, at most 8 per request | |
Voice Agent provider.version | v1 (the default when a provider is specified) | v2 (required) |
Pick Aura (`/v1/speak`) when:
- You need a language other than English, or a specific Aura voice
- You need compressed output (
mp3,opus,flac,aac) inside a Voice Agent, where Flux TTS returnsINVALID_SETTINGS; on batch REST both families serve those encodings - You're already on Aura and nothing in Flux TTS is pulling you over — v1 is unchanged
Pick Flux TTS (`/v2/speak`) when:
- Building a voice agent, phone assistant, or customer-service bot
- You're streaming LLM tokens to a speaker in real time and want the lowest time-to-first-audio
- The user may barge in mid-response and you need to know what they actually heard
- You want tone to carry across turns without managing state yourself
- You're pre-rendering fixed audio (IVR prompts, notifications) with a Flux TTS voice — use the batch REST transport
Migrating from Aura? See the official Migrating from Aura to Flux TTS guide and Batch vs Streaming.
API Domains
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deepgram-api/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rachit-sharma08/coding-agent-skills/deepgram-api)