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.
cURL Request Example
Authorizations
token
Body
application/json
speech model
Example:
"tts-1"
input text
Example:
"Hi, nice to meet you!"
voice option
Example:
"alloy"
response format
Example:
"mp3"
speech speed(between 0.25-4.0)
Example:
1
auto retry times, default 0, means no retry
Example:
0
Response
successful response
mp3 format audio