cURL
curl --request POST \ --url https://api.deapi.ai/api/v1/client/img-upscale/price-calculation \ --header 'Accept: <accept>' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'image=<string>' \ --form model=RealESRGAN_x4plus \ --form 0.image='@example-file'
{ "data": { "price": 0.15 } }
Endpoint for calculating price for image upscaling inference
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
application/json
Image upscaling parameters
Image file to upscale. Supported formats: JPG, JPEG, PNG, GIF, BMP, WebP. Maximum file size: 10 MB.
The upscaling model to use
"RealESRGAN_x4plus"
Calculated price for image upscaling inference.
Show child attributes
Was this page helpful?