Get the JSON config file for this AI
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
{
"data": {
"uid": 1678361974000,
"created_at": "2023-03-09T11:39:44.000Z"
}
}
{
data: null,
status: 400,
statusText: "A client token is required"
}
{
data: null,
status: 409,
statusText: "Could not add to backlog"
}