---
title: "[Deprecated] Generate A Voice Preview From Description"
method: POST
path: "/v1/text-to-voice/create-previews"
tags: ["text-to-voice"]
deprecated: true
---

# [Deprecated] Generate A Voice Preview From Description

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

> **Deprecated.**

**Deprecated.** Use `POST /v1/text-to-voice/design` instead. Generate a custom voice based on voice description. This method returns a list of voice previews. Each preview has a generated_voice_id and a sample of the voice as base64 encoded mp3 audio. To create the voice use `POST /v1/text-to-voice` with the chosen `generated_voice_id`.

## Query parameters

- `output_format` 'mp3_22050_32' | 'mp3_24000_48' | 'mp3_44100_32' | 'mp3_44100_64' | 'mp3_44100_96' | 'mp3_44100_128' | 'mp3_44100_192' | 'pcm_8000' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_32000' | 'pcm_44100' | 'pcm_48000' | 'ulaw_8000' | 'alaw_8000' | 'opus_48000_32' | 'opus_48000_64' | 'opus_48000_96' | 'opus_48000_128' | 'opus_48000_192'

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Request body

- VoicePreviewsRequestModel
  - `voice_description` string, required — Description to use for the created voice.
  - `text` string, nullable — Text to generate, text length has to be between 100 and 1000.
  - `auto_generate_text` boolean — Whether to automatically generate a text suitable for the voice description.
  - `loudness` number — Controls the volume level of the generated voice. -1 is quietest, 1 is loudest, 0 corresponds to roughly -24 LUFS.
  - `quality` number — Higher quality results in better voice output but less variety.
  - `seed` integer, nullable — Random number that controls the voice generation. Same seed with same inputs produces same voice.
  - `guidance_scale` number — 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.
  - `should_enhance` boolean — Whether to enhance the voice description using AI to add more detail and improve voice generation quality. When enabled, the system will automatically expand simple prompts into more detailed voice descriptions. Defaults to False

## Response `200`

Successful Response

- VoicePreviewsResponseModel
  - `previews` VoicePreviewResponseModel[], required — The previews of the generated voices.
    - `audio_base_64` string, required — The base64 encoded audio of the preview.
    - `generated_voice_id` string, required — The ID of the generated voice. Use it to create a voice from the preview.
    - `media_type` string, required — The media type of the preview.
    - `duration_secs` number, required — The duration of the preview in seconds.
    - `language` string, nullable, required — The language of the preview.
  - `text` string, required — The text used to preview the voices.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/4bbf59c13c42/schema)
