Pixelcut's API at https://api.developer.pixelcut.ai/v1 removes backgrounds and upscales images from an image_url, in JSON.
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
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"}'
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}'