POST
/
audio
/
speech
Create Speech
curl --request POST \
  --url https://api.siliconflow.cn/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "fnlp/MOSS-TTSD-v0.5",
  "input": "[S1]Hello, how are you today?[S2]I'\''m doing great, thanks for asking![S1]That'\''s wonderful to hear "
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Body

application/json

Response

200
application/audio

Generate audio based on the input text. The data generated by the interface is in binary format and requires the user to process it themselves. Reference:https://docs.siliconflow.cn/capabilities/text-to-speech#5

The response is of type file.