Upload Audio File (Audio-to-Text)
This endpoint accepts direct audio file uploads and transcribes the audio content into text. The API returns a written transcript along with a task ID for tracking processing progress.
post
Endpoint for requesting audio transcription
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
Acceptstring · enumRequiredDefault:
application/jsonPossible values: Body
audiostring · binaryRequired
Audio file to transcribe. Supported formats: AAC, MP3, OGG, WAV, WebM, FLAC. Maximum file size: 10 MB.
include_tsbooleanRequired
Should transcription include timestamps
modelstringOptionalExample:
The model to use for generation
whisper-3-largereturn_result_in_responseboolean | nullableOptionalDefault:
If true, the result will be returned directly in the response instead of only download url. Optional parameter.
falseExample: falseResponses
200
ID of the inference request.
application/json
401
Unauthorized user.
application/json
404
Unauthorized user.
application/json
post
/api/v1/client/audiofile2txtPOST /api/v1/client/audiofile2txt HTTP/1.1
Host: api.deapi.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/json
Content-Type: multipart/form-data
Content-Length: 96
{
"audio": "binary",
"include_ts": true,
"model": "whisper-3-large",
"return_result_in_response": false
}{
"data": {
"request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
}
}post
Endpoint for requesting audio transcription price
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
Acceptstring · enumRequiredDefault:
application/jsonPossible values: Body
one ofOptional
or
Responses
200
ID of the inference request.
application/json
401
Unauthorized user.
application/json
404
Unauthorized user.
application/json
post
/api/v1/client/audiofile2txt/price-calculationPOST /api/v1/client/audiofile2txt/price-calculation HTTP/1.1
Host: api.deapi.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/json
Content-Type: multipart/form-data
Content-Length: 62
{
"audio": "binary",
"include_ts": true,
"model": "whisper-3-large"
}{
"data": {
"request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
}
}Last updated