Generate audio (MP3, WAV, or OGG) using ElevenLabs-powered voices.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired
Example
{"model":"elevenlabs/eleven_turbo_v2","input":"Welcome to CCAPI, your unified AI gateway.","voice":"aria","output_format":"mp3","response_format":"url"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://prod-cn.your-api-server.com/audio/speech' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "elevenlabs/eleven_turbo_v2",
"input": "Welcome to CCAPI, your unified AI gateway.",
"voice": "aria",
"output_format": "mp3",
"response_format": "url"
}'