Skip to main content
POST
Generate Voice Candidates

Authorizations

x-api-key
string
header
required

API key for authentication. Passed via the x-api-key header.

Body

application/json
prompt
string
required

The voice description, up to 500 characters. Must contain actual text, not only spaces.

Required string length: 1 - 500
language
enum<string>
required

Language the voice will speak. Shapes the accent and the delivery.

Available options:
en,
fr,
es,
pt,
de
n_samples
integer
default:1

Number of candidate voices to sample from the description. All candidates in one request are variations on the same character.

Required range: 1 <= x <= 5
json_config
VoiceGeneratorConfig · object | null

Advanced sampling options for voice generation. The defaults are tuned, so send only the keys you need.

Response

Successful Response

embeddings
GeneratedEmbedding · object[]
required