zf-kbot/md-me-video-editor-0706
Run zf-kbot/md-me-video-editor-0706 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 密钥
|
| mode |
None
|
i2v
|
任务类型
|
| input_image |
string
|
主参考图,接入 BerniniStudio.image0
|
|
| reference_image |
string
|
第二参考图,接入 BerniniStudio.image1
|
|
| video |
string
|
源视频,接入 BerniniStudio.source_video
|
|
| prompt |
string
|
让 image0 中的主体自然动起来,动作自然连贯
|
视频提示词,可用 image0 / image1 指代参考图
|
| negative_prompt |
string
|
低质量视频
|
负向提示词
|
| megapixels |
number
|
0.4
Min: 0.1 Max: 1 |
目标百万像素,视频宽高会按输入媒体比例计算
|
| duration |
number
|
3
Min: 1 Max: 10 |
视频时长(秒),内部会换算成 4n+1 帧
|
| fps |
None
|
16
|
输出帧率
|
| aspect_ratio |
None
|
16:9
|
纯文生视频时使用的画面比例
|
| seed |
integer
|
-1
|
随机种子,-1 为随机
|
| steps |
integer
|
4
Min: 1 Max: 20 |
采样步数
|
| split_step |
integer
|
2
Min: 1 Max: 19 |
高低噪声模型切换步数,必须小于 steps
|
| use_default_neg |
boolean
|
True
|
启用 BerniniStudio 默认负向词
|
{
"type": "object",
"title": "Input",
"properties": {
"fps": {
"enum": [
16,
24,
30
],
"type": "integer",
"title": "fps",
"description": "\u8f93\u51fa\u5e27\u7387",
"default": 16,
"x-order": 9
},
"mode": {
"enum": [
"i2v",
"r2v",
"v2v",
"rv2v",
"mv2v",
"t2v"
],
"type": "string",
"title": "mode",
"description": "\u4efb\u52a1\u7c7b\u578b",
"default": "i2v",
"x-order": 1
},
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 11,
"description": "\u968f\u673a\u79cd\u5b50\uff0c-1 \u4e3a\u968f\u673a"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 4,
"maximum": 20,
"minimum": 1,
"x-order": 12,
"description": "\u91c7\u6837\u6b65\u6570"
},
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 4,
"nullable": true,
"description": "\u6e90\u89c6\u9891\uff0c\u63a5\u5165 BerniniStudio.source_video"
},
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 0,
"description": "API \u5bc6\u94a5"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "\u8ba9 image0 \u4e2d\u7684\u4e3b\u4f53\u81ea\u7136\u52a8\u8d77\u6765\uff0c\u52a8\u4f5c\u81ea\u7136\u8fde\u8d2f",
"x-order": 5,
"description": "\u89c6\u9891\u63d0\u793a\u8bcd\uff0c\u53ef\u7528 image0 / image1 \u6307\u4ee3\u53c2\u8003\u56fe"
},
"duration": {
"type": "number",
"title": "Duration",
"default": 3,
"maximum": 10,
"minimum": 1,
"x-order": 8,
"description": "\u89c6\u9891\u65f6\u957f\uff08\u79d2\uff09\uff0c\u5185\u90e8\u4f1a\u6362\u7b97\u6210 4n+1 \u5e27"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 0.4,
"maximum": 1,
"minimum": 0.1,
"x-order": 7,
"description": "\u76ee\u6807\u767e\u4e07\u50cf\u7d20\uff0c\u89c6\u9891\u5bbd\u9ad8\u4f1a\u6309\u8f93\u5165\u5a92\u4f53\u6bd4\u4f8b\u8ba1\u7b97"
},
"split_step": {
"type": "integer",
"title": "Split Step",
"default": 2,
"maximum": 19,
"minimum": 1,
"x-order": 13,
"description": "\u9ad8\u4f4e\u566a\u58f0\u6a21\u578b\u5207\u6362\u6b65\u6570\uff0c\u5fc5\u987b\u5c0f\u4e8e steps"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 2,
"nullable": true,
"description": "\u4e3b\u53c2\u8003\u56fe\uff0c\u63a5\u5165 BerniniStudio.image0"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"type": "string",
"title": "aspect_ratio",
"description": "\u7eaf\u6587\u751f\u89c6\u9891\u65f6\u4f7f\u7528\u7684\u753b\u9762\u6bd4\u4f8b",
"default": "16:9",
"x-order": 10
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "\u4f4e\u8d28\u91cf\u89c6\u9891",
"x-order": 6,
"description": "\u8d1f\u5411\u63d0\u793a\u8bcd"
},
"reference_image": {
"type": "string",
"title": "Reference Image",
"format": "uri",
"x-order": 3,
"nullable": true,
"description": "\u7b2c\u4e8c\u53c2\u8003\u56fe\uff0c\u63a5\u5165 BerniniStudio.image1"
},
"use_default_neg": {
"type": "boolean",
"title": "Use Default Neg",
"default": true,
"x-order": 14,
"description": "\u542f\u7528 BerniniStudio \u9ed8\u8ba4\u8d1f\u5411\u8bcd"
}
}
}
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"
}