header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
object{0}
Example
{"model":"tts-1","input":"The quick brown fox jumped over the lazy dog.","voice":"alloy","response_format":"mp3","speed":1}
Request 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 'https://api.maxapi.ai/v1/audio/speech' \
--header'Content-Type: application/json' \
--data-raw'{
"model":"tts-1",
"input":"The quick brown fox jumped over the lazy dog.",
"voice":"alloy",
"response_format":"mp3",
"speed":1
}'