Skip to main content
POST
/
api
/
v1
/
client
/
vid-upscale
/
price-calculation
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v1/client/vid-upscale/price-calculation \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'video=<string>' \
  --form model=RealESRGAN_x4plus \
  --form scale=4 \
  --form 0.video='@example-file'
{
  "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

multipart/form-data

Video upscaling parameters

video
file
required

Video file to upscale. Supported formats: MP4, MPEG, QuickTime, AVI, WMV, OGG. Maximum file size: 10 MB.

model
string
required

The upscaling model to use

Example:

"RealESRGAN_x4plus"

scale
integer | null

Optional upscale factor. Only allowed for models that support a configurable scale.

Required range: 1 <= x <= 16
Example:

4

Response

Calculated price for video upscaling inference.

data
object