AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
AudioOpenAI Audio

Speech

Convert text to audio with the OpenAI Audio Speech API.

Submit text, voice, and output-format parameters. The response body contains binary audio that the client should save or process using the requested format.

POST/v1/audio/speech

Converts input text to speech and returns the result as binary audio content.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

Text-to-speech request parameters.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json