Generate Voice
/v1/audio/voice/generationsGenerate a voice or speech from text and a voice description.
Request parameters
Model ID. Use the stable model ID for regular calls, or a snapshot model ID when you need to reproduce results from a fixed version.
The text to generate speech from.
A description of the voice style, age, emotion, speaking rate, and so on.
Audio format for synchronous requests. For asynchronous tasks, use the format returned by the task query as the source of truth.
Result delivery method.
Set to true only when delivery_method=url. After successful creation, the JSON response includes a voice_id for subsequent TTS or TTSD requests. If omitted or set to false, the request only generates a speech preview.
When set to true, creates an asynchronous task and immediately returns a task object.
The HTTPS URL called back after the asynchronous task completes.
Return value
The API returns a preview of the speech generated from the voice description. A synchronous request can return audio directly or provide an audio URL with delivery_method=url; passing async=true returns a task ID. Use the Get a task endpoint to retrieve the result later.