Skip to main content

Audio

Speech-to-text (transcription) and text-to-speech, OpenAI-compatible.

Transcription (speech-to-text)

POST https://gateway.primex.work/v1/audio/transcriptions

curl https://gateway.primex.work/v1/audio/transcriptions \
-H "Authorization: Bearer prx-YOUR_KEY" \
-F model="whisper" \
-F file="@meeting.mp3"
ModelNotesBilling
whisperGeneral-purpose STTper audio minute ($0.017)
gpt-4o-transcribeHigh-accuracyper token
gpt-4o-transcribe-diarizeAdds speaker labelsper token
gpt-4o-mini-transcribeFast, economicalper token

Text-to-speech

POST https://gateway.primex.work/v1/audio/speech

curl https://gateway.primex.work/v1/audio/speech \
-H "Authorization: Bearer prx-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini-tts",
"input": "Welcome to Primex.",
"voice": "alloy"
}' --output speech.mp3
ModelBilling
gpt-4o-mini-ttsper 1M characters

The audio route reads the requested model and routes accordingly, so the same endpoint serves every audio model in the catalogue.