Skip to main content
POST
Voice Design

Authorizations

Authorization
string
header
required

HTTP: Bearer Auth

Headers

Content-Type
enum<string>
default:application/json
required

The media type of the request body. Must be set to application/json to ensure the data is sent in JSON format.

Available options:
application/json

Body

application/json

Voice design request parameters

prompt
string
required

Voice description.

preview_text
string
required

The text used for generating a preview audio sample.

Note: Generating preview audio incurs a fee of $30 per 1M characters.

Maximum string length: 500
voice_id
string

Custom voice ID for the generated voice. If not provided, a unique voice_id will be automatically created and returned.

Response

200 - application/json
voice_id
string

The generated voice ID, which can be used for speech synthesis.

trial_audio
string

The generated preview audio in hex-encoded format.

base_resp
object

Status code and details.