---
title: "Clean up"
method: POST
path: "/v1/image/cleanup"
tags: ["Images"]
---

# Clean up

`POST /v1/image/cleanup`

Remove unwanted elements from an image using a mask to specify areas to clean

## Headers

- `accept` 'image/webp' | 'image/png' | 'image/jpeg'

## Response `200`

The image was successfully cleaned.

## Other responses

- `400` — Bad request. May be missing required inputs or may have badly formatted inputs or options.
- `500` — Internal server error. Unable to clean image.

---

[API](https://skmtc.net/jasper/apis/jasper-api.md) · [All operations](https://skmtc.net/jasper/apis/jasper-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jasper/jasper-api/revisions/438914d9525e/schema)
