Skip to main content
POST
/
api
/
v1
/
client
/
img-rmbg
/
price-calculation
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v1/client/img-rmbg/price-calculation \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'image=<string>' \
  --form model=Ben2 \
  --form 0.image='@example-file'
{
  "data": {
    "price": 0.15
  }
}

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

Image background removal parameters

image
file
required

Image file to remove background from. Supported formats: JPG, JPEG, PNG, GIF, BMP, WebP. Maximum file size: 10 MB.

model
string
required

The background removal model to use

Example:

"Ben2"

Response

Calculated price for image background removal inference.

data
object