Documentation

API Reference
POST

Audio Transcriptions

/v1/audio/transcriptions

Transcribes audio into the input language.

Interactive Example

Request & Response Example

curl https://api.a4f.co/v1/audio/transcriptions \
-H "Authorization: Bearer YOUR_A4F_API_KEY" \
-F file=@/path/to/your/audio.mp3 \
-F model="provider-3/whisper-1"

Headers

Authorization

string
Required
Bearer token for authentication.

Content-Type

string
Required
Must be multipart/form-data. This is handled by your HTTP client.

Request Body (Multipart Form)

model

string
Required
ID of the transcription model to use. Must be of type audio/transcriptions.

file

file
Required
The audio file object to transcribe.

Response Body (200 OK)

text

string
The transcribed text.

duration

number
The duration of the audio in seconds.

Was this page helpful?