Page cover

AUDIO

Base-Path:

https://api.hyprlab.io/v1

Create Speech

curl https://api.hyprlab.io/v1/audio/speech \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "input": "The quick brown fox jumped over the lazy dog.",
    "voice": "alloy"
  }' \
  --output speech.mp3

Create Transcription

curl https://api.hyprlab.io/v1/audio/transcriptions \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F file="@/path/to/file/audio.mp3" \
  -F model="whisper-1"

Create Translation

curl https://api.hyprlab.io/v1/audio/translations \
  -H "Authorization: Bearer $HYPRLAB_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F file="@/path/to/file/german.m4a" \
  -F model="whisper-1"

🎧 Audio Models


Model Name:
Flat-Rate Pricing:

whisper-1

$0.006 / Request

tts-1

$0.015 / Request

tts-1-1106

$0.015 / Request

tts-1-hd

$0.03 / Request

tts-1-hd-1106

$0.03 / Request


Last updated