WebInfer

🎧

Deepgram

Real-time speech transcription

Fast
Audio & Speech
API

Configure Deepgram

Add your Deepgram API key in Settings

Go to Settings
Capabilities
speech-to-text
real-time
Configuration Schema
Required and optional fields for configuring this provider
FieldTypeRequired
apiKey
password
Required
CLI Usage
For users running the daemon server locally or a self-hosted gateway

Add provider:

npx webinfer provider add deepgram --key YOUR_API_KEY

Test connection:

npx webinfer provider test deepgram

Get your API key from https://deepgram.com/

Programmatic Usage
Use Deepgram in your code with WebInfer

Basic usage:

import { generateText } from "webinfer"

// WebInfer automatically routes to the best available provider
const result = await generateText({
  prompt: "Write a haiku about programming"
})

console.log(result.text)

Specify Deepgram explicitly:

import { generateText } from "webinfer"

const result = await generateText({
  prompt: "Write a haiku about programming",
  provider: "deepgram"
})

console.log(result.text)
console.log("Provider:", result.provider)
console.log("Model:", result.model)

Streaming:

import { streamText } from "webinfer"

const { textStream } = await streamText({
  prompt: "Write a story about AI",
  provider: "deepgram"
})

for await (const chunk of textStream) {
  process.stdout.write(chunk)
}