MaxAPI Docs
  1. Audio
MaxAPI Docs
  • Quick Start
  • OpenAI API
    • About OpenAI Compatible API
    • Chat
      • Chat Completion
    • Images
      • Create Image
    • Audio
      • Text To Speech API
        POST
  • Midjourney Open API
    • About Midjourney and Prices
    • Submit Imagine Task
      POST
    • Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      POST
    • Submit Blend Task
      POST
    • Submit Modal Task
      POST
    • Submit Describe Task
      POST
    • Submit Shorten Task
      POST
    • Submit FaceSwap Task
      POST
    • Upload Files to Discord
      POST
    • Specify ID Query Task
      GET
    • Specify ID Query Task (fetch)
      GET
    • Specify the ID List Query Task
      GET
    • Obtain the seed of the Task Image
      GET
  • Luma video
    • Luma Task Creation
      POST
    • Luma Expand Video
      POST
    • Luma Query Task
      GET
    • Luma Download video
      GET
  • Suno Music
    • Generate music
      POST
    • Query task
      GET
  • Anthropic Claude
    • Claude Chat Completion
  • Flux API
    • Create Image
  1. Audio

Text To Speech API

Main URLs
https://api.maxapi.ai
Main URLs
https://api.maxapi.ai
POST
https://api.maxapi.ai
/v1/audio/speech
OpenAI's latest text-to-speech (TTS) model

Request

Authorization
Provide your bearer token in the
Authorization
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
}'

Responses

🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2024-07-19 16:18:37
Previous
Create Image
Next
About Midjourney and Prices
Built with