Creates speech audio from text. Use the specialized endpoint when required by the control panel.
curl --request POST \
--url https://api.aiearth.dev/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": "<string>",
"voice": "<string>",
"format": "mp3"
}
'"<string>"api-s1 系列端点。Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Audio response
The response is of type file.
curl --request POST \
--url https://api.aiearth.dev/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": "<string>",
"voice": "<string>",
"format": "mp3"
}
'"<string>"