Authentication
JWT-based authentication with access and refresh tokens. Obtain tokens via /api/auth/login/ and include in the Authorization header
Integrate Duramo Lab's AI voice generation into your applications with our RESTful API. JWT authentication, usage tracking, and comprehensive endpoint coverage.
Everything you need to integrate TTS and voice cloning
JWT-based authentication with access and refresh tokens. Obtain tokens via /api/auth/login/ and include in the Authorization header
POST /api/tts/synthesize/ — Submit text, voice ID, and optional parameters (speed, pitch, emotion) to generate speech asynchronously
POST /api/voices/clone/ — Upload an audio file to create a custom AI voice model. Supports WAV, MP3, OGG, FLAC, and M4A
GET /api/auth/profile/ — Retrieve your current credit balance, usage statistics, and subscription tier details
Generate speech in 3 steps
Sign up for a free account and navigate to the API Keys page in your dashboard to generate an access token.
Include your JWT token in the Authorization header:
Authorization: Bearer <your_access_token>
Send a POST request to synthesize text:
curl -X POST https://duramolab.com/api/tts/synthesize/ \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"text": "Hello, welcome to Duramo Lab!",
"voice_id": "en-US-Neural2-F",
"speed": 1.0
}'
The API returns a task ID. Poll the status endpoint until complete:
GET /api/tts/status/<task_id>/
Complete list of available endpoints
POST /api/auth/login/ — Obtain JWT tokensPOST /api/auth/register/ — Create a new accountPOST /api/auth/refresh/ — Refresh your JWT tokenGET /api/auth/profile/ — Get account and usage infoPOST /api/tts/synthesize/ — Submit text for speech synthesisGET /api/tts/status/<id>/ — Poll synthesis statusGET /api/tts/history/ — View your synthesis historyGET /api/voices/ — List available voicesPOST /api/voices/clone/ — Upload audio to clone a voiceGET /api/voices/my/ — List your cloned voicesDELETE /api/voices/<id>/ — Delete a cloned voiceGET /api/projects/ — List your projectsPOST /api/projects/ — Create a new projectGET /api/subscription-plans/ — View available plansFree tier includes 35000 credits. No credit card required.
Get Your API Key