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:
  • gpt-4o-transcribe

Discount:
  • 30% off

Pricing:
  • Text Input: $1.75 / 1M Tokens

  • Text Output: $7 / 1M Tokens

  • Audio Input: $4.2 / 1M Tokens

Use Case:
  • Transcription

Model Name:
  • gpt-4o-mini-transcribe

Discount:
  • 30% off

Pricing:
  • Text Input: $0.875 / 1M Tokens

  • Text Output: $3.5 / 1M Tokens

  • Audio Input: $2.1 / 1M Tokens

Use Case:
  • Transcription

Model Name:
  • whisper-1

Discount:
  • 30% off

Pricing:
  • $0.0042 / Minute

Use Case:
  • Transcription

  • Translation

Model Name:
  • gpt-4o-mini-tts

Discount:
  • 30% off

Pricing:
  • Text Input: $0.42 / 1M Tokens

  • Audio Output: $8.4 / 1M Tokens

Use Case:
  • Speech Generation

Model Name:
  • tts-1-hd

  • tts-1-hd-1106

Discount:
  • 30% off

Pricing:
  • $21 / 1M Characters

Use Case:
  • Speech Generation

Model Name:
  • tts-1

  • tts-1-1106

Discount:
  • 30% off

Pricing:
  • $10.5 / 1M Characters

Use Case:
  • Speech Generation


Last updated