Developer API
silentLabs REST API
Generate studio-grade audio from any backend in a single HTTP call.
Authentication
All requests require a Bearer token in the Authorization header. You can generate a key from your Account page.
Authorization: Bearer sk_silent_xxxxxxxxxxxxxxxxxxxxxxxxText to Speech
POST /api/v1/tts — Returns audio/mpeg.
curl https://YOUR-DOMAIN/api/v1/tts \
-H "Authorization: Bearer sk_silent_..." \
-H "Content-Type: application/json" \
-d '{
"text": "Hello from silentLabs.",
"voice_id": "21m00Tcm4TlvDq8ikWAM",
"model_id": "eleven_multilingual_v2",
"stability": 0.5,
"similarity_boost": 0.75,
"style": 0
}' --output speech.mp3Response headers
X-Credits-Remaining— Characters left on your plan after the call.Content-Type— audio/mpeg
Error codes
- 401 — Missing or invalid API key
- 402 — Not enough credits
- 403 — API access disabled or account blocked
- 400 — Bad request (missing fields, text too long)
Ready to start building?
Get your API key