Generate ultra-realistic audio from text. This endpoint supports multiple models, voices, and advanced features like word-level timestamps.
Endpoint
POST https://sonna.web.id/api/v1/audio/speechRequest Parameters
Response
The API returns a JSON object with a link to the generated audio file hosted on our ultra-fast CDN.
Standard Response
json
Response with Timestamps
If
word_timestamps is set to true:json
Credits Consumption
Each character in the
input (including spaces) consumes 1 character credit. If you have insufficient credits, the API returns a 402 Payment Required error.