Console

Generate Voice

POST/v1/audio/voice/generations

Generate a voice or speech from text and a voice description.

Request parameters

FieldTypeRequiredDescription
model: stringRequired

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.

input: stringRequired

The text to generate speech from.

instruction: stringRequired

A description of the voice style, age, emotion, speaking rate, and so on.

response_format: stringOptional

Audio format for synchronous requests. For asynchronous tasks, use the format returned by the task query as the source of truth.

delivery_method: stringOptional

Result delivery method.

create_voice: booleanOptional

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.

async: booleanOptional

When set to true, creates an asynchronous task and immediately returns a task object.

webhook_url: stringOptional

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.