/audio/transcriptions
Overview
| Feature | Supported | Notes |
|---|---|---|
| Cost Tracking | ✅ | Works with all supported models |
| Logging | ✅ | Works across all integrations |
| Fallbacks | ✅ | Works between supported models |
| Loadbalancing | ✅ | Works between supported models |
| Supported Providers | openai, azure, vertex_ai, gemini, deepgram, groq, fireworks_ai |
Quick Start
Python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.haimaker.ai/v1"
)
audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
model="openai/whisper-1",
file=audio_file
)
print(transcript.text)
cURL
curl https://api.haimaker.ai/v1/audio/transcriptions \
-H "Authorization: Bearer YOUR_API_KEY" \
-F file=@"speech.mp3" \
-F model="openai/whisper-1"
Supported Providers
- OpenAI (
openai/whisper-1) - Azure (
azure/whisper) - Groq (
groq/whisper-large-v3) - Fireworks AI
- Deepgram
Using Different Models
OpenAI Whisper
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.haimaker.ai/v1"
)
audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
model="openai/whisper-1",
file=audio_file
)
Groq Whisper
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.haimaker.ai/v1"
)
audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
model="groq/whisper-large-v3",
file=audio_file
)
Fallbacks
You can configure fallbacks for audio transcription to automatically retry with different models if the primary model fails.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.haimaker.ai/v1"
)
audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
model="groq/whisper-large-v3",
file=audio_file,
extra_body={
"fallbacks": ["openai/whisper-1"]
}
)
cURL with Fallbacks
curl https://api.haimaker.ai/v1/audio/transcriptions \
-H "Authorization: Bearer YOUR_API_KEY" \
-F file=@"speech.mp3" \
-F model="groq/whisper-large-v3" \
-F 'fallbacks[]=openai/whisper-1'