zf-kbot/md-iu-video-enhancer-0126-2
Run zf-kbot/md-iu-video-enhancer-0126-2 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 Key
|
| input_video |
string
|
输入视频文件(支持 mp4, mov, avi, mkv, webm)
|
|
| force_rate |
integer
|
24
Max: 60 |
强制帧率(0 表示保持原帧率)
|
| duration |
integer
|
30
|
最大处理时长
|
| enhance_mode |
None
|
0
|
增强模式选择,0=单flashvsr放大,1=1080P,2=2K,3=4K,4=4K+锐化
|
| flashvsr_pixels |
number
|
1
Min: 0.5 Max: 4 |
预处理总像素数上限(百万)
|
| flashvsr_ratio |
number
|
1
Min: 1 Max: 4 |
预处理缩放比例
|
| scale |
None
|
1
|
FlashVSR 超分倍率
|
| sparse_ratio |
number
|
2
Min: 1 Max: 4 |
稀疏比,2.0=稳定,1.5=更快
|
| kv_ratio |
number
|
3.5
Min: 1 Max: 8 |
KV 缓存比率
|
| local_range |
integer
|
7
Min: 7 Max: 11 |
局部范围,11=稳定,9=更锐利,7=效果最好
|
| color_fix |
boolean
|
True
|
颜色校正
|
| fix_method |
None
|
wavelet
|
颜色校正方法
|
| full_tiled |
boolean
|
True
|
启用分块处理(低显存)
|
| tiny_long |
boolean
|
False
|
启用 Tiny Long 模式(长视频优化)
|
| filename_prefix |
string
|
ImgUpscaler.ai
|
输出文件名前缀
|
{
"type": "object",
"title": "Input",
"required": [
"input_video"
],
"properties": {
"scale": {
"enum": [
1,
2,
3,
4
],
"type": "integer",
"title": "scale",
"description": "FlashVSR \u8d85\u5206\u500d\u7387",
"default": 1,
"x-order": 7
},
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 0,
"description": "API Key"
},
"duration": {
"type": "integer",
"title": "Duration",
"default": 30,
"minimum": 0,
"x-order": 3,
"description": "\u6700\u5927\u5904\u7406\u65f6\u957f"
},
"kv_ratio": {
"type": "number",
"title": "Kv Ratio",
"default": 3.5,
"maximum": 8,
"minimum": 1,
"x-order": 9,
"description": "KV \u7f13\u5b58\u6bd4\u7387"
},
"color_fix": {
"type": "boolean",
"title": "Color Fix",
"default": true,
"x-order": 11,
"description": "\u989c\u8272\u6821\u6b63"
},
"tiny_long": {
"type": "boolean",
"title": "Tiny Long",
"default": false,
"x-order": 14,
"description": "\u542f\u7528 Tiny Long \u6a21\u5f0f\uff08\u957f\u89c6\u9891\u4f18\u5316\uff09"
},
"fix_method": {
"enum": [
"wavelet",
"adain",
"none"
],
"type": "string",
"title": "fix_method",
"description": "\u989c\u8272\u6821\u6b63\u65b9\u6cd5",
"default": "wavelet",
"x-order": 12
},
"force_rate": {
"type": "integer",
"title": "Force Rate",
"default": 24,
"maximum": 60,
"minimum": 0,
"x-order": 2,
"description": "\u5f3a\u5236\u5e27\u7387\uff080 \u8868\u793a\u4fdd\u6301\u539f\u5e27\u7387\uff09"
},
"full_tiled": {
"type": "boolean",
"title": "Full Tiled",
"default": true,
"x-order": 13,
"description": "\u542f\u7528\u5206\u5757\u5904\u7406\uff08\u4f4e\u663e\u5b58\uff09"
},
"input_video": {
"type": "string",
"title": "Input Video",
"format": "uri",
"x-order": 1,
"description": "\u8f93\u5165\u89c6\u9891\u6587\u4ef6\uff08\u652f\u6301 mp4, mov, avi, mkv, webm\uff09"
},
"local_range": {
"type": "integer",
"title": "Local Range",
"default": 7,
"maximum": 11,
"minimum": 7,
"x-order": 10,
"description": "\u5c40\u90e8\u8303\u56f4\uff0c11=\u7a33\u5b9a\uff0c9=\u66f4\u9510\u5229\uff0c7=\u6548\u679c\u6700\u597d"
},
"enhance_mode": {
"enum": [
0,
1,
2,
3,
4
],
"type": "integer",
"title": "enhance_mode",
"description": "\u589e\u5f3a\u6a21\u5f0f\u9009\u62e9\uff0c0=\u5355flashvsr\u653e\u5927\uff0c1=1080P\uff0c2=2K\uff0c3=4K\uff0c4=4K+\u9510\u5316",
"default": 0,
"x-order": 4
},
"sparse_ratio": {
"type": "number",
"title": "Sparse Ratio",
"default": 2,
"maximum": 4,
"minimum": 1,
"x-order": 8,
"description": "\u7a00\u758f\u6bd4\uff0c2.0=\u7a33\u5b9a\uff0c1.5=\u66f4\u5feb"
},
"flashvsr_ratio": {
"type": "number",
"title": "Flashvsr Ratio",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 6,
"description": "\u9884\u5904\u7406\u7f29\u653e\u6bd4\u4f8b"
},
"filename_prefix": {
"type": "string",
"title": "Filename Prefix",
"default": "ImgUpscaler.ai",
"x-order": 15,
"description": "\u8f93\u51fa\u6587\u4ef6\u540d\u524d\u7f00"
},
"flashvsr_pixels": {
"type": "number",
"title": "Flashvsr Pixels",
"default": 1,
"maximum": 4,
"minimum": 0.5,
"x-order": 5,
"description": "\u9884\u5904\u7406\u603b\u50cf\u7d20\u6570\u4e0a\u9650\uff08\u767e\u4e07\uff09"
}
}
}
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"
}