Logo Api

Api

Tổ chức
deepgram
api

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.

Tổng quan

Nhà phát hànhdeepgram
Kho mãskills
Tên kỹ năngapi
Sao
28
Bản fork
7
Tệp đi kèm
8
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được deepgram công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Api trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/deepgram/skills/tree/main/skills/api
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/deepgram/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/api .claude/skills/api
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Api trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Api ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Api với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

RegionHost
EUapi.eu.deepgram.com
Australiaapi.au.deepgram.com
Indiaapi.in.deepgram.com

The data plane is regional; the Projects management API is not. On all three regional hosts:

EndpointRegional
POST /v1/listen, wss://…/v1/listenYes
wss://…/v2/listenYes
POST /v1/speak, wss://…/v1/speakYes
POST /v2/speak, wss://…/v2/speakYes
POST /v1/readYes
wss://…/v1/agent/converseYes
GET /v1/modelsYes
POST /v1/auth/grantYes
/v1/projects/* (keys, members, usage, billing)No — 404

Two host rules that catch people out:

  1. 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.
  2. 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

                   ┌──────────────────────────────┐
                   │       api.deepgram.com        │
                   └──────────────────────────────┘
                                │
  ┌───────────┬───────────┬─────┴─────┬───────────┬───────────┐
  ▼           ▼           ▼           ▼           ▼           ▼
  /v1/listen  /v2/listen  /v1/speak   /v2/speak   /v1/read    /v1/projects/*
  Nova — STT  Flux — STT  Aura — TTS  Flux — TTS  Text AI     Management
  REST + WSS  WSS only    REST + WSS  REST + 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?

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 STT models via /v2/listen
      └─ Live stream          →  WSS   wss://api.deepgram.com/v2/listen?model=flux-general-en

Text → audio (speech synthesis)?
├─ General-purpose TTS (broadest voice catalog, compressed/containerized audio)
│  └─ Aura models via /v1/speak
│     ├─ One-shot             →  REST  POST https://api.deepgram.com/v1/speak?model=aura-2-thalia-en
│     └─ Low-latency stream   →  WSS   wss://api.deepgram.com/v1/speak?model=aura-2-thalia-en
│
└─ Voice-agent TTS (turn-based lifecycle, barge-in, cross-turn consistency)
   └─ Flux TTS models via /v2/speak  — model is REQUIRED, and must be flux-*
      ├─ Pre-render a block   →  REST  POST https://api.deepgram.com/v2/speak?model=flux-alexis-en
      └─ Live conversation    →  WSS   wss://api.deepgram.com/v2/speak?model=flux-alexis-en

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 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 modelsnova-3 (also nova-3-medical, nova-3-pharma), nova-2, nova, enhanced, baseflux-general-en, flux-general-multi
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_model, redact, etc.No — smaller focused param set; no smart_format / diarize_model / punctuate
Mid-session reconfigNo (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 numerals mid-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
Modelsaura-2-* (en, es, de, nl, fr, it, ja), aura-*flux-{voice}-{language}, e.g. flux-alexis-en — English plus 41 languages; 32 of them Early Access without text normalization, none yet on api.au, and only English inside a Voice Agent
model paramOptional (defaults to aura-asteria-en)Required; an aura-* string is rejected
Best forExisting Aura integrations, English–Spanish codeswitching voices, non-English voices inside a Voice Agent, compressed audio inside a Voice AgentVoice agents — streaming LLM output, barge-in, multi-turn conversations
Mental modelText buffer → audio streamStreaming-first, turn-based conversation
Turn lifecycleNoneSpeechStarted → audio → Flushed → SpeechMetadata per turn (server-assigned speech_id)
Cross-turn contextNone (reconnect to reset)Prosody persists across turns automatically — no API surface
TransportsREST + WebSocketREST (batch) + WebSocket (streaming)
Streaming encodingslinear16, mulaw, alawlinear16, mulaw, alaw — raw audio only
Batch encodingsmp3, opus, flac, aac, linear16, mulaw, alaw + container / bit_rateSame — but batch-only; the socket rejects them
InterruptionClear discards the buffer, no feedbackInterrupt → SpeechInterrupted with text_spoken / text_remaining
Mid-stream reconfigNo (fixed at connection)Yes — Configure updates speed only
speed0.7 to 1.5, Aura-2, English and Spanish only0.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
expressivityNot supported-2…2, default 0 (beta; fixed for the connection)
Inline controlsPronunciation \{"word":"...","pronounce":"<IPA>"\} (GA on Aura-2, English and Spanish, input up to 2000 characters, combinable with speed); no pause controlPronunciation (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.versionv1 (the default when a provider is specified)v2 (required)

Pick Aura (/v1/speak) when:

  • You need a non-English voice inside a Voice Agent (the agent takes English Flux TTS voices only), an English–Spanish codeswitching voice, or a specific Aura voice
  • You need compressed output (mp3, opus, flac, aac) inside a Voice Agent, where Flux TTS returns INVALID_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

DomainRESTWebSocketReference
Listen v1 — STT, Nova modelsPOST /v1/listenwss://api.deepgram.com/v1/listenlisten.md
Listen v2 — STT, Flux STT (conversational)—wss://api.deepgram.com/v2/listenlisten.md
Speak v1 — TTS, Aura modelsPOST /v1/speakwss://api.deepgram.com/v1/speakspeak.md
Speak v2 — TTS, Flux TTS (turn-based)POST /v2/speakwss://api.deepgram.com/v2/speakspeak.md
Voice AgentGET agent.deepgram.com/v1/agent/settings/think/models; reusable agent configurations at /v1/projects/{project_id}/agents (GET, POST) and /v1/projects/{project_id}/agents/{agent_id} (GET, PUT, DELETE); agent variables at /v1/projects/{project_id}/agent-variables (GET, POST) and /v1/projects/{project_id}/agent-variables/{variable_id} (GET, PATCH, DELETE)wss://agent.deepgram.com/v1/agent/converseagent.md
Read (Intelligence)POST /v1/read—read.md
ModelsGET /v1/models, GET /v1/models/{model_id}, GET /v1/projects/{project_id}/models, GET /v1/projects/{project_id}/models/{model_id}; include_outdated=true on either list call also returns non-latest model versionsnonemodels.md
Projects/v1/projects/*—projects.md
AuthPOST /v1/auth/grant—auth.md
Self-Hosted/v1/projects/*/self-hosted/*—self-hosted.md

Common Mistakes to Avoid

All APIs

  1. Feature flags are query params, except for Voice Agent and the v2 mid-session updates. For /v1/listen, /v2/listen, /v1/speak, and /v2/speak, initial options go on the URL. For Listen, the request body carries audio (REST) or audio frames (WebSocket); for Speak, it carries text (REST JSON text field or WebSocket Speak messages). Exceptions: /v1/agent/converse has no URL query params at all (all config goes in the Settings message); /v2/listen supports a Configure message after connection to update EOT thresholds, keyterms, language hints, and numerals mid-session; and /v2/speak supports a Configure message that updates speed only. Also note that /v2/listen has a much smaller param set than /v1/listen: flags like smart_format, diarize_model, and punctuate are not available.

  2. Rate limits are concurrent connections, not total requests. A 429 means too many simultaneous open connections, not too high a request volume. Diarization and other compute-heavy features reduce your concurrency allowance further. Limits apply per project, not per API key, and differ by region; the API Rate Limits page carries the per-region concurrency tables.

STT WebSocket (/v1/listen)

  1. Send KeepAlive as a text frame, not binary. The connection closes after 10 seconds of no audio. Send {"type":"KeepAlive"} as a text (JSON) frame every 3–5 seconds during silence. Sending it as a binary frame causes transcription delays — the audio pipeline chokes — not a silent no-op.

  2. Never send empty byte payloads. Sending a zero-length binary frame to /v1/listen is treated as a close — it terminates the connection. Always check that your audio packet has length before sending.

  3. encoding must match the actual audio format. If encoding=linear16 but you're sending opus, you'll get a DATA-0000 error or garbled output. Omit encoding entirely when sending containerized formats (mp3, wav, ogg) — Deepgram detects them automatically.

  4. Timestamps reset on reconnect. Each new WebSocket connection restarts timestamps at 00:00:00. For real-time apps, maintain a timestamp offset across reconnections or you'll silently corrupt your transcript timeline.

TTS WebSocket (/v1/speak)

  1. Don't send empty text. A Speak message with an empty text field returns a 400 error. Always validate input before sending.

  2. Character rate limiting (DATA-0001) means slow down, not retry. If you hit this, reduce how fast you're submitting text chunks — don't immediately retry or you'll compound the problem.

Flux TTS (/v2/speak)

  1. model is required, and must be a flux-* voice. Unlike /v1/speak there is no default — a connection or request without model is rejected. Aura strings are rejected on /v2/speak, and Flux voices are not served by /v1/speak; the two families never mix. Model strings are flux-{voice}-{language}, e.g. flux-alexis-en. There is no version segment — generations roll forward behind a stable name, as with Flux STT.

  2. Flush ends the turn — it is not a v1-style buffer flush. There is no Finalize; it's folded into Flush. Audio starts streaming on its own before you flush, so don't wait to send text. Use the turn's SpeechMetadata (not Flushed) as your end-of-turn signal — it arrives once all of the turn's audio has been sent, and carries the billing and timing counts, so you can drop client-side character or duration tracking. The server assigns the turn's speech_id; never send one yourself.

  3. Streaming is raw audio only, and rejects anything it doesn't recognize. The WebSocket emits non-containerized audio, so encoding is limited to linear16 (default), mulaw, or alaw. The compressed and containerized encodings (mp3, opus, flac, aac) and the container, bit_rate, callback, callback_method, and priority params are batch-only — sending them to the socket fails the connection, as does any unknown or misspelled param. Use the batch REST transport when you need compressed output.

  4. Insert whitespace between separate generations, because the server won't. Text normalization runs before synthesis, but successive Speak messages are concatenated verbatim. Sending "Hello world." then "How are you?" is processed as "Hello world.How are you?", which causes sentence-boundary artifacts. Add a single space (or the right separator for non-whitespace languages) when you stitch a reply, a tool-call result, and another reply together. Send plain text: SSML is not interpreted, and the only markup Flux TTS honors is its own escaped inline controls. A pronunciation override \{"word":"...","pronounce":"<IPA>"\} is honored on both transports (Early Access) but only with speed 1.0, and a pause marker \{pause:500ms\} is batch-only. A pause marker on the socket, or a pronunciation control on a socket whose speed is not 1.0, fails the connection with DATA-0002. On batch POST /v2/speak the same violations are a 400 whose err_code names the rule: CONTROL_COMBINATION_INVALID (pronunciation with a pause, or with a speed other than 1.0), PAUSE_SPEED_CAP_EXCEEDED (a pause marker with speed above 1.15), BREAK_OUT_OF_RANGE (a pause outside 500 to 3000 ms), BREAK_INCREMENT_INVALID (a pause off the 100 ms grid), BREAKS_LIMIT_EXCEEDED (more than 8 pause markers, or two with no text between them), and BREAK_SYNTAX_INVALID (a malformed marker, such as a simple marker without backslashes or an escaped structured marker). A speed of exactly 1.0 never counts as a speed control, so it triggers none of these. See Speed, Pause, Pronunciation.

Voice Agent (/v1/agent/converse)

  1. Send the Settings message before any audio. The agent ignores everything until it receives and acknowledges the Settings configuration. Message ordering is strictly required.

  2. agent.speak.provider.version selects the TTS family — and omitting agent.speak now gives you Flux TTS. Set version to v2 for Flux TTS or v1 for Aura; when you specify a provider but omit version, it defaults to v1. But if you omit agent.speak entirely, the agent defaults to Flux TTS with the flux-kit-en voice. Switch families by changing version and model together — a flux-* model under v1, or an aura-* model under v2, is invalid:

    json
    { "agent": { "speak": { "provider": { "type": "deepgram", "version": "v2", "model": "flux-alexis-en" } } } }
  3. GET /v1/agent/settings/think/models lives on agent.deepgram.com, not api.deepgram.com. GET /v1/agent/settings/think/models, the list of LLMs you can name in agent.think.provider, returns 404 on api.deepgram.com and 200 on agent.deepgram.com. Same key, same path; only the host differs, so a client with one hardcoded base URL silently gets a 404 that looks like a missing feature. The three regional api.* hosts serve it as well.

Flux STT model (/v2/listen)

  1. Use /v2/listen and a flux-general-* model. Two are served: flux-general-en (English) and flux-general-multi (multilingual, and the only /v2/listen model that accepts language_hint / language_hints; on /v1/listen, language_hint biases Nova-3 language=multi). /v1/listen does not support Flux STT, and model=flux alone is not a valid value. Do not include language or encoding params for containerized audio.

  2. Use Configure to update EOT thresholds, keyterms, language hints, and numerals mid-session. Unlike /v1/listen, Flux STT supports live reconfiguration after connection, so there is no need to reconnect to change turn detection sensitivity, boost new keyterms, re-bias language detection (language_hints, flux-general-multi only), or switch numerals on for a PIN or order number:

    json
    { "type": "Configure", "thresholds": { "eot_threshold": 0.8, "eot_timeout_ms": 3000 }, "keyterms": ["Deepgram"] }

    The server responds with ConfigureSuccess, which echoes the full active configuration, numerals included, not only the fields you sent, or ConfigureFailure, which carries code and description identifying the rejected configuration. Omitted threshold fields keep their current values.

  3. ForceEndTurn outside a turn is a Warning, not an error, and the socket stays open. Sending {"type":"ForceEndTurn"} while no turn is in progress returns {"type":"Warning","code":"FORCE_END_TURN_NO_ACTIVE_TURN","description":"Received ForceEndTurn while no turn was active; the request was ignored."} and the connection continues. Do not treat it as fatal or reconnect. references/listen.md shows the message shape (ListenV2Warning: code, description, request_id, sequence_id); code is a free string there, so the individual codes such as FORCE_END_TURN_NO_ACTIVE_TURN come from the Force End Turn docs. When ForceEndTurn does land mid-turn, the resulting TurnInfo carries event: "EndOfTurn" with trigger: "manual". trigger is model | manual | timeout, it appears on EndOfTurn and nowhere else, and it is an open enum, so tolerate values you do not recognize.

Nova diarization (/v1/listen)

  1. Use diarize_model, and never send it alongside diarize. diarize is deprecated. diarize_model both enables diarization and picks the version, so you do not also need diarize=true — and sending both fails the request: 400 "diarize_model cannot be used together with diarize or diarize_version.". Values are latest, v1, and v2 for batch (latest is currently v2), and latest or v1 for streaming. When diarization is on, metadata.diarize_info reports which model actually ran ({"model_uuid": …, "arch": "v2"}), which is the only way to tell what latest resolved to.

Text and Audio Intelligence (/v1/read, /v1/listen)

  1. language is required on /v1/read, and it is validated before anything else. There is no default: omitting it returns 400 INVALID_QUERY_PARAMETER with the message "Failed to deserialize query parameters: missing field language", which masks every other problem in the request. English only: language=multi is rejected, and en-US is accepted but echoed back as en. Two more /v1/read shapes worth knowing: the JSON body takes exactly one of text or url (both or neither gives PAYLOAD_ERROR, and url must point at a plain-text document, since audio gives REMOTE_CONTENT_ERROR), and it is POST-only (GET and a WebSocket upgrade both return 405). summarize on /v1/read accepts v2 as well as true. Result paths differ per endpoint: /v1/read returns results.summary.text, /v1/listen returns results.summary.short, so code that handles both has to branch. (sentiment maps to results.sentiments on both.)

  2. On the Nova streaming socket, only detect_entities works — and the other four fail in three different ways. detect_entities=true is supported and puts entities at the top level of each Results message, beside channel, not inside channel.alternatives[0]. The other four are prerecorded-only: summarize fails the handshake with 400 "Summarization is not available for streaming."; topics and intents fail it with 403 UNAUTHORIZED_FEATURES_REQUESTED, which reads like a key-permissions problem even when the same key's prerecorded topics/intents calls return 200; and sentiment is the trap — the handshake succeeds, no error is ever sent, and sentiment simply never appears in the results.

Authentication

  1. JWT TTL applies only to the initial handshake. Tokens default to 30 seconds. Once the WebSocket connection is established, the token expiring does not close it — tokens are only needed for the upgrade request.

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). The deepgram-{lang}- prefix avoids collisions when you install skills from multiple SDKs.

bash
# 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-dotnet-sdk     # C# / .NET

# 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

Swift and Kotlin SDK skills are not listed because those repositories are not public and npx skills add cannot reach them. For browser work, open the browser-agent skill: it covers the four Browser Agent SDK packages published on npm (@deepgram/agents, @deepgram/react, @deepgram/ui, @deepgram/agents-widget).

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
audio-intelligenceThe summarize, sentiment, topics, intents, and detect_entities parameters on /v1/listen
text-intelligencePOST /v1/read for text you already have
browser-agentThe Browser Agent SDK packages for running an agent in a browser
clideepctl for shell and CI work
self-hostedRunning Deepgram on your own GPUs
setup-mcpInstall the Deepgram MCP server

Documentation

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Api làm được gì?

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.

Vì sao nên dùng Api trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Api là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Api trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/deepgram/skills/tree/main/skills/api. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Api?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Api với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Api với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Api có miễn phí không?

Kỹ năng này được deepgram phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇