Upload Video File (Video-to-Text)

This endpoint accepts direct video file uploads and transcribes the video content into text. The API returns a written transcript along with a task ID for tracking processing progress.

post

Endpoint for requesting video transcription

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
Acceptstring · enumRequiredDefault: application/jsonPossible values:
Body
videostring · binaryRequired

Video file to transcribe. Supported formats: MP4, MPEG, QuickTime (MOV), AVI, WMV, OGG. Maximum file size: 10 MB. Video must contain an audio stream.

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
post
/api/v1/client/videofile2txt
POST /api/v1/client/videofile2txt HTTP/1.1
Host: api.deapi.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: application/json
Content-Type: multipart/form-data
Content-Length: 96

{
  "video": "binary",
  "include_ts": true,
  "model": "whisper-3-large",
  "return_result_in_response": false
}
{
  "data": {
    "request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
  }
}
post

Endpoint for calculating price for video to text inference

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
Acceptstring · enumRequiredDefault: application/jsonPossible values:
Body
one ofOptional
or
Responses
post
/api/v1/client/videofile2txt/price-calculation
POST /api/v1/client/videofile2txt/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

{
  "video": "binary",
  "include_ts": true,
  "model": "whisper-3-large"
}
{
  "data": {
    "price": 0.25
  }
}

Last updated