Deepgram Aura 2
Deepgram Aura 2 turns text into speech for $0.03 per 1K characters on LLM API.
Pricing
Served by Deepgram, the only provider.
| Text to speech | $0.03/ 1K characters | per 1K characters |
|---|
Call Deepgram Aura 2
POST /v1/audio/speechSet LLMAPI_KEY to your LLM API key.Speech docs
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
speech = client.audio.speech.create(
model="aura-2",
voice="aura-2-thalia-en",
input="Hello from LLM API",
)
speech.write_to_file("hello.mp3")import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const speech = await client.audio.speech.create({
model: "aura-2",
voice: "aura-2-thalia-en",
input: "Hello from LLM API",
});
fs.writeFileSync("hello.mp3", Buffer.from(await speech.arrayBuffer()));curl https://api.llmapi.ai/v1/audio/speech \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "aura-2",
"voice": "aura-2-thalia-en",
"input": "Hello from LLM API"
}' \
--fail-with-body --output hello.mp3More from Deepgram
All Deepgram audio models
Deepgram Flux (English) (flux-general-en)flux-general-en$0.0077per minute
Deepgram Flux (English) (flux)flux$0.0077per minute
Deepgram Flux (Multilingual)flux-general-multi$0.0092per minute
Prices synced .