Deepgram JS SDK v5 goes stable with breaking changes
- Source
- x.com
- Publisher
- Deepgram
- Date
Deepgram’s JS SDK v5.0.0 is now officially stable and live on npm. This major release includes breaking changes, and teams upgrading from v4 should review the migration guide before updating. The guide is complete and ready to support a smooth transition. What’s new in v5: ✅ Regenerated codegen architecture with stronger type safety ✅ Native support for both browser and Node.js environments ✅ Stable Voice Agent v1 interfaces, including Nova-3 support ✅ Nova-3 available across STT ✅ Flux support ✅ DEEPGRAM_ACCESS_TOKEN authentication (aligned across SDKs) ✅ Additional controls including filler words, speak fallback, mip_opt_out, ttl_seconds, and more Install with: `npm install @deepgram/sdk@latest` Full details are available on npm and GitHub, along with the v4 → v5 migration guide.
Context
Version 5 of Deepgram's JavaScript SDK, the npm package @deepgram/sdk that wraps the company's speech-to-text, text-to-speech and voice-agent APIs, changes how code calls the library, so moving from version 4 means editing code as well as updating the package. Deepgram's announcement declared 5.0.0 stable on March 5, 2026, warned of breaking changes and pointed v4 users to a migration guide. It describes the release as regenerated code with stronger type safety that runs natively in both browsers and Node.js.
The v4-to-v5 migration guide shows where the edits land. Creating a client moves from createClient() to new DeepgramClient({ apiKey }). Calls move under versioned names, so transcribing audio at a URL becomes listen.v1.media.transcribeUrl() instead of listen.prerecorded.transcribeUrl(), and account management moves under manage.v1. Error handling changes for every request-style call: v4 calls returned an object holding either a result or an error, while v5 calls return the data directly and throw an exception on failure, so code that checked the error needs try/catch instead. Live transcription changes too. The LiveTranscriptionEvents enum is gone, a stream is opened with listen.v1.connect() followed by an explicit wait for the socket to open, and transcripts arrive as generic message events that the application filters by type.
The restructuring is also how v5 reaches Flux, Deepgram's speech model built for voice agents. The guide lists listen.v2.connect() as new in v5, and Flux streams over the /v2/listen endpoint, according to Deepgram's June release notes. The announcement also lists stable v1 interfaces, Nova-3 across speech-to-text and access-token through DEEPGRAM_ACCESS_TOKEN, aligned with Deepgram's other SDKs. Because the old function names and the result-or-error return pattern were removed, a team that wants only these additions still has to update every call site.
- Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.
- Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.
- Realtime conversational agent — An agent that processes streaming audio or visual input while a session is live.
- Authentication — The check that a presented credential matches the identity it claims.







