POST
/
v1
/
text-to-voice
/
create-previews

Follow our Voice Design Prompt Guide for best results.

When you hit generate, we’ll create three voice previews. You will be charged credits equal to the length of the text you submit (you are charged this amount once per call, even though you receive three voice previews). “Text” should be no less than 100 characters and no more than 1k characters.

Headers

xi-api-key
string

Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Body

application/json
voice_description
string
required

Description to use for the created voice.

text
string
required

Text to generate, text length has to be between 100 and 1000.

Required string length: 100 - 1000

Response

200 - application/json
previews
object[]
required