Generate Speech
Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Body
Text to synthesize (1-5000 characters). Break tags must express time in seconds (for example, ); millisecond values are not supported.
1 - 5000Voice ID from the voice catalog. Professional voice clones use model speech generation instead.
Type of the input: 'text' for plain text, 'ssml' for SSML markup. Defaults to 'text'.
Speed multiplier (0.5-2.0).
0.5 <= x <= 2Base language code (e.g. 'en', 'pt', 'zh'). Optional — auto-detected from text when omitted.
Locale tag for Starfish (e.g. 'zh-HK'). ElevenLabs does not support locale selection; use language instead.
Bypass HeyGen's speech cache and request fresh synthesis. Normal speech quota applies. Defaults to false.
Speech engine override for this request only. Omit to use the voice's saved default, including your saved preference. Voices without a concrete saved default retain Starfish. Unsupported defaults or overrides return an error; engines are never silently substituted. Orca is the HeyGen voice engine. ElevenLabs model variants are selected through settings.model_id. The deprecated elevenlabs_v3 engine retains its existing behavior while callers and saved defaults migrate.
starfish, orca, elevenlabs, elevenlabs_v3 Request-only ElevenLabs model settings. Applied after saved preferences; valid for elevenlabs or the deprecated elevenlabs_v3 compatibility engine.
Response
Successful response

