Photoroom API Documentation
Ask or search…

How do I make my first call?

To call the Remove Background API and remove the background of an image, you can run the following code in your terminal:
curl -H 'x-api-key: YOUR_API_KEY' \
-f \
-F 'image_file=@/absolute/path/to/image.jpg' \
-o photoroom-result.png
If you don't have an apiKey, here are the steps to create yours.
To go further, you can visit the API Reference to learn about all the available parameters (format, channels, bg_color, size, crop).