@zenaigc/zenmcp 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +14 -0
- package/dist/src/engine/direct.js +7 -2
- package/dist/src/mcp/guidance.js +85 -0
- package/dist/src/mcp/server.js +191 -44
- package/package.json +1 -1
- package/skills/zenmcp/SKILL.md +22 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-account.json +15 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-account.minimal.json +7 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-budget-confirm.insufficient.json +30 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-budget-confirm.json +30 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-budget-confirm.minimal.json +9 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-budget-confirm.unknown.json +30 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-install-checklist.failed.json +34 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-install-checklist.json +33 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-model-picker.json +25 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-spend-confirm.defaults.json +96 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-spend-confirm.insufficient.json +119 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-spend-confirm.json +119 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-spend-confirm.large.json +119 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-spend-confirm.readonly.json +57 -0
- package/skills/zenmcp/widgets/fixtures/zenmcp-spend-confirm.unknown.json +119 -0
- package/skills/zenmcp/widgets/zenmcp-account/template.json +55 -0
- package/skills/zenmcp/widgets/zenmcp-account/widget.html +28 -0
- package/skills/zenmcp/widgets/zenmcp-budget-confirm/template.json +72 -0
- package/skills/zenmcp/widgets/zenmcp-budget-confirm/widget.html +32 -0
- package/skills/zenmcp/widgets/zenmcp-install-checklist/template.json +55 -0
- package/skills/zenmcp/widgets/zenmcp-install-checklist/widget.html +25 -0
- package/skills/zenmcp/widgets/zenmcp-model-picker/template.json +31 -0
- package/skills/zenmcp/widgets/zenmcp-model-picker/widget.html +28 -0
- package/skills/zenmcp/widgets/zenmcp-spend-confirm/template.json +181 -0
- package/skills/zenmcp/widgets/zenmcp-spend-confirm/widget.html +85 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "budget",
|
|
4
|
+
"total_credits": 72,
|
|
5
|
+
"retry_reserve_credits": 12,
|
|
6
|
+
"balance_before": 200,
|
|
7
|
+
"balance_after": 128,
|
|
8
|
+
"sufficient": true,
|
|
9
|
+
"large": true,
|
|
10
|
+
"segments": [
|
|
11
|
+
{
|
|
12
|
+
"id": "intro",
|
|
13
|
+
"label": "开场",
|
|
14
|
+
"credits": 24
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "main",
|
|
18
|
+
"label": "主体",
|
|
19
|
+
"credits": 36
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"assets": [
|
|
23
|
+
"参考片.mp4",
|
|
24
|
+
"商品.png"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"planDigest": "plan-example-001",
|
|
28
|
+
"directory": "/tmp/复刻任务",
|
|
29
|
+
"account_url": "https://example.com/account"
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "budget",
|
|
4
|
+
"total_credits": 72,
|
|
5
|
+
"retry_reserve_credits": 12,
|
|
6
|
+
"balance_before": null,
|
|
7
|
+
"balance_after": null,
|
|
8
|
+
"sufficient": null,
|
|
9
|
+
"large": true,
|
|
10
|
+
"segments": [
|
|
11
|
+
{
|
|
12
|
+
"id": "intro",
|
|
13
|
+
"label": "开场",
|
|
14
|
+
"credits": 24
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "main",
|
|
18
|
+
"label": "主体",
|
|
19
|
+
"credits": 36
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"assets": [
|
|
23
|
+
"参考片.mp4",
|
|
24
|
+
"商品.png"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"planDigest": "plan-example-001",
|
|
28
|
+
"directory": "/tmp/复刻任务",
|
|
29
|
+
"account_url": "https://example.com/account"
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"steps": [
|
|
3
|
+
{
|
|
4
|
+
"key": "env",
|
|
5
|
+
"label": "环境检查",
|
|
6
|
+
"status": "done",
|
|
7
|
+
"detail": "Node.js 已就绪"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"key": "install",
|
|
11
|
+
"label": "安装",
|
|
12
|
+
"status": "done",
|
|
13
|
+
"detail": "Zenmcp 已安装"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "key",
|
|
17
|
+
"label": "平台 Key",
|
|
18
|
+
"status": "done",
|
|
19
|
+
"detail": "请在本地配置中填写平台 Key"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "client",
|
|
23
|
+
"label": "客户端配置",
|
|
24
|
+
"status": "pending"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"key": "verify",
|
|
28
|
+
"label": "验证",
|
|
29
|
+
"status": "failed",
|
|
30
|
+
"detail": "连接验证失败"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"account_url": "https://example.com/account"
|
|
34
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"steps": [
|
|
3
|
+
{
|
|
4
|
+
"key": "env",
|
|
5
|
+
"label": "环境检查",
|
|
6
|
+
"status": "done",
|
|
7
|
+
"detail": "Node.js 已就绪"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"key": "install",
|
|
11
|
+
"label": "安装",
|
|
12
|
+
"status": "done",
|
|
13
|
+
"detail": "Zenmcp 已安装"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "key",
|
|
17
|
+
"label": "平台 Key",
|
|
18
|
+
"status": "active",
|
|
19
|
+
"detail": "请在本地配置中填写平台 Key"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "client",
|
|
23
|
+
"label": "客户端配置",
|
|
24
|
+
"status": "pending"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"key": "verify",
|
|
28
|
+
"label": "验证",
|
|
29
|
+
"status": "pending"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"account_url": "https://example.com/account"
|
|
33
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"medium": "video",
|
|
3
|
+
"models": [
|
|
4
|
+
{
|
|
5
|
+
"capability": "video.example",
|
|
6
|
+
"label": "示例视频模型",
|
|
7
|
+
"medium": "video",
|
|
8
|
+
"price_hint": "每次 24 积分起",
|
|
9
|
+
"highlights": [
|
|
10
|
+
"支持参考图",
|
|
11
|
+
"可选 3–10 秒"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"capability": "video.other",
|
|
16
|
+
"label": "另一款视频模型",
|
|
17
|
+
"medium": "video",
|
|
18
|
+
"price_hint": "每秒 6 积分",
|
|
19
|
+
"highlights": [
|
|
20
|
+
"支持声音",
|
|
21
|
+
"横屏与竖屏"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "spend",
|
|
4
|
+
"credits": 24,
|
|
5
|
+
"balance_before": 200,
|
|
6
|
+
"balance_after": 176,
|
|
7
|
+
"sufficient": true,
|
|
8
|
+
"large": false,
|
|
9
|
+
"params": [
|
|
10
|
+
{
|
|
11
|
+
"key": "watermark",
|
|
12
|
+
"label": "水印",
|
|
13
|
+
"value": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "style",
|
|
17
|
+
"label": "风格",
|
|
18
|
+
"value": "自然"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"uploads": [
|
|
22
|
+
"海边参考.png",
|
|
23
|
+
"人物参考.png"
|
|
24
|
+
],
|
|
25
|
+
"prompt_preview": "日落下的海边,一位穿白色外套的人走向海浪。"
|
|
26
|
+
},
|
|
27
|
+
"requestDigest": "quote-example-001",
|
|
28
|
+
"directory": "/tmp/海边任务",
|
|
29
|
+
"capability": "video.example",
|
|
30
|
+
"model_label": "示例视频模型",
|
|
31
|
+
"account_url": "https://example.com/account",
|
|
32
|
+
"param_spec": [
|
|
33
|
+
{
|
|
34
|
+
"key": "ratio",
|
|
35
|
+
"type": "segmented",
|
|
36
|
+
"label": "画幅",
|
|
37
|
+
"options": [
|
|
38
|
+
{
|
|
39
|
+
"value": "16:9",
|
|
40
|
+
"label": "横屏"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"value": "9:16",
|
|
44
|
+
"label": "竖屏"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"default": "16:9"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "resolution",
|
|
51
|
+
"type": "select",
|
|
52
|
+
"label": "分辨率",
|
|
53
|
+
"options": [
|
|
54
|
+
{
|
|
55
|
+
"value": "720p",
|
|
56
|
+
"label": "高清"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "1080p",
|
|
60
|
+
"label": "超清"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"default": "720p"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"key": "duration",
|
|
67
|
+
"type": "slider",
|
|
68
|
+
"label": "时长",
|
|
69
|
+
"min": 3,
|
|
70
|
+
"max": 10,
|
|
71
|
+
"step": 0.5,
|
|
72
|
+
"default": 5
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "audio",
|
|
76
|
+
"type": "toggle",
|
|
77
|
+
"label": "声音",
|
|
78
|
+
"default": true
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"key": "prompt",
|
|
82
|
+
"type": "text",
|
|
83
|
+
"label": "提示词",
|
|
84
|
+
"max_length": 200,
|
|
85
|
+
"placeholder": "画面描述",
|
|
86
|
+
"default": "海边日落"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"key": "style",
|
|
90
|
+
"type": "text",
|
|
91
|
+
"label": "风格",
|
|
92
|
+
"default": "自然",
|
|
93
|
+
"max_length": 40
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "spend",
|
|
4
|
+
"credits": 240,
|
|
5
|
+
"balance_before": 80,
|
|
6
|
+
"balance_after": -160,
|
|
7
|
+
"sufficient": false,
|
|
8
|
+
"large": true,
|
|
9
|
+
"params": [
|
|
10
|
+
{
|
|
11
|
+
"key": "ratio",
|
|
12
|
+
"label": "画幅",
|
|
13
|
+
"value": "横屏"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "resolution",
|
|
17
|
+
"label": "分辨率",
|
|
18
|
+
"value": "高清"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"key": "duration",
|
|
22
|
+
"label": "时长",
|
|
23
|
+
"value": 5
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "audio",
|
|
27
|
+
"label": "声音",
|
|
28
|
+
"value": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "prompt",
|
|
32
|
+
"label": "提示词",
|
|
33
|
+
"value": "日落下的海边"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "watermark",
|
|
37
|
+
"label": "水印",
|
|
38
|
+
"value": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "style",
|
|
42
|
+
"label": "风格",
|
|
43
|
+
"value": "自然"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"uploads": [
|
|
47
|
+
"海边参考.png",
|
|
48
|
+
"人物参考.png"
|
|
49
|
+
],
|
|
50
|
+
"prompt_preview": "日落下的海边,一位穿白色外套的人走向海浪。"
|
|
51
|
+
},
|
|
52
|
+
"requestDigest": "quote-example-001",
|
|
53
|
+
"directory": "/tmp/海边任务",
|
|
54
|
+
"capability": "video.example",
|
|
55
|
+
"model_label": "示例视频模型",
|
|
56
|
+
"account_url": "https://example.com/account",
|
|
57
|
+
"param_spec": [
|
|
58
|
+
{
|
|
59
|
+
"key": "ratio",
|
|
60
|
+
"type": "segmented",
|
|
61
|
+
"label": "画幅",
|
|
62
|
+
"options": [
|
|
63
|
+
{
|
|
64
|
+
"value": "16:9",
|
|
65
|
+
"label": "横屏"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": "9:16",
|
|
69
|
+
"label": "竖屏"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"default": "16:9"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "resolution",
|
|
76
|
+
"type": "select",
|
|
77
|
+
"label": "分辨率",
|
|
78
|
+
"options": [
|
|
79
|
+
{
|
|
80
|
+
"value": "720p",
|
|
81
|
+
"label": "高清"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"value": "1080p",
|
|
85
|
+
"label": "超清"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "duration",
|
|
91
|
+
"type": "slider",
|
|
92
|
+
"label": "时长",
|
|
93
|
+
"min": 3,
|
|
94
|
+
"max": 10,
|
|
95
|
+
"step": 0.5,
|
|
96
|
+
"default": 5
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "audio",
|
|
100
|
+
"type": "toggle",
|
|
101
|
+
"label": "声音",
|
|
102
|
+
"default": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"key": "prompt",
|
|
106
|
+
"type": "text",
|
|
107
|
+
"label": "提示词",
|
|
108
|
+
"max_length": 200,
|
|
109
|
+
"placeholder": "画面描述"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"key": "style",
|
|
113
|
+
"type": "text",
|
|
114
|
+
"label": "风格",
|
|
115
|
+
"default": "自然",
|
|
116
|
+
"max_length": 40
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "spend",
|
|
4
|
+
"credits": 24,
|
|
5
|
+
"balance_before": 200,
|
|
6
|
+
"balance_after": 176,
|
|
7
|
+
"sufficient": true,
|
|
8
|
+
"large": false,
|
|
9
|
+
"params": [
|
|
10
|
+
{
|
|
11
|
+
"key": "ratio",
|
|
12
|
+
"label": "画幅",
|
|
13
|
+
"value": "横屏"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "resolution",
|
|
17
|
+
"label": "分辨率",
|
|
18
|
+
"value": "高清"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"key": "duration",
|
|
22
|
+
"label": "时长",
|
|
23
|
+
"value": 5
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "audio",
|
|
27
|
+
"label": "声音",
|
|
28
|
+
"value": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "prompt",
|
|
32
|
+
"label": "提示词",
|
|
33
|
+
"value": "日落下的海边"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "watermark",
|
|
37
|
+
"label": "水印",
|
|
38
|
+
"value": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "style",
|
|
42
|
+
"label": "风格",
|
|
43
|
+
"value": "自然"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"uploads": [
|
|
47
|
+
"海边参考.png",
|
|
48
|
+
"人物参考.png"
|
|
49
|
+
],
|
|
50
|
+
"prompt_preview": "日落下的海边,一位穿白色外套的人走向海浪。"
|
|
51
|
+
},
|
|
52
|
+
"requestDigest": "quote-example-001",
|
|
53
|
+
"directory": "/tmp/海边任务",
|
|
54
|
+
"capability": "video.example",
|
|
55
|
+
"model_label": "示例视频模型",
|
|
56
|
+
"account_url": "https://example.com/account",
|
|
57
|
+
"param_spec": [
|
|
58
|
+
{
|
|
59
|
+
"key": "ratio",
|
|
60
|
+
"type": "segmented",
|
|
61
|
+
"label": "画幅",
|
|
62
|
+
"options": [
|
|
63
|
+
{
|
|
64
|
+
"value": "16:9",
|
|
65
|
+
"label": "横屏"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": "9:16",
|
|
69
|
+
"label": "竖屏"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"default": "16:9"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "resolution",
|
|
76
|
+
"type": "select",
|
|
77
|
+
"label": "分辨率",
|
|
78
|
+
"options": [
|
|
79
|
+
{
|
|
80
|
+
"value": "720p",
|
|
81
|
+
"label": "高清"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"value": "1080p",
|
|
85
|
+
"label": "超清"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "duration",
|
|
91
|
+
"type": "slider",
|
|
92
|
+
"label": "时长",
|
|
93
|
+
"min": 3,
|
|
94
|
+
"max": 10,
|
|
95
|
+
"step": 0.5,
|
|
96
|
+
"default": 5
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "audio",
|
|
100
|
+
"type": "toggle",
|
|
101
|
+
"label": "声音",
|
|
102
|
+
"default": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"key": "prompt",
|
|
106
|
+
"type": "text",
|
|
107
|
+
"label": "提示词",
|
|
108
|
+
"max_length": 200,
|
|
109
|
+
"placeholder": "画面描述"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"key": "style",
|
|
113
|
+
"type": "text",
|
|
114
|
+
"label": "风格",
|
|
115
|
+
"default": "自然",
|
|
116
|
+
"max_length": 40
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "spend",
|
|
4
|
+
"credits": 120,
|
|
5
|
+
"balance_before": 200,
|
|
6
|
+
"balance_after": 80,
|
|
7
|
+
"sufficient": true,
|
|
8
|
+
"large": true,
|
|
9
|
+
"params": [
|
|
10
|
+
{
|
|
11
|
+
"key": "ratio",
|
|
12
|
+
"label": "画幅",
|
|
13
|
+
"value": "横屏"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "resolution",
|
|
17
|
+
"label": "分辨率",
|
|
18
|
+
"value": "高清"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"key": "duration",
|
|
22
|
+
"label": "时长",
|
|
23
|
+
"value": 5
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "audio",
|
|
27
|
+
"label": "声音",
|
|
28
|
+
"value": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "prompt",
|
|
32
|
+
"label": "提示词",
|
|
33
|
+
"value": "日落下的海边"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "watermark",
|
|
37
|
+
"label": "水印",
|
|
38
|
+
"value": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "style",
|
|
42
|
+
"label": "风格",
|
|
43
|
+
"value": "自然"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"uploads": [
|
|
47
|
+
"海边参考.png",
|
|
48
|
+
"人物参考.png"
|
|
49
|
+
],
|
|
50
|
+
"prompt_preview": "日落下的海边,一位穿白色外套的人走向海浪。"
|
|
51
|
+
},
|
|
52
|
+
"requestDigest": "quote-example-001",
|
|
53
|
+
"directory": "/tmp/海边任务",
|
|
54
|
+
"capability": "video.example",
|
|
55
|
+
"model_label": "示例视频模型",
|
|
56
|
+
"account_url": "https://example.com/account",
|
|
57
|
+
"param_spec": [
|
|
58
|
+
{
|
|
59
|
+
"key": "ratio",
|
|
60
|
+
"type": "segmented",
|
|
61
|
+
"label": "画幅",
|
|
62
|
+
"options": [
|
|
63
|
+
{
|
|
64
|
+
"value": "16:9",
|
|
65
|
+
"label": "横屏"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": "9:16",
|
|
69
|
+
"label": "竖屏"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"default": "16:9"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "resolution",
|
|
76
|
+
"type": "select",
|
|
77
|
+
"label": "分辨率",
|
|
78
|
+
"options": [
|
|
79
|
+
{
|
|
80
|
+
"value": "720p",
|
|
81
|
+
"label": "高清"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"value": "1080p",
|
|
85
|
+
"label": "超清"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "duration",
|
|
91
|
+
"type": "slider",
|
|
92
|
+
"label": "时长",
|
|
93
|
+
"min": 3,
|
|
94
|
+
"max": 10,
|
|
95
|
+
"step": 0.5,
|
|
96
|
+
"default": 5
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "audio",
|
|
100
|
+
"type": "toggle",
|
|
101
|
+
"label": "声音",
|
|
102
|
+
"default": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"key": "prompt",
|
|
106
|
+
"type": "text",
|
|
107
|
+
"label": "提示词",
|
|
108
|
+
"max_length": 200,
|
|
109
|
+
"placeholder": "画面描述"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"key": "style",
|
|
113
|
+
"type": "text",
|
|
114
|
+
"label": "风格",
|
|
115
|
+
"default": "自然",
|
|
116
|
+
"max_length": 40
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"confirmation": {
|
|
3
|
+
"kind": "spend",
|
|
4
|
+
"credits": 24,
|
|
5
|
+
"balance_before": 200,
|
|
6
|
+
"balance_after": 176,
|
|
7
|
+
"sufficient": true,
|
|
8
|
+
"large": false,
|
|
9
|
+
"params": [
|
|
10
|
+
{
|
|
11
|
+
"key": "ratio",
|
|
12
|
+
"label": "画幅",
|
|
13
|
+
"value": "横屏"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "resolution",
|
|
17
|
+
"label": "分辨率",
|
|
18
|
+
"value": "高清"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"key": "duration",
|
|
22
|
+
"label": "时长",
|
|
23
|
+
"value": 5
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "audio",
|
|
27
|
+
"label": "声音",
|
|
28
|
+
"value": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "prompt",
|
|
32
|
+
"label": "提示词",
|
|
33
|
+
"value": "日落下的海边"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "watermark",
|
|
37
|
+
"label": "水印",
|
|
38
|
+
"value": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "style",
|
|
42
|
+
"label": "风格",
|
|
43
|
+
"value": "自然"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"uploads": [
|
|
47
|
+
"海边参考.png",
|
|
48
|
+
"人物参考.png"
|
|
49
|
+
],
|
|
50
|
+
"prompt_preview": "日落下的海边,一位穿白色外套的人走向海浪。"
|
|
51
|
+
},
|
|
52
|
+
"requestDigest": "quote-example-001",
|
|
53
|
+
"directory": "/tmp/海边任务",
|
|
54
|
+
"capability": "video.example",
|
|
55
|
+
"model_label": "示例视频模型",
|
|
56
|
+
"account_url": "https://example.com/account"
|
|
57
|
+
}
|