remove background

Image Background Removal

This method removes the background from an image using AI.

Parameters:

  • image_path β€” path to the original image.

  • processor β€” processing mode:

    • "fast" (default) β€” quick processing.

    • "best" β€” higher quality processing.

  • image_name β€” file name or path for saving the result.

Usage Example:

from zerogpt import ImageClient

client = ImageClient()
resp = client.remove_background("BG.png", "best", "result.png")

Last updated