Labs

Create TTS Task

Create a Text-to-Speech task with Labs.

post/v1/labs/task

Request body

inputstring required

Text to convert to speech

voice_idstring required

Voice ID (from /v1/labs/voices)

model_id'eleven_multilingual_v2' | 'eleven_turbo_v2_5' | 'eleven_flash_v2_5' | 'eleven_v3' required

Model ID

stabilitynumber

Stability (0-1)

similaritynumber

Similarity (0-1)

stylenumber

Style exaggeration (0-1)

speednumber

Speed (0.7-1.2)

use_speaker_boostboolean

Speaker boost

call_back_urlstring

Callback URL — will be called when the task completes

Example request

{
  "input": "Xin chào, đây là GenAIPro",
  "model_id": "eleven_multilingual_v2"
}

Response

Task created

task_idstring

ID of the created task

Example response

{
  "task_id": "abc123-def456"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.