POST
/
audio
/
speech
Create Speech
curl --request POST \
  --url https://api.siliconflow.com/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "fishaudio/fish-speech-1.5",
  "input": "The text to generate audio for",
  "voice": "fishaudio/fish-speech-1.5:alex"
}'
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.com/capabilities/text-to-speech#5

The response is of type file.