zf-kbot/md-lc-ltx
Run zf-kbot/md-lc-ltx 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 |
|---|---|---|---|
| apikey |
string
|
|
API 密钥
|
| video |
string
|
Input video file
|
|
| prompt |
string
|
去除视频画面中的水印与字幕与相关遮挡痕迹,恢复干净、清晰、自然的原始画面;保持人物、场景、动作、镜头运动、时序和整体风格一致,不改变原视频内容,只进行水印和字幕的去除与细节修复。
|
Prompt for removing watermarks/subtitles and restoring the original scene
|
| duration_seconds |
number
|
3
Max: 90 |
Seconds of input video to process. The input video is preprocessed to duration_seconds * fps + 1 frames
|
| fps |
integer
|
24
Min: 1 Max: 60 |
Frame rate used when loading and exporting the video
|
| megapixels |
number
|
0.6
Max: 3.6 |
Target megapixels for the output video. Uses original size when the input is smaller than the target
|
| seed |
integer
|
-1
Min: -1 Max: 1125899906842624 |
Seed. Use -1 for a random seed
|
| watermark_lora_strength |
number
|
1
Max: 2 |
Strength for watermark-remove
|
| subtitle_lora_strength |
number
|
1
Max: 2 |
Strength for subtitles-remove
|
| restoration_lora_strength |
number
|
1
Max: 2 |
Strength for restoration
|
| any_index_switch_index |
integer
|
0
Max: 1 |
Any Index Switch index. Use 0 for watermark/subtitle cleanup, 1 for restoration/deblur
|
{
"type": "object",
"title": "Input",
"required": [
"video"
],
"properties": {
"fps": {
"type": "integer",
"title": "Fps",
"default": 24,
"maximum": 60,
"minimum": 1,
"x-order": 4,
"description": "Frame rate used when loading and exporting the video"
},
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"maximum": 1125899906842624,
"minimum": -1,
"x-order": 6,
"description": "Seed. Use -1 for a random seed"
},
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 1,
"description": "Input video file"
},
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 0,
"description": "API \u5bc6\u94a5"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "\u53bb\u9664\u89c6\u9891\u753b\u9762\u4e2d\u7684\u6c34\u5370\u4e0e\u5b57\u5e55\u4e0e\u76f8\u5173\u906e\u6321\u75d5\u8ff9\uff0c\u6062\u590d\u5e72\u51c0\u3001\u6e05\u6670\u3001\u81ea\u7136\u7684\u539f\u59cb\u753b\u9762\uff1b\u4fdd\u6301\u4eba\u7269\u3001\u573a\u666f\u3001\u52a8\u4f5c\u3001\u955c\u5934\u8fd0\u52a8\u3001\u65f6\u5e8f\u548c\u6574\u4f53\u98ce\u683c\u4e00\u81f4\uff0c\u4e0d\u6539\u53d8\u539f\u89c6\u9891\u5185\u5bb9\uff0c\u53ea\u8fdb\u884c\u6c34\u5370\u548c\u5b57\u5e55\u7684\u53bb\u9664\u4e0e\u7ec6\u8282\u4fee\u590d\u3002",
"x-order": 2,
"description": "Prompt for removing watermarks/subtitles and restoring the original scene"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 0.6,
"maximum": 3.6,
"minimum": 0,
"x-order": 5,
"description": "Target megapixels for the output video. Uses original size when the input is smaller than the target"
},
"duration_seconds": {
"type": "number",
"title": "Duration Seconds",
"default": 3,
"maximum": 90,
"minimum": 0,
"x-order": 3,
"description": "Seconds of input video to process. The input video is preprocessed to duration_seconds * fps + 1 frames"
},
"any_index_switch_index": {
"type": "integer",
"title": "Any Index Switch Index",
"default": 0,
"maximum": 1,
"minimum": 0,
"x-order": 10,
"description": "Any Index Switch index. Use 0 for watermark/subtitle cleanup, 1 for restoration/deblur"
},
"subtitle_lora_strength": {
"type": "number",
"title": "Subtitle Lora Strength",
"default": 1,
"maximum": 2,
"minimum": 0,
"x-order": 8,
"description": "Strength for subtitles-remove"
},
"watermark_lora_strength": {
"type": "number",
"title": "Watermark Lora Strength",
"default": 1,
"maximum": 2,
"minimum": 0,
"x-order": 7,
"description": "Strength for watermark-remove"
},
"restoration_lora_strength": {
"type": "number",
"title": "Restoration Lora Strength",
"default": 1,
"maximum": 2,
"minimum": 0,
"x-order": 9,
"description": "Strength for restoration"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}