cURL
curl --request POST \ --url https://api.deapi.ai/api/v2/images/upscales/price \ --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 } }
Estimate the price of an image upscale request.
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?