ElevenLabs TTS
ElevenLabs Text to Speech (TTS)
Endpoints Overview
Method
Endpoint
Description
Generate Speech
Request
curl -X POST https://api.openmind.org/elevenlabs/tts \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"text": "Hello, this is a test of the ElevenLabs text to speech API."
}'Request Body
Field
Type
Required
Default
Description
Response
Response Fields
Field
Type
Description
Usage Examples
Basic Text-to-Speech
Custom Voice and Speed
Full Configuration
Save Audio to File
With Environment Variables
Voice Configuration
Default Voice
Custom Voices
Speed Control
Output Formats
Error Handling
HTTP Status Codes
Code
Description
Error Response Format
Common Error Scenarios
Best Practices
Audio Decoding
Last updated
Was this helpful?
