TTS & Voice Cloning API — Developer Documentation

Integrate Duramo Lab's AI voice generation into your applications with our RESTful API. JWT authentication, usage tracking, and comprehensive endpoint coverage.

API Overview

Everything you need to integrate TTS and voice cloning

Authentication

JWT-based authentication with access and refresh tokens. Obtain tokens via /api/auth/login/ and include in the Authorization header

TTS Synthesis

POST /api/tts/synthesize/ — Submit text, voice ID, and optional parameters (speed, pitch, emotion) to generate speech asynchronously

Voice Cloning

POST /api/voices/clone/ — Upload an audio file to create a custom AI voice model. Supports WAV, MP3, OGG, FLAC, and M4A

Usage Tracking

GET /api/auth/profile/ — Retrieve your current credit balance, usage statistics, and subscription tier details

Quick Start

Generate speech in 3 steps

1. Get Your API Key

Sign up for a free account and navigate to the API Keys page in your dashboard to generate an access token.

2. Authenticate

Include your JWT token in the Authorization header:

Authorization: Bearer <your_access_token>

3. Generate Speech

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
  }'

4. Poll for Result

The API returns a task ID. Poll the status endpoint until complete:

GET /api/tts/status/<task_id>/

API Endpoints

Complete list of available endpoints

Authentication

  • POST /api/auth/login/ — Obtain JWT tokens
  • POST /api/auth/register/ — Create a new account
  • POST /api/auth/refresh/ — Refresh your JWT token
  • GET /api/auth/profile/ — Get account and usage info

Text to Speech

  • POST /api/tts/synthesize/ — Submit text for speech synthesis
  • GET /api/tts/status/<id>/ — Poll synthesis status
  • GET /api/tts/history/ — View your synthesis history
  • GET /api/voices/ — List available voices

Voice Cloning

  • POST /api/voices/clone/ — Upload audio to clone a voice
  • GET /api/voices/my/ — List your cloned voices
  • DELETE /api/voices/<id>/ — Delete a cloned voice

Projects & Billing

  • GET /api/projects/ — List your projects
  • POST /api/projects/ — Create a new project
  • GET /api/subscription-plans/ — View available plans

Start Building with Our API

Free tier includes 35000 credits. No credit card required.

Get Your API Key
🤖
JOGI
Online
Hi! I'm JOGI, your friendly AI assistant for DuramoLab! Ask me about features, pricing, TTS, voice cloning, or anything else. ✨