← All models
Synthesizes speech from text using a built-in voice preset or an uploaded custom voice.
Details
- Accepts
- text
Pricing
- Price
- 10.21 cr / minute
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| textrequired | string | Text to synthesize, up to 500 characters. |
| voice | — | Built-in voice preset. Cannot be combined with voice_id. |
| voice_id | — | Custom voice ID returned by /files/upload with purpose='voice'. Cannot be combined with voice. |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. |
Output
| Field | Type | Description |
|---|---|---|
| audio | — | The generated audio file. |
| song_id | — | Reusable identifier for this audio. Pass it to endpoints that accept song_id. |
| duration | — | Duration of the generated audio in milliseconds, when available. |
| lyrics_sections | — | Timed lyric sections for the generated audio, when available. |