Hi everyone, I’m having an issue with the Photoroom API. I’ve already switched to the Live API key (I’m not using the Sandbox key), but the processed images still show a watermark.
Does anyone know why this might be happening or how to fix it?
Thanks in advance for your help!
Hi There,
Which endpoint are you using?
Could you share more details from the call params?
Thank you!
1 Like
Hello again, and thanks for your help.
According to the Photoroom documentation, Sandbox mode produces watermarked images and is enabled by prefixing sandbox_
to the API key (up to 1,000 free calls/month):
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
In my case, I am not using the sandbox_
prefix—I’m using my Live key—and my React call looks like this:
const apiResponse = await fetch('https://sdk.photoroom.com/v1/segment', {
method: 'POST',
headers: {
'x-api-key': process.env.REACT_APP_PHOTOROOM_API_KEY,
'Accept': 'image/png',
'Content-Type': 'multipart/form-data',
'X-PhotoRoom-No-Watermark': 'true'
},
body: formData,
});
Yet the processed images still show a watermark. Am I missing a header or using the wrong endpoint for production? Any ideas why my Live key isn’t removing the watermark?
Thank you!
Hi @devvgino ,
I am going to send you a DM so we can validate that you’re using your correct live API key.
Please keep an eye there for my message!
1 Like