zf-kbot/md-mask-video-watermark-pro
Public
947.4K
runs
Run zf-kbot/md-mask-video-watermark-pro 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 |
|---|---|---|---|
| api_key |
string
|
API Key
|
|
| video |
string
|
Input video
|
|
| prompt |
string
|
watermark
|
Prompt
|
| mask_stage |
string
|
Mask stage info
|
|
| mask_type |
None
|
fixed
|
Mask Type
|
| mask_blur |
integer
|
10
|
Mask Blur
|
| threshold |
number
|
0.25
Max: 1 |
Threshold
|
| iou |
number
|
0.7
Max: 1 |
IoU
|
| max_fps |
integer
|
30
|
Max fps of output video
|
| max_size |
integer
|
720
|
Max size of frame
|
| chunk_size |
integer
|
80
|
Chunk size of frame
|
| preview_time |
integer
|
5
|
Preview of video
|
| download_preview |
boolean
|
False
|
Preview Mode, if enabled, will process preview_time seconds
|
| process_mode |
None
|
remove
|
Process Mode
|
{
"type": "object",
"title": "Input",
"required": [
"api_key",
"video",
"mask_stage"
],
"properties": {
"iou": {
"type": "number",
"title": "Iou",
"default": 0.7,
"maximum": 1,
"minimum": 0,
"x-order": 7,
"description": "IoU"
},
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 1,
"description": "Input video"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "watermark",
"x-order": 2,
"description": "Prompt"
},
"api_key": {
"type": "string",
"title": "Api Key",
"x-order": 0,
"description": "API Key"
},
"max_fps": {
"type": "integer",
"title": "Max Fps",
"default": 30,
"x-order": 8,
"description": "Max fps of output video"
},
"max_size": {
"type": "integer",
"title": "Max Size",
"default": 720,
"x-order": 9,
"description": "Max size of frame"
},
"mask_blur": {
"type": "integer",
"title": "Mask Blur",
"default": 10,
"x-order": 5,
"description": "Mask Blur"
},
"mask_type": {
"enum": [
"move",
"fixed"
],
"type": "string",
"title": "mask_type",
"description": "Mask Type",
"default": "fixed",
"x-order": 4
},
"threshold": {
"type": "number",
"title": "Threshold",
"default": 0.25,
"maximum": 1,
"minimum": 0,
"x-order": 6,
"description": "Threshold"
},
"chunk_size": {
"type": "integer",
"title": "Chunk Size",
"default": 80,
"x-order": 10,
"description": "Chunk size of frame"
},
"mask_stage": {
"type": "string",
"title": "Mask Stage",
"x-order": 3,
"description": "Mask stage info"
},
"preview_time": {
"type": "integer",
"title": "Preview Time",
"default": 5,
"x-order": 11,
"description": "Preview of video"
},
"process_mode": {
"enum": [
"remove",
"plot"
],
"type": "string",
"title": "process_mode",
"description": "Process Mode",
"default": "remove",
"x-order": 13
},
"download_preview": {
"type": "boolean",
"title": "Download Preview",
"default": false,
"x-order": 12,
"description": "Preview Mode, if enabled, will process preview_time seconds"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}