ai_rembg

An authenticated client can post a request to this AI to remove an image background behind a face

Official GitHub repo where this AI was taken from

This AI can run AI alongside a Daemon on CPU only

Get the JSON config file for this AI

GET https://opensourceais.com/api/v1/public/config/rembg

You should not need to call this endpoint. This is just a FYI to understand all input parameters sent to the AI.

{
    "data": {
        "engine": "rembg",
        "version": "1.0.4",
        "name": "Remove Background",
        "description": "Image Utility",
        "isFree": false,
        "requiresGPU": false,
        "aParam": [
            {
                "in": "url_upload",
                "out": "-filename",
                "isMandatory": true,
                "type": "string",
                "default": null,
                "accept": {
                    "$max": 2048
                },
                "ui": {
                    "title": "Image input",
                    "widget": "uiSelectPicture",
                    "column": 1
                }
            },
            {
                "in": "output",
                "out": "-o",
                "isMandatory": true,
                "type": "function",
                "default": "$output_uid.ext"
            },
            {
                "in": "idir",
                "out": "-idir",
                "isMandatory": false,
                "type": "string",
                "default": "./_input/"
            },
            {
                "in": "odir",
                "out": "-odir",
                "isMandatory": false,
                "type": "string",
                "default": "./_output/"
            }
        ]
    }
}

Post a request to Remove Background via OpenSourceAIs

POST https://opensourceais.com/api/v1/private/client/ai/rembg

Request Body

NameTypeDescription

url_upload

String

A well formed URI starting with https://... and accessing a PNG or JPG image.

{
    "data": {
        "uid": 1678361974000,
        "created_at": "2023-03-09T11:39:44.000Z"
    }
}

Last updated