Audio Transcriptions

POST /v1/audio/transcriptions

Transcribe audio files to text using Whisper and GPT-4o models, with support for multiple languages and output formats.

Request

POST https://api.chuizi.ai/v1/audio/transcriptions
Content-Type: multipart/form-data

Authentication

Authorization: Bearer ck-your-api-key

Parameters

ParameterTypeRequiredDefaultDescription
filefileYesAudio file to transcribe. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, webm
modelstringYesModel name, e.g. openai/whisper-1, openai/gpt-4o-mini-transcribe

Request Example (multipart)

POST https://api.chuizi.ai/v1/audio/transcriptions
Content-Type: multipart/form-data; boundary=----FormBoundary

------FormBoundary
Content-Disposition: form-data; name="file"; filename="recording.mp3"
Content-Type: audio/mpeg

(binary audio data)
------FormBoundary
Content-Disposition: form-data; name="model"

openai/whisper-1
------FormBoundary--

Response

JSON format (default)

config.json
json
{
  "text": "Hello, this is a test recording for the transcription API."
}

Code Examples

terminal
bash
curl -X POST https://api.chuizi.ai/v1/audio/transcriptions \
  -H "Authorization: Bearer ck-your-key" \
  -F file=@recording.mp3 \
  -F model="openai/whisper-1" \
  -F language="en"

Next Steps