Documentation Index
Fetch the complete documentation index at: https://docs.samuraiapi.in/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | ✅ | tts-1 or tts-1-hd |
input | string | ✅ | Text to convert (max 4096 chars) |
voice | string | ✅ | Voice preset (see below) |
response_format | string | — | mp3 (default), opus, aac, flac, wav |
speed | number | — | Speed: 0.25–4.0. Default: 1.0 |
Available Voices
| Voice | Character |
|---|---|
alloy | Neutral, versatile |
echo | Male, authoritative |
fable | British, storytelling |
onyx | Deep, powerful |
nova | Female, friendly |
shimmer | Female, soft |
Code Examples
Models
| Model | Quality | Latency | Price |
|---|---|---|---|
tts-1 | Standard | Lower | $7.50/1M chars |
tts-1-hd | High fidelity | Higher | $15/1M chars |
Samurai AI prices are 50% off.
tts-1 is $3.75/1M characters.