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

modelstringOptional

The model to use for generation

Example: whisper-3-large
return_result_in_responseboolean | nullableOptional

If true, the result will be returned directly in the response instead of only download url. Optional parameter.

Default: falseExample: false
Responses
200

ID of the inference request.

application/json
post
/api/v1/client/audiofile2txt
POST /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
post
/api/v1/client/audiofile2txt/price-calculation
POST /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