Authentication
JWT auth. Access and refresh tokens. Hit /api/auth/login/ and add the header.
JWT authentication. Versioned endpoints. Usage tracking. Ship voice features today.
Everything you need to integrate TTS and voice cloning
JWT auth. Access and refresh tokens. Hit /api/auth/login/ and add the header.
POST /api/tts/synthesize/ — Send text, voice ID, speed, pitch, emotion. Async.
POST /api/voices/clone/ — Upload audio. Get a custom model. WAV, MP3, OGG, FLAC, M4A.
GET /api/auth/profile/ — Credit balance, usage stats, subscription tier.
Generate speech in 4 steps
Sign up free. Open the API Keys page in your dashboard. Generate a token.
Add your JWT to the Authorization header:
Authorization: Bearer <your_access_token>
POST to synthesize. Send text, voice, and params:
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
}'
You get a task ID. Poll the status endpoint until it's done:
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 plans