Skip to main content
POST
/
api
/
v2
/
images
/
background-removals
/
price
cURL
curl --request POST \
  --url https://api.deapi.ai/api/v2/images/background-removals/price \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'image=<string>' \
  --form model=RMBG-1.4 \
  --form 0.image='@example-file'
{
  "data": {
    "price": 0.15
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.deapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

Estimate the cost of an image background removal job before submitting it.

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:

"RMBG-1.4"

Response

Calculated price for image background removal inference.

data
object