p-image-rmbg

Remove the background from an image and return a transparent PNG

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

Upload an image

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

Remove the background

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

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

Required Parameters

ParameterTypeDescription
imagestring (URI)Input image for transparent background removal