AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
AudioHailuo Audio

Speech synthesis

Synthesize Hailuo speech through the OpenAI Audio Speech API.

Use input in the request body to submit the text to synthesize. This endpoint is intended for clients that use the OpenAI Audio Speech request format.

POST/v1/audio/speech

Submit a Hailuo speech-synthesis request with the OpenAI Audio Speech request format. The platform routes the request to the corresponding Hailuo speech capability according to the model ID.

Currently visible models include speech-2.8-hd, speech-2.8-turbo, speech-2.6-hd, speech-2.6-turbo, speech-02-hd, speech-02-turbo, speech-01-hd, and speech-01-turbo. Actual availability is determined by the model list returned for the current API key.

Authorization

bearerAuth
AuthorizationBearer <token>

Use Bearer your-api-key in the Authorization header.

In: header

Request Body

application/json

Hailuo speech-synthesis request.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

audio/mpeg

application/json