AudLabs API
The AudLabs API gives developers programmatic access to 190+ professional AI voices. Generate natural-sounding speech for any application โ simple REST API, no complex setup required.
Get Your API Key โAuthentication
All API requests require your API key passed as a request header. Get your key from the Developer Portal.
x-api-key: aud_your_api_key_here // Or as Bearer token: Authorization: Bearer aud_your_api_key_here
Base URL
https://app.audlabs.io/api/v1
Generate Voice
Convert text to speech. Returns an MP3 audio file as binary data.
Request Body
| Parameter | Type | Description |
|---|---|---|
| text | required | The text to convert to speech. Maximum 50,000 characters per request. |
| voice_id | required | The voice to use. See Voice IDs section below. |
| speed | optional | Speech speed. Range: 0.5 to 2.0. Default: 1.0 |
| pitch | optional | Pitch adjustment. Range: -12 to 12. Default: 0 |
| volume | optional | Volume level. Range: 0.1 to 2.0. Default: 1.0 |
| format | optional | Output format. Options: mp3, wav. Default: mp3 |
JavaScript Example
const response = await fetch('https://app.audlabs.io/api/v1/generate', {
method: 'POST',
headers: {
'x-api-key': 'aud_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: 'Hello world. This is a test of the AudLabs API.',
voice_id: 'English_CaptivatingStoryteller',
speed: 1.0,
format: 'mp3'
})
});
const audioBlob = await response.blob();
const audioUrl = URL.createObjectURL(audioBlob);
const audio = new Audio(audioUrl);
audio.play();
Python Example
import requests
response = requests.post(
'https://app.audlabs.io/api/v1/generate',
headers={
'x-api-key': 'aud_your_api_key_here',
'Content-Type': 'application/json'
},
json={
'text': 'Hello world. This is a test of the AudLabs API.',
'voice_id': 'English_CaptivatingStoryteller',
'speed': 1.0
}
)
with open('output.mp3', 'wb') as f:
f.write(response.content)
Response Headers
| Header | Description |
|---|---|
| Content-Type | audio/mpeg for MP3, audio/wav for WAV |
| X-Characters-Used | Number of characters consumed by this request |
| X-Credits-Remaining | Your remaining monthly credit balance |
List Voices
Returns a list of all available voices with their IDs and metadata.
const response = await fetch('https://app.audlabs.io/api/v1/voices', {
headers: { 'x-api-key': 'aud_your_api_key_here' }
});
const data = await response.json();
console.log(data.voices);
Check Balance
Returns your current monthly credit balance and usage statistics.
{
"success": true,
"credits": 4850000,
"totalCharacters": 150000,
"plan": "growth"
}
Voice IDs
Use these voice IDs in your generate requests. All voices are available on all plans.
This is a sample of available voices. AudLabs offers 190+ voices across 10+ languages โ the full list is available in your AudLabs dashboard under Voice Tools.
Error Codes
| Status | Code | Description |
|---|---|---|
| 401 | Unauthorized | Missing or invalid API key. Check your x-api-key header. |
| 402 | Payment Required | No active subscription or monthly credits exhausted. Subscribe at platform.audlabs.io. |
| 429 | Rate Limited | Exceeded 5 requests per minute. Slow down your request rate. |
| 400 | Bad Request | Missing required parameters or invalid values in request body. |
| 503 | Service Unavailable | Voice generation temporarily at capacity. Retry after a few seconds. |
| 500 | Server Error | Internal error. Contact hello@audlabs.io if this persists. |
Pricing
Credits are purchased monthly at platform.audlabs.io. 1 credit = 1 character. Credits expire at the end of each month.
| Plan | Monthly Price | Characters/Month | Cost per 1M chars |
|---|---|---|---|
| Starter | $15/mo | 3,000,000 | $5.00 |
| Growth | $40/mo | 10,000,000 | $4.00 |
| Pro | $90/mo | 20,000,000 | $4.50 |
Need a custom plan or have questions? Email hello@audlabs.io