Skip to main content
Turn text into speech, and speech into text. Both endpoints are synchronous.

Text-to-speech

Generate spoken audio from text. The response body is the audio file itself.
string
required
Audio model id, e.g. elevenlabs-v3.
string
required
The text to speak.
string
Voice id, e.g. rachel (model dependent).
string
default:"mp3"
Output format, e.g. mp3, wav.
The response is the raw audio file. The cost of the generation is returned in the X-Askr-Cost response header.

Speech-to-text

Transcribe an audio file to text. Send the file as multipart/form-data.
string
required
Transcription model id, e.g. whisper-1.
file
required
The audio file to transcribe.
string
ISO code to hint the language (optional).

Response

string
The transcribed text (transcriptions only).
number
Cost of the request in USD.
Model ids are examples, so confirm the exact id and current price against the live /v1/models list.