See how Deepgram stacks up. Check out our ASR Comparison Tool. 🍎🍊

All Posts

Build With the Official Deepgram SDKs

We love empowering our developer communities to take full advantage of voice in their applications. So, we’re announcing two new official SDKs for Node.js and Python. Both of these SDKs make it easier than ever to add automated speech-to-text recognition to your applications.

How Easy Is It?

To get started, make sure you have a Deepgram account by signing up at After signing up, log in and get an API key. Then, in your terminal, run the appropriate command below to install the SDK.


npm install @deepgram/sdk


pip install deepgram-sdk

Once the SDK has been installed, the following snippets will allow you to transcribe a prerecorded audio file. Be sure to replace YOUR_DEEPGRAM_API_KEY with the API key, you created earlier.


const { Deepgram } = require('@deepgram/sdk');

const deepgramApiKey = 'YOUR_DEEPGRAM_API_KEY';

function main() {
  return new Promise((resolve, reject) => {
    (async () => {
      try {
        const deepgram = new Deepgram(deepgramApiKey);

        const transcription = await newDeepgram.transcription.preRecorded({
          url: ''
        }, {
          punctuate: true
        console.dir(transcription, { depth: null });
      catch (err) {
        console.log(`Err: ${err}`);



from deepgram import Deepgram

import asyncio, json


async def main():

    # Initializes the Deepgram SDK

    dg_client = Deepgram(DEEPGRAM_API_KEY)

    source = {'url': ''}

    response = await dg_client.transcription.prerecorded(source)

    print(json.dumps(response, indent=4))

Contributions Welcome

Our SDKs are still in their infancy, but we’re building them in public. We welcome all issues and pull requests to our Node.js and Python repositories. Of course, we’d also love to hear what you’re building, so tweet at @DeepgramDevs and let us know!

Apply Now

Receive up to $100,000 to use over 12 months.

Become a Partner

When you become a partner you’re in good company.

Talk to Customer Success