Skip to main content
POST
Generate Speech

Authorizations

x-api-key
string
header
required

HeyGen API key. Obtain from your HeyGen dashboard.

Body

application/json
voice_id
string
required

Identifier of the voice used for speech synthesis.

Minimum string length: 1
text
string
required

Plain text to synthesize. SSML and break tags are not supported.

Required string length: 1 - 5000
language
string
required

Language code used for speech synthesis, such as en.

Minimum string length: 1
seed
integer | null

Optional best-effort deterministic generation seed.

Required range: 0 <= x <= 4294967295

Response

Successful response

data
CreateSpeechResponseData · object