Create an API key
X-API-KEY
header with your requests.Make your first request
example.py
or example.js
, depending on your language of choice and add the following code:Run the code
output.mp3
file in your directory.X-API-KEY
header with your API key:
inputs
format with model_id:
stability
(0.0 - 1.0): Controls voice consistencysimilarity_boost
(0.0 - 1.0): Controls voice similarity to originalstyle
(0.0 - 1.0): Controls speaking styleuse_speaker_boost
(boolean): Enhances speaker clarityid
: Unique identifier for the history recorduser
: User information (fullname, avatar)history_id
: History tracking IDprompt
: The text that was converted to speechmodel
: Model used for generationvoice
: Voice used for generationconfig
: Configuration parameters usedcredits_used
: Number of credits consumedstatus
: Status of the generation (completed, processing, failed)shared_url
: Public shareable URL for the audiocreated_at
: Timestamp of creationaudio_url
: Direct URL to download the generated audio fileaudio_url
: