Skip to main content
POST
Generate speech

Authorizations

X-API-Key
string
header
required

Your Phrase Platform API token in the X-API-Key header. A missing, invalid or expired token is answered with 401. 403 means the token is valid but the action is not allowed for it.

Body

application/json

The text to speak.

text
string
required

Text to speak, at most 500 characters (the limit of the text-to-speech tool of Studio).

Maximum string length: 500
voiceId
string
required

Voice from GET /v1/tts/voices or a saved voice from GET /v1/voices/clones.

engine
enum<string>

Engine id from GET /v1/tts/engines. Defaults to eleven_v3. An engine that is not available to your organization is refused with 400.

Available options:
eleven_v2,
eleven_v3,
eleven_v4,
eleven_v4_turbo,
azure_tts,
voiseed,
gemini_2_5_flash_tts
languageCode
string

Language of the text. Needed by some engines, and picks the pronunciation sets for that language.

pronunciations
object[]

Words to say a certain way, at most 200 together with the sets.

Maximum array length: 200
pronunciationIds
string<uuid>[]

Pronunciation sets from GET /v1/pronunciations to apply. At most 10.

Maximum array length: 10
stability
number

Voice stability, from 0 to 1, where the engine has it.

Required range: 0 <= x <= 1
similarity
number

Voice similarity, from 0 to 1, where the engine has it.

Required range: 0 <= x <= 1
seed
integer<int64>

Same seed and text give a similar result.

Required range: 0 <= x <= 4294967295

Response

The audio.

The response is of type file.