With Polotno SDK and the Remove Background Cloud API, developers can embed seamless image background removal directly into their products. The feature sends image data to Polotno’s endpoint and returns a transparent result, all while staying within your front-end canvas workflow. Activation is optional and fully controllable – just enable or disable as needed.
How it works
When a user triggers background removal, the SDK calls Polotno’s Cloud API endpoint (/api/remove-image-background) with your API key and image URL or base64. The service responds with a processed image URL (transparent background), which the SDK inserts back into the canvas. AI background removal is available as a frontend or API-only feature.
const res = await fetch('https://api.polotno.com/api/remove-image-background?KEY=YOUR_API_KEY', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ url: imageUrlOrBase64 }),
});
const { url: cleanedImage } = await res.json();
// Use cleanedImage in canvas layer
Customization and limits
- Developers can control when removal is available (e.g. buttons, context menu).
- Input format: URL or base64; output: base64 or URL.
- You decide fallback behavior, retries, and UI loading states.
Pricing and availability
- $0.03 per removal
- Pay-as-you-go pricing, billed monthly
- Available with every paid license
- Hosted background removal requires paid access; SDK trial keys do not include background-removal credits
Frequently asked questions
Can I enable / disable this feature per user?
Yes, you can disable / enable the feature via SDK config.
Is processing done locally or in the cloud?
The images are sent to a 3rd party server and temporarily stored there for processing.
How do I control usage limits or API costs?
Set application limits and user permissions to control usage and costs, and monitor API usage from your account. Hosted background removal requires paid access. Public demos have separate usage limits and do not define an SDK trial allowance.
Can I use my own vision model instead of the Polotno API?
Yes, you are free to disable Polotno's background removal and connect your model of choice.
