API Docs

Notes for developers & robot friends.

💡 Quick Note

All endpoints accept multipart/form-data. Images are processed locally or via server depending on the setup. Response is always a Blob (image/png).

POST

/api/remove-bg

Core Service

Removes the background from the uploaded image. Returns a transparent PNG.

Parameters

  • image (File): The source image.
  • shadowEnabled (Boolean): Optional. Default false.
const formData = new FormData();
formData.append('image', fileInput.files[0]);

const response = await fetch('/api/remove-bg', {
    method: 'POST',
    body: formData
});

// Returns generic PNG blob
const imageBlob = await response.blob();
Popular!
POST

/api/sticker

Feature

Generates a sticker with white border and drop shadow.

Parameters

  • image (File): The source image.
  • borderWidth (Int): Pixels (e.g., 15).
  • borderColor (Hex): E.g. #ffffff.
  • shadowBlur (Int): Blur radius.
  • shadowColor (Hex): Shadow color.
  • shadowOpacity (Float): 0.0 - 1.0.
const formData = new FormData();
formData.append('image', fileInput.files[0]);
formData.append('borderWidth', '15');
formData.append('shadowEnabled', 'true');