Skip to Content
ModelSell Docs
Audio & MoreElevenLabs Audio Integration

ElevenLabs Voice Design

Generate and decode ElevenLabs voice previews from a written description through ModelSell.

Use POST /elevenlabs/v1/text-to-voice/design to generate a set of voice previews from a written description. Choose eleven_ttv_v3 for generation with optional reference audio, or eleven_multilingual_ttv_v2, the default when model_id is omitted. Design a voice

Generate previews

Authenticate with xi-api-key or Authorization: Bearer using your ModelSell API key. The key needs access to the selected model, and the upstream channel needs the ElevenLabs voice_generation scope. ElevenLabs voice generation permission

Set your environment as shown in the ElevenLabs quickstart.

curl --fail-with-body "$MODELSELL_BASE_URL/elevenlabs/v1/text-to-voice/design?output_format=mp3_44100_128" \
  -H "xi-api-key: $MODELSELL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
    "model_id": "eleven_ttv_v3",
    "voice_description": "A calm adult narrator with clear articulation and a gentle, even pace.",
    "auto_generate_text": true
  }' \
  --output voice-previews.json
FieldLocationBehavior
voice_descriptionJSON, required20–1,000 characters. Describe qualities such as accent, timbre, pace, and delivery.
model_idJSONeleven_ttv_v3 or eleven_multilingual_ttv_v2
textJSONCustom preview script, 100–1,000 characters when supplied.
auto_generate_textJSONSet to true to generate a preview script automatically. Defaults to false.
loudnessJSON-1 to 1, default 0.5. Controls preview volume.
guidance_scaleJSON0 to 100, default 5. Higher values follow the description more closely.
qualityJSON-1 to 1. Higher values favor quality over variation between previews.
seedJSONInteger from 0 to 2147483647 for repeatable inputs.
should_enhanceJSONSet to true to expand the voice description automatically. Defaults to false.
reference_audio_base64, prompt_strengthJSONOptional controls for eleven_ttv_v3. The latter ranges from 0 to 1 and adjusts the influence of the prompt relative to the reference.
output_formatQuerySelects the preview encoding. Format availability depends on the upstream plan.

Read the response

The JSON contains text, the script used for the preview, and previews, an array of candidate voices. Each item includes audio_base_64, generated_voice_id, media_type, and duration_secs. A preview can also include language. For the MP3 request above, this example decodes the first candidate. Response fields

python3 - <<'PY'
import base64
import json
from pathlib import Path

result = json.loads(Path("voice-previews.json").read_text())
preview = result["previews"][0]
Path("voice-preview.mp3").write_bytes(base64.b64decode(preview["audio_base_64"]))
PY

Preview IDs and saved voices

The ModelSell endpoint covers inline previews. Omit stream_previews, remixing_session_id, and remixing_session_iteration_id to receive the embedded audio. generated_voice_id identifies a preview in the generating ElevenLabs workspace. Use a saved voice_id that your ModelSell channel can access for subsequent speech synthesis or voice changing.

Saving a preview as a reusable voice, streaming a preview by ID, and remixing an existing voice are separate ElevenLabs operations. Use the generating workspace and an account or API key authorized for the corresponding operation. Create a voice · Stream a voice preview · Remix a voice

ModelSell charges Voice Design per request. Check the model rate in the ModelSell console. For permission errors, confirm the selected model and the upstream voice_generation scope, and keep the X-Oneapi-Request-Id response header for support.

On this page