How to hit the Pixelcut API

Pixelcut's API at https://api.developer.pixelcut.ai/v1 removes backgrounds and upscales images from an image_url, in JSON.

Authentication

Get a key from Pixelcut's developer dashboard and send it as the X-API-KEY header. In the examples it's written {{PIXELCUT_API_KEY}}.

Full reference: https://www.pixelcut.ai/docs/developer-guide

Remove a background

curl -X POST https://api.developer.pixelcut.ai/v1/remove-background \
  -H "X-API-KEY: {{PIXELCUT_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://www.remove.bg/example.jpg"}'
Run in PostTaco

Upscale an image

curl -X POST https://api.developer.pixelcut.ai/v1/upscale \
  -H "X-API-KEY: {{PIXELCUT_API_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://www.remove.bg/example.jpg", "scale": 2}'
Run in PostTaco