Generate voice preview
/voices /previewGenerate a short audio sample of a voice. Returns the audio file itself, not JSON: audio/mpeg, or audio/wav for Gradium voices.
Request body
application/jsonvoiceIdstringrequiredThe voice ID to generate a preview for.
provider"cartesia" | "elevenlabs" | "gradium"requiredThe provider to use for the preview.
textstringCustom text for the preview. If omitted, a short default is used.
at most 2000 characters
assistantPromptstringPrompt of the assistant the voice is for. When
textis omitted, the preview is a few lines that assistant would say on a call.at most 100000 characters
speednumberSpeed for preview. Cartesia 0.6 to 1.5, ElevenLabs 0.7 to 1.2. Default 1.0.
0.6 to 1.5
volumenumberVolume for Cartesia preview (0.5 to 2.0). Ignored for other providers.
0.5 to 2
model"sonic-3" | "sonic-3.5" | "sonic-3.6"Cartesia model for the preview. Defaults to sonic-3.6. Ignored for other providers.
Response
200The body is the binary file itself (audio/mpeg).
Errors
- 400Invalid request: a field or parameter failed validation
{ "error": string } - 500Server error
{ "message"?: string, "error"?: string, "bodyErrors"?: {…} }
Error bodies carry an error (or message) string; a 400 adds bodyErrors.issues. See Errors.