Audio
Text to Speech
Convert text to speech. Supports multiple speech models and voice options.
POST
Note: For speech model name settings, refer to the System Supported Speech Model List. The request/response parameter structure is fully compatible with OpenAI. When switching models, you only need to modify the corresponding model name. If the model request/response parameters are inconsistent with OpenAI, GeekAI will automatically convert and align them at the backend.
The response data format is fully compatible with OpenAI, returning the binary data of the audio file.
cURL Request Example
Authorizations
token
Body
application/json
Response
200
audio/mpeg
successful response
mp3 format audio