Audio

Text to speech

Generates audio from input text using AI voice synthesis. Supports voice cloning.

post/audio/speech

Request

  • Base URL
    https://www.aimagicx.com/api/v1
  • Auth
    HTTP bearer

Request body

inputstring required

Text to synthesize

modelstring
voice'alloy' | 'echo' | 'fable' | 'onyx' | 'nova' | 'shimmer'
speednumber
response_format'mp3' | 'wav' | 'opus' | 'aac'
reference_audiostring uri nullable

URL for voice cloning

reference_textstring nullable

Transcript of reference audio

Response

Successful response

createdinteger
audio_urlstring uri
duration_secondsnumber
character_countinteger
modelstring
model_tierstring

Changes

No recorded changes to this operation across all 1 revision of this API.