Everything you need to integrate audiobook creation into your workflow
Get up and running with the Lama Mani API in minutes
All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYAll API endpoints are relative to the base URL:
https://api.lamamani.comSee how to create your first audiobook with different programming languages
curl -X POST "https://api.lamamani.com/api/audiobooks/create" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Once upon a time, in a land far away...",
"voice_id": "voice_en_us_female_1",
"title": "My First Audiobook",
"speed": 1.0
}'const response = await fetch('https://api.lamamani.com/api/audiobooks/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
text: 'Once upon a time, in a land far away...',
voice_id: 'voice_en_us_female_1',
title: 'My First Audiobook',
speed: 1.0
})
});
const audiobook = await response.json();
console.log('Audiobook created:', audiobook.id);import requests
url = "https://api.lamamani.com/api/audiobooks/create"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"text": "Once upon a time, in a land far away...",
"voice_id": "voice_en_us_female_1",
"title": "My First Audiobook",
"speed": 1.0
}
response = requests.post(url, headers=headers, json=data)
audiobook = response.json()
print(f"Audiobook created: {audiobook['id']}")Complete reference for all available API endpoints
/api/audiobooks/create| Name | Type | Required | Description |
|---|---|---|---|
| text | string | Required | The text content to convert |
| voice_id | string | Required | ID of the voice to use |
| title | string | Optional | Title of the audiobook |
| speed | number | Optional | Speaking speed (0.5-2.0) |
/api/voices| Name | Type | Required | Description |
|---|---|---|---|
| language | string | Optional | Filter by language code |
| gender | string | Optional | Filter by gender (male/female) |
/api/audiobooks/{id}| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Audiobook ID |
/api/audiobooks/{id}/status| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Audiobook ID |