API Features
Everything you need to integrate audiobook creation into your workflow
Fast Processing
Generate audiobooks in minutes with our optimized API endpoints
Secure & Reliable
Enterprise-grade security with 99.9% uptime SLA
Global CDN
Fast audio delivery worldwide through our global content delivery network
Developer Friendly
RESTful API with comprehensive documentation and SDKs
Quick Start Guide
Get up and running with the Lama Mani API in minutes
Authentication
All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYBase URL
All API endpoints are relative to the base URL:
https://api.lamamani.comCode Examples
See how to create your first audiobook with different programming languages
curl
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
}'javascript
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);python
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']}")API Endpoints
Complete reference for all available API endpoints
POST
/api/audiobooks/createCreate a new audiobook from text content
Parameters:
| 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) |
GET
/api/voicesGet list of available AI voices
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| language | string | Optional | Filter by language code |
| gender | string | Optional | Filter by gender (male/female) |
GET
/api/audiobooks/{id}Get audiobook details and download links
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Audiobook ID |
GET
/api/audiobooks/{id}/statusCheck audiobook generation status
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Audiobook ID |