Articles Troubleshooting

On this page, you will find some common questions or issues you might encounter when integrating the PhotoRoom API, along with their answer.


Q: Can I send my image in Base64 format?

A: Yes, sending your image in Base64 format is possible!

Here's a sample code in JavaScript:

const removeBackground = async (base64Image) => {
  const options = {
    method: "POST",
    headers: {
      "x-api-key": YOUR_API_KEY,
      "Content-Type": "application/json",
      Accept: "application/json",
    },
    body: JSON.stringify({
      image_file_b64: base64Image.split(",")[1],
    }),
  };

  fetch("https://sdk.photoroom.com/v1/segment", options)
    .then((response) => response.json())
    .then((response) => {
      console.log(response);
    })
    .catch((err) => console.error(err));
};

Q: PhotoRoom API has stopped working/answering

A: PhotoRoom API is used by PhotoRoom iOS, Android, and Web apps. Timeouts are unlikely to happen or would impact our own products in a critical way.

If PhotoRoom API has stopped working on your side, please check the following points:

  1. Do you still have credits? Visit your dashboard and check your remaining credits, you can buy more credits directly from your dashboard if needed.

  2. Is the API returning an error or an erroneous image? Report your technical bug or issue using the procedure explained in the following question.


Q: I have a technical issue/bug with PhotoRoom API

A: We currently don't provide technical support for implementing the API over email. Join our Slack Community for tips and direct help from our best engineers.

In case of correct integration or bug on PhotoRoom's side, please join our Slack Community and share with us:

  1. A standalone code to reproduce the bug

  2. The original input image you used

  3. The output image returned by PhotoRoom API

  4. A detailed description or visual example of the expected image you would have liked to get

We will be able to investigate the issue and come back to you shortly.


Support and Help

Slack Community Support

Ask our engineers in our community forum about how to use the PhotoRoom API

Join our Slack Community

Support for billing and payment issues

Contact us at api-help@photoroom.com to get help on billing or payments.