Remove background
POST/v1/style-dna/remove-background
Remove the background of the image specified as parameter. The image should not exceed the 2048x2048 dimension and the 1.763.584 total area
Request
- application/json
Body
required
Possible values: [png, webp]
Default value: png
Specify the format of the output image: png or webp
Responses
- 201
- 400
- 401
- 403
- 429
- 500
- 504
Generated image response
- application/json
- Schema
- Example (from schema)
Schema
{
"imageUrl": "string",
"expiresAt": "2024-07-29T15:51:28.071Z",
"creditsUsed": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Gateway Timeout
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}