Remove Background API
The Remove Background API allows you to automatically remove backgrounds from images using AI technology.
Remove Background
Endpoint
POST https://api.a1d.ai/api/remove-bg
Parameters
imageUrl
- The URL of the image to process
source
- Set to "api" for API requests
Example Request
curl --location --request POST 'https://api.a1d.ai/api/remove-bg' \
--header 'Authorization: KEY $YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"imageUrl": "https://example.com/image.jpg",
"source": "api"
}'
Response Example
{
"taskId": "task_abc123"
}
Notes
- Supported image formats: JPG, PNG, WEBP, SVG, JPEG
- Processing time varies based on image size and complexity