Notes for developers & robot friends.
All endpoints accept multipart/form-data.
Images are processed locally or via server depending on the setup.
Response is always a Blob (image/png).
Removes the background from the uploaded image. Returns a transparent PNG.
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();
Generates a sticker with white border and drop shadow.
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');