Skip to content

OpenAI TTS ​

Audio API for Text-to-Speech (TTS), converting text into natural speech.

Speech Synthesis ​

http
POST /v1/audio/speech
bash
curl --location --request POST 'https://neolink.com/api/v1/audio/speech' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API Key>' \
--data-raw '{
    "model": "<Model ID>",
    "input": "Hello, I am a voice conversion model",
    "voice": "alloy",
    "response_format": "mp3"
  }'
python
import requests

url = "https://neolink.com/api/v1/audio/speech"

headers = {
"Authorization": "Bearer <API Key>"
}

files = {
"model": (None, "<Model ID>"),
"input": (None, "Hello, I am a voice conversion model"),
"voice": (None, "alloy"),
"response_format": (None, "mp3"),
}

response = requests.post(url, headers=headers, files=files)

print(response.status_code)
print(response.text)

Supported Models: tts-1, tts-1-1106, tts-1-hd, tts-1-hd-1106