Request
This endpoint expects an object.
voice_descriptionstringRequired5-1000 characters
Description of the changes to make to the voice.
textstring or nullOptional100-1000 characters
Text to generate, text length has to be between 100 and 1000.
auto_generate_textbooleanOptionalDefaults to false
Whether to automatically generate a text suitable for the voice description.
loudnessdoubleOptional-1-1Defaults to 0.5
Controls the volume level of the generated voice. -1 is quietest, 1 is loudest, 0 corresponds to roughly -24 LUFS.
seedinteger or nullOptional0-2147483647
Random number that controls the voice generation. Same seed with same inputs produces same voice.
guidance_scaledoubleOptional0-100Defaults to 2
Controls how closely the AI follows the prompt. Lower numbers give the AI more freedom to be creative, while higher numbers force it to stick more to the prompt. High numbers can cause voice to sound artificial or robotic. We recommend to use longer, more detailed prompts at lower Guidance Scale.
stream_previewsbooleanOptionalDefaults to false
Determines whether the Text to Voice previews should be included in the response. If true, only the generated IDs will be returned which can then be streamed via the /v1/text-to-voice/:generated_voice_id/stream endpoint.
remixing_session_idstring or nullOptional
The remixing session id.
remixing_session_iteration_idstring or nullOptional
The id of the remixing session iteration where these generations should be attached to. If not provided, a new iteration will be created.
prompt_strengthdouble or nullOptional0-1
Controls the balance of prompt versus reference audio when generating voice samples. 0 means almost no prompt influence, 1 means almost no reference audio influence. Only supported when using the eleven_ttv_v3 model.
Response
Successful Response
previewslist of objects
The previews of the generated voices.
textstring
The text used to preview the voices.