> ## Documentation Index
> Fetch the complete documentation index at: https://platform.monica.im/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove background

export const APIKeyHint = () => <Note>Follow the <a href="/en/quickstart">quickstart guide</a> to get your own API Key.</Note>;

<APIKeyHint />

The Remove Background API automatically detects the subject in an image and converts the background into transparent pixels.
This API is suitable for images with a clear distinction between the subject and the background.

See the [pricing page](/en/models-and-pricing#image-tools) for pricing.


## OpenAPI

````yaml POST /v1/image/tool/removebg
openapi: 3.1.0
info:
  title: Monica Open API Platform
  version: v1
servers: []
security: []
tags:
  - name: image.v1.ImageGenerationService
    x-displayName: image.v1.ImageGenerationService
  - name: image.v1.ImageToolService
    x-displayName: image.v1.ImageToolService
  - name: text.v1.HumanizeService
    x-displayName: text.v1.HumanizeService
paths:
  /v1/image/tool/removebg:
    post:
      tags:
        - image.v1.ImageToolService
      summary: ImageRemoveBackground
      operationId: image.v1.ImageToolService.ImageRemoveBackground
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/image.v1.ImageRemoveBackgroundRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/image.v1.ImageRemoveBackgroundResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    image.v1.ImageRemoveBackgroundRequest:
      type: object
      properties:
        image:
          type: string
          examples:
            - >-
              https://monica-public-dev.s3.us-east-1.amazonaws.com/ugc-files/image-gen/generation-sdxl/80ddf974-9253-48fa-bc34-9f86845a1037/2pyPWQwVKYdCr3RGP3Cbrz41Km0.png
          title: image
          description: URL of the original image.
      title: ImageRemoveBackgroundRequest
      required:
        - image
      additionalProperties: false
    image.v1.ImageRemoveBackgroundResponse:
      type: object
      properties:
        image:
          type: string
          examples:
            - >-
              https://monica-public-dev.s3.us-east-1.amazonaws.com/ugc-files/image-gen/removebg/13f7f5cf-48c6-4c36-b9a0-9d5ccb8496d2/2pySKsp6TBxm9ZC0o89LaElby6h.png
          title: image
          description: URL of the background removed image.
      title: ImageRemoveBackgroundResponse
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````