Skip to main content
POST
Gradium TTS default

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-region
string

Override the default region for this request.

Body

application/json
text
string
required

Text to synthesize.

Minimum string length: 1
voice_id
string

Voice ID from the Gradium voice library or a custom voice ID.

output_format
enum<string>
default:wav

Output audio format.

Available options:
wav,
pcm,
pcm_8000,
pcm_16000,
pcm_24000,
opus,
ulaw_8000,
alaw_8000
encoding
enum<string>
default:wav

SLNG normalized output audio encoding (WebSocket streaming).

Available options:
wav,
linear16,
pcm,
opus,
mulaw,
alaw
language
enum<string>
default:en

Language hint for synthesis.

Available options:
en,
fr,
de,
es,
pt
temperature
number

Sampling temperature (stability). Lower is more stable.

Required range: 0 <= x <= 1.4
only_audio
boolean
default:true

HTTP only. When true, returns raw audio bytes instead of a JSON message stream.

Response

Success