Sandbox Mode
You can make up to 1,000 free calls by month to the Image Editing API using sandbox mode (100 max per day).
Sandbox mode is meant to be used for testing and prototyping, and will produce an image with a watermark.
To use sandbox mode, prepend sandbox_
to your API key. (Example: sandbox_xxxxxxxxxxxxxxxx
)
curl --request POST \
--url https://sdk.photoroom.com/v1/segment \
--header 'Accept: image/png, application/json' \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: sandbox_xxxxxxxxxxxxxxxx' \
--form image_file=@/path/to/image.jpg \
--output result-sandbox-mode.png
(original image)
regular API call
sandbox mode API call
Last updated
Was this helpful?