---
title: "p-image-rmbg"
description: "Remove the background from an image (transparent PNG)"
url: "https://docs.api.pruna.ai/guides/models/p-image-rmbg"
image: "https://docs.api.pruna.ai/_og/d/c_Ocean.takumi,title_p-image-rmbg,description_Remove+the+background+from+an+image+(transparent+PNG),props_eyJ0aGVtZSI6eyJtb2RlIjoibGlnaHQiLCJjb2xvcnMiOnsicHJpbWFyeSI6IiM3YzNhZWQifX19,p_Ii9ndWlkZXMvbW9kZWxzL3AtaW1hZ2Utcm1iZyI,s_1YiQEfLC4Mi74yip.png"
---

# p-image-rmbg

Remove the background from an image and return a transparent PNG

## [Overview](#overview)

p-image-rmbg takes an input image and returns the same image with the background removed (transparent PNG). Price is fixed for any image size.

**Rate Limit:** 500 requests per minute

**Category:** Image Editing

**Pricing:** $0.005 per output

## [Quickstart](#quickstart)

### [Upload an image](#upload-an-image)

```bash
curl -X POST "https://api.pruna.ai/v1/files" \
  -H "apikey: YOUR_API_KEY" \
  -F "content=@/path/to/your/image.jpg"
```

### [Remove the background](#remove-the-background)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Model: p-image-rmbg' \
  -d '{
    "input": {
      "image": "https://api.pruna.ai/v1/files/fqadqq42xq"
    }
  }'
```

### [Synchronous request](#synchronous-request)

```bash
curl -X POST 'https://api.pruna.ai/v1/predictions' \
  -H 'Content-Type: application/json' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Model: p-image-rmbg' \
  -H 'Try-Sync: true' \
  -d '{
    "input": {
      "image": "https://api.pruna.ai/v1/files/fqadqq42xq"
    }
  }'
```

## [Parameters](#parameters)

### [Required Parameters](#required-parameters)

| Parameter | Type         | Description                                    |
| :-------- | :----------- | :--------------------------------------------- |
| image     | string (URI) | Input image for transparent background removal |