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