ailoov/rembg
Public
22
runs
Run ailoov/rembg with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| input_path |
string
|
Input image or video path
|
|
| hex_code |
string
|
Hex Code
|
|
| file_ext |
string
|
extension of the input file
|
|
| file_type |
None
|
image
|
type of the input file
|
| upscale |
boolean
|
False
|
Upscale video to 1080x1920 resolution
|
{
"type": "object",
"title": "Input",
"required": [
"input_path"
],
"properties": {
"upscale": {
"type": "boolean",
"title": "Upscale",
"default": false,
"x-order": 4,
"description": "Upscale video to 1080x1920 resolution"
},
"file_ext": {
"type": "string",
"title": "File Ext",
"x-order": 2,
"description": "extension of the input file"
},
"hex_code": {
"type": "string",
"title": "Hex Code",
"x-order": 1,
"description": "Hex Code"
},
"file_type": {
"enum": [
"image",
"video"
],
"type": "string",
"title": "file_type",
"description": "type of the input file",
"default": "image",
"x-order": 3
},
"input_path": {
"type": "string",
"title": "Input Path",
"format": "uri",
"x-order": 0,
"description": "Input image or video path"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}