Skip to main content
POST
/
api
/
v1
/
client
/
vid2txt
/
price-calculation
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v1/client/vid2txt/price-calculation \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "include_ts": true,
  "model": "WhisperLargeV3"
}
'
{
  "data": {
    "price": 0.25
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
enum<string>
default:application/json
required
Available options:
application/json

Body

application/json

Video transcription parameters

video_url
string
required

URL of video to transcribe

Example:

"https://www.youtube.com/watch?v=jNQXAC9IVRw"

include_ts
boolean
required

Should transcription include timestamps

model
string

The model to use for transcription. Available models can be retrieved via the GET /api/v1/client/models endpoint.

Example:

"WhisperLargeV3"

Response

Calculated price for video to text inference.

data
object