Aura 2
Model Overview
Aura 2 produces natural, human-like speech with accurate domain-specific pronunciation — covering drug names, legal terms, alphanumeric strings, and structured inputs such as dates, times, and currency. It also maintains sub-200 ms TTFB latency and offers cost-efficient scalability.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
API Schema
post
Body
modelstring · enumRequiredPossible values:
voicestring · enumOptionalDefault:
The voice to use for speech synthesis.
thaliaPossible values: textstringRequired
The text content to be converted to speech.
containerstringOptional
The file format wrapper for the output audio. The available options depend on the encoding type.
encodingstring · enumOptionalDefault:
Specifies the expected encoding of your audio output
linear16Possible values: sample_ratestringOptional
Audio sample rate in Hz.
streambooleanOptionalDefault:
trueResponses
200Success
audiostring · uriRequired
post/v1/tts
curl -L \
--request POST \
--url 'https://api.aimlapi.com/v1/tts' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "deepgram/aura-2",
"voice": "thalia",
"text": "Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic."
}'200Success
{
"audio": "https://example.com",
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
The generated audio:
Last updated
Was this helpful?