New: AI video tools. Cut, clip, caption and dub your videos. See all video tools →
Design

Generate designed speech

POST
/api/v1/generation/design

Generate speech using a natural language voice description.

Describe the desired voice in instruct_text (e.g. 'a deep male voice with an American accent, speaking confidently'). The model creates a new voice matching the description each time — results vary between calls. To reuse a designed voice, save it via POST /api/v1/voices and use POST /api/v1/generation/design/saved instead.

Query Parameters

sync?Sync

Wait for generation to complete and return audio directly

Defaultfalse

Request Body

application/json
  1. body
instruct_text*Instruct Text

Natural language description of the voice

target_text?Target Text

Text to generate speech for. Required for most models; for Dramabox, the instruct_text prompt contains both stage directions and spoken text.

Default""
language?Language

Target language. Query GET /api/v1/models/active for supported languages per variant.

Default"Auto"
generation_params?|

Advanced sampling parameters

model_family?|

TTS model to use. If omitted, uses the currently configured model.

voice_reference_path?|

Path to a reference audio file for voice conditioning (Dramabox only).

Response Body

Generation started (async) or completed result (sync).

application/json
  1. response
started*Started

Whether the generation job was enqueued

queue_position*Queue Position

Position in the generation queue (0 = next to run)

Example Request
curl -X POST 'http://127.0.0.1:8100/api/v1/generation/design' \  -H 'Content-Type: application/json' \  -d '{  "instruct_text": "A warm female voice with a British accent, speaking at a moderate pace"}'
Example Response
{  "started": true,  "queue_position": 0}