The Background Removal API has a file size limit of 20MB, and it is not possible to increase this limit. If you need to process larger files, you will need to reduce the file size by compressing or resizing the image before submitting it to the API.
Regarding the issue of reduced image quality, it is important to note that the API may reduce the resolution and size of the image during the background removal process. This is because the API is designed to optimize the image for foreground detection and removal. However, you can try to minimize the loss of quality by submitting the highest resolution and quality image possible, and by experimenting with different settings and parameters in the API.
References: