Lama Mani API

Integrate AI-powered audiobook creation directly into your applications. Build custom workflows with our powerful REST API.

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_KEY
Base URL

All API endpoints are relative to the base URL:

https://api.lamamani.com

Code 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/create
Create a new audiobook from text content

Parameters:

NameTypeRequiredDescription
textstringRequiredThe text content to convert
voice_idstringRequiredID of the voice to use
titlestringOptionalTitle of the audiobook
speednumberOptionalSpeaking speed (0.5-2.0)
GET/api/voices
Get list of available AI voices

Parameters:

NameTypeRequiredDescription
languagestringOptionalFilter by language code
genderstringOptionalFilter by gender (male/female)
GET/api/audiobooks/{id}
Get audiobook details and download links

Parameters:

NameTypeRequiredDescription
idstringRequiredAudiobook ID
GET/api/audiobooks/{id}/status
Check audiobook generation status

Parameters:

NameTypeRequiredDescription
idstringRequiredAudiobook ID

Ready to Start Building?

Get your API key today and start integrating AI-powered audiobook creation into your applications.