@lingjingai/lj-awb-cli 0.5.18 → 0.5.20
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/package.json +1 -1
- package/packages/awb-cli/package.json +2 -2
- package/packages/awb-core/package.json +1 -1
- package/packages/awb-core/src/api.js +1 -0
- package/packages/awb-core/src/commands.js +8 -5
- package/packages/awb-core/src/output.js +4 -2
- package/packages/awb-core/src/services.js +18 -1
- package/packages/awb-core/src/standalone.js +7 -7
- package/skills/lj-awb/SKILL.md +2 -2
- package/skills/lj-awb/VERSION +1 -1
- package/skills/lj-awb/compat.json +3 -3
- package/skills/lj-awb/modules/video.md +3 -3
- package/skills/lj-awb/references/output-fields.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingjingai/awb-cli-bin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.20",
|
|
4
4
|
"description": "Standalone CLI for Lingjing AWB",
|
|
5
5
|
"private": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"README.md"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@lingjingai/awb-core": "0.5.
|
|
16
|
+
"@lingjingai/awb-core": "0.5.20"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -82,6 +82,7 @@ const FEE_DRY_RUN_ARG = { name: 'dry-run', description: '只预览估价请求
|
|
|
82
82
|
const INCLUDE_RAW_ARG = { name: 'include-raw', description: '在 JSON 中附带平台原始返回' };
|
|
83
83
|
const PROJECT_ID_ARG = { name: 'project-id', valueName: 'projectId', description: 'AWB 项目 ID(不同于 --project-group-no)' };
|
|
84
84
|
const PROJECT_GROUP_ARG = { name: 'project-group-no', valueName: 'no', description: '项目组编号;不传时读取当前项目组 / 环境变量 / 本地状态' };
|
|
85
|
+
const VIDEO_SUPER_RESOLUTION_TARGET_ARG = { name: 'target-resolution', valueName: '1080P|2K', description: '目标分辨率;支持同档和降档增强' };
|
|
85
86
|
const MODEL_GROUP_ARG = { name: 'model-group-code', valueName: 'code', description: '模型组编码;创建和参数查询只传这个字段' };
|
|
86
87
|
const ASSET_PLATFORM_ARG = {
|
|
87
88
|
name: 'platform',
|
|
@@ -814,12 +815,13 @@ export function registerAwbCommands(cli) {
|
|
|
814
815
|
|
|
815
816
|
cli({
|
|
816
817
|
name: 'create video-super-resolution-fee',
|
|
817
|
-
description: commandHelp('计算视频超分预计积分;传入 objectName', {
|
|
818
|
-
examples: ['lj-awb create video-super-resolution-fee --object-name material/video-super/example.mp4 --project-group-no <no>'],
|
|
818
|
+
description: commandHelp('计算视频超分预计积分;传入 objectName 和目标分辨率', {
|
|
819
|
+
examples: ['lj-awb create video-super-resolution-fee --object-name material/video-super/example.mp4 --target-resolution 2K --project-group-no <no>'],
|
|
819
820
|
hint: 'objectName 通常是 material backendPath 或 COS 对象路径;正式超分前先看一次估价。',
|
|
820
821
|
}),
|
|
821
822
|
args: [
|
|
822
823
|
{ name: 'object-name', valueName: 'path', description: '视频对象路径;通常是 material backendPath 或 COS 对象路径' },
|
|
824
|
+
VIDEO_SUPER_RESOLUTION_TARGET_ARG,
|
|
823
825
|
PROJECT_GROUP_ARG,
|
|
824
826
|
],
|
|
825
827
|
func: async (_ctx, kwargs) => videoSuperResolutionFee(kwargs),
|
|
@@ -827,12 +829,13 @@ export function registerAwbCommands(cli) {
|
|
|
827
829
|
|
|
828
830
|
cli({
|
|
829
831
|
name: 'create video-super-resolution',
|
|
830
|
-
description: commandHelp('基于 objectName
|
|
831
|
-
examples: ['lj-awb create video-super-resolution --object-name material/video-super/example.mp4 --project-group-no <no> --dry-run'],
|
|
832
|
-
hint: '正式执行需要 --yes
|
|
832
|
+
description: commandHelp('基于 objectName 和目标分辨率提交视频超分任务', {
|
|
833
|
+
examples: ['lj-awb create video-super-resolution --object-name material/video-super/example.mp4 --target-resolution 2K --project-group-no <no> --dry-run'],
|
|
834
|
+
hint: '正式执行需要 --yes;目标分辨率支持 1080P / 2K,允许同档和降档增强。',
|
|
833
835
|
}),
|
|
834
836
|
args: [
|
|
835
837
|
{ name: 'object-name', valueName: 'path', description: '视频对象路径;通常是 material backendPath 或 COS 对象路径' },
|
|
838
|
+
VIDEO_SUPER_RESOLUTION_TARGET_ARG,
|
|
836
839
|
PROJECT_GROUP_ARG,
|
|
837
840
|
TASK_RECORD_ARG,
|
|
838
841
|
DRY_RUN_ARG,
|
|
@@ -224,6 +224,7 @@ function normalizeTaskSubmission(commandName, data = {}) {
|
|
|
224
224
|
taskId: data.taskId,
|
|
225
225
|
taskType: data.taskType,
|
|
226
226
|
objectName: data.objectName,
|
|
227
|
+
targetResolution: data.targetResolution,
|
|
227
228
|
modelGroupCode: data.modelGroupCode,
|
|
228
229
|
projectGroupNo: data.projectGroupNo,
|
|
229
230
|
pointNo: data.pointNo,
|
|
@@ -326,6 +327,7 @@ function normalizeSubtitleSubmission(data = {}) {
|
|
|
326
327
|
function normalizeFee(data = {}) {
|
|
327
328
|
return compactRecord({
|
|
328
329
|
objectName: data.objectName,
|
|
330
|
+
targetResolution: data.targetResolution,
|
|
329
331
|
modelGroupCode: data.modelGroupCode,
|
|
330
332
|
projectGroupNo: data.projectGroupNo,
|
|
331
333
|
pointCost: data.pointCost,
|
|
@@ -1682,8 +1684,8 @@ const DRY_RUN_FIELDS_BY_COMMAND = {
|
|
|
1682
1684
|
'create audio': ['dryRun', 'action', 'modelGroupCode', 'projectGroupNo', 'prompt', 'duration', 'audioFormat', 'resourceCount', 'localFileCount'],
|
|
1683
1685
|
'create image-batch': ['dryRun', 'count', 'modelGroupCode', 'projectGroupNo'],
|
|
1684
1686
|
'create video-batch': ['dryRun', 'count', 'modelGroupCode', 'projectGroupNo'],
|
|
1685
|
-
'create video-super-resolution-fee': ['dryRun', 'action', 'objectName', 'projectGroupNo', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter'],
|
|
1686
|
-
'create video-super-resolution': ['dryRun', 'action', 'objectName', 'projectGroupNo', 'taskId', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'nextCommand'],
|
|
1687
|
+
'create video-super-resolution-fee': ['dryRun', 'action', 'objectName', 'targetResolution', 'projectGroupNo', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter'],
|
|
1688
|
+
'create video-super-resolution': ['dryRun', 'action', 'objectName', 'targetResolution', 'projectGroupNo', 'taskId', 'pointCost', 'billingPointBalance', 'billingPointRemainingAfter', 'projectBudgetBalance', 'projectBudgetMax', 'projectBudgetRemainingAfter', 'nextCommand'],
|
|
1687
1689
|
'create video-subtitle-removal': ['dryRun', 'action', 'sourceTaskId', 'projectGroupNo'],
|
|
1688
1690
|
'create asset-group': ['dryRun', 'action', 'platform', 'name', 'projectName'],
|
|
1689
1691
|
'create asset-group-update': ['dryRun', 'action', 'groupId', 'platform', 'name', 'projectName'],
|
|
@@ -118,6 +118,7 @@ const ASSET_VIDEO_MIN_FPS = 24;
|
|
|
118
118
|
const ASSET_VIDEO_MAX_FPS = 60;
|
|
119
119
|
const ASSET_VIDEO_MIN_PIXELS = 640 * 640;
|
|
120
120
|
const ASSET_VIDEO_MAX_PIXELS = 834 * 1112;
|
|
121
|
+
const VIDEO_SUPER_RESOLUTION_TARGETS = new Set(['1080P', '2K']);
|
|
121
122
|
const ASSET_AUDIO_MIN_SECONDS = 2;
|
|
122
123
|
const ASSET_AUDIO_MAX_SECONDS = 15;
|
|
123
124
|
const AUDIO_SPEAKER_ID_PATTERN = /^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)+$/;
|
|
@@ -6732,6 +6733,15 @@ async function buildVideoSuperResolutionRequest(kwargs = {}, options = {}) {
|
|
|
6732
6733
|
if (!objectName) {
|
|
6733
6734
|
throw argumentError('缺少视频对象路径', '传 --object-name <objectName>;通常是 material 的 backendPath 或 COS 对象路径。');
|
|
6734
6735
|
}
|
|
6736
|
+
const rawTargetResolution = trimToNull(kwargs.targetResolution);
|
|
6737
|
+
if (!rawTargetResolution) {
|
|
6738
|
+
throw argumentError('缺少目标分辨率', '传 --target-resolution 1080P|2K。');
|
|
6739
|
+
}
|
|
6740
|
+
const normalizedTargetResolution = rawTargetResolution.toUpperCase();
|
|
6741
|
+
const targetResolution = normalizedTargetResolution === '1080' ? '1080P' : normalizedTargetResolution;
|
|
6742
|
+
if (!VIDEO_SUPER_RESOLUTION_TARGETS.has(targetResolution)) {
|
|
6743
|
+
throw argumentError(`不支持的目标分辨率:${rawTargetResolution}`, '只支持 --target-resolution 1080P|2K。');
|
|
6744
|
+
}
|
|
6735
6745
|
const dryRun = Boolean(options.dryRun);
|
|
6736
6746
|
const projectGroupNo = await resolveProjectGroupNo(kwargs.projectGroupNo, {
|
|
6737
6747
|
allowNull: true,
|
|
@@ -6743,9 +6753,11 @@ async function buildVideoSuperResolutionRequest(kwargs = {}, options = {}) {
|
|
|
6743
6753
|
});
|
|
6744
6754
|
return {
|
|
6745
6755
|
objectName,
|
|
6756
|
+
targetResolution,
|
|
6746
6757
|
projectGroupNo,
|
|
6747
6758
|
request: compactRecord({
|
|
6748
6759
|
objectName,
|
|
6760
|
+
targetResolution,
|
|
6749
6761
|
projectGroupNo,
|
|
6750
6762
|
}),
|
|
6751
6763
|
};
|
|
@@ -6758,6 +6770,7 @@ export async function videoSuperResolutionFee(kwargs = {}) {
|
|
|
6758
6770
|
dryRun: true,
|
|
6759
6771
|
action: 'create video-super-resolution-fee',
|
|
6760
6772
|
objectName: built.objectName,
|
|
6773
|
+
targetResolution: built.targetResolution,
|
|
6761
6774
|
projectGroupNo: built.projectGroupNo,
|
|
6762
6775
|
request: built.request,
|
|
6763
6776
|
materialEndpoint: '/api/material/creation/videoUpResolutionCal',
|
|
@@ -6767,6 +6780,7 @@ export async function videoSuperResolutionFee(kwargs = {}) {
|
|
|
6767
6780
|
const payload = await awbApi.fetchVideoSuperResolutionFee(built.request);
|
|
6768
6781
|
return {
|
|
6769
6782
|
objectName: built.objectName,
|
|
6783
|
+
targetResolution: built.targetResolution,
|
|
6770
6784
|
projectGroupNo: built.projectGroupNo,
|
|
6771
6785
|
data: payload,
|
|
6772
6786
|
...(await pointEstimate(payload, built.projectGroupNo)),
|
|
@@ -6780,6 +6794,7 @@ export async function videoSuperResolution(kwargs = {}) {
|
|
|
6780
6794
|
dryRun: true,
|
|
6781
6795
|
action: 'create video-super-resolution',
|
|
6782
6796
|
objectName: built.objectName,
|
|
6797
|
+
targetResolution: built.targetResolution,
|
|
6783
6798
|
projectGroupNo: built.projectGroupNo,
|
|
6784
6799
|
request: built.request,
|
|
6785
6800
|
materialEndpoint: '/api/material/creation/videoUpResolution',
|
|
@@ -6789,6 +6804,7 @@ export async function videoSuperResolution(kwargs = {}) {
|
|
|
6789
6804
|
ensureConfirmed(kwargs, '正式视频超分会通过 material 创建任务并消耗积分,需要确认', {
|
|
6790
6805
|
action: 'create video-super-resolution',
|
|
6791
6806
|
objectName: built.objectName,
|
|
6807
|
+
targetResolution: built.targetResolution,
|
|
6792
6808
|
});
|
|
6793
6809
|
const feePayload = await awbApi.fetchVideoSuperResolutionFee(built.request).catch(() => null);
|
|
6794
6810
|
const estimate = await pointEstimate(feePayload, built.projectGroupNo).catch(() => ({}));
|
|
@@ -6798,13 +6814,14 @@ export async function videoSuperResolution(kwargs = {}) {
|
|
|
6798
6814
|
submitted: true,
|
|
6799
6815
|
taskType: 'VIDEO_SUPER_RESOLUTION',
|
|
6800
6816
|
objectName: built.objectName,
|
|
6817
|
+
targetResolution: built.targetResolution,
|
|
6801
6818
|
projectGroupNo: built.projectGroupNo,
|
|
6802
6819
|
});
|
|
6803
6820
|
await appendTaskRecord(kwargs, {
|
|
6804
6821
|
taskId: result.taskId,
|
|
6805
6822
|
taskType: 'VIDEO_SUPER_RESOLUTION',
|
|
6806
6823
|
projectGroupNo: built.projectGroupNo,
|
|
6807
|
-
promptSummary: `视频超分 objectName=${built.objectName}`,
|
|
6824
|
+
promptSummary: `视频超分 objectName=${built.objectName}, targetResolution=${built.targetResolution}`,
|
|
6808
6825
|
});
|
|
6809
6826
|
return {
|
|
6810
6827
|
...result,
|
|
@@ -536,7 +536,7 @@ const GROUP_EXAMPLES = {
|
|
|
536
536
|
'lj-awb create video --model-group-code <code> --prompt "镜头推进" --resource image:first_frame=./actor.png --dry-run',
|
|
537
537
|
'lj-awb create video-fee --model-group-code <code> --prompt "雨夜奔跑" --duration 5',
|
|
538
538
|
'lj-awb create audio --model-group-code <code> --prompt "海浪与钢琴" --duration 12 --dry-run',
|
|
539
|
-
'lj-awb create video-super-resolution --object-name material/video-super/example.mp4 --dry-run',
|
|
539
|
+
'lj-awb create video-super-resolution --object-name material/video-super/example.mp4 --target-resolution 2K --dry-run',
|
|
540
540
|
'lj-awb create subject --model-code tx --name 女主 --resource primary:./three-view.png --dry-run',
|
|
541
541
|
'lj-awb create subject-wait --element-id <elementId> --wait-seconds 300',
|
|
542
542
|
'lj-awb create asset --group-id <id> --platform JIMENG --file ./actor.png --name "女主正面" --dry-run',
|
|
@@ -564,8 +564,8 @@ const COMMAND_REQUIRED_OPTIONS = {
|
|
|
564
564
|
'create video-batch': ['inputFile', 'modelGroupCode'],
|
|
565
565
|
'create audio-fee': ['modelGroupCode', 'prompt', 'duration'],
|
|
566
566
|
'create audio': ['modelGroupCode', 'prompt', 'duration'],
|
|
567
|
-
'create video-super-resolution-fee': ['objectName'],
|
|
568
|
-
'create video-super-resolution': ['objectName'],
|
|
567
|
+
'create video-super-resolution-fee': ['objectName', 'targetResolution'],
|
|
568
|
+
'create video-super-resolution': ['objectName', 'targetResolution'],
|
|
569
569
|
'task status': ['taskId'],
|
|
570
570
|
'task wait': ['taskId'],
|
|
571
571
|
'create asset-match-actor': ['description'],
|
|
@@ -585,8 +585,8 @@ const COMMAND_REQUIRED_ANY_OPTIONS = {
|
|
|
585
585
|
'upload files': [['file', 'files', 'filesJson']],
|
|
586
586
|
'create video-fee': [['prompt', 'resource', 'resourcesJson']],
|
|
587
587
|
'create video': [['prompt', 'resource', 'resourcesJson']],
|
|
588
|
-
'create video-super-resolution-fee': [['objectName']],
|
|
589
|
-
'create video-super-resolution': [['objectName']],
|
|
588
|
+
'create video-super-resolution-fee': [['objectName'], ['targetResolution']],
|
|
589
|
+
'create video-super-resolution': [['objectName'], ['targetResolution']],
|
|
590
590
|
'create video-subtitle-removal': [['sourceTaskId']],
|
|
591
591
|
'create asset-group-update': [['name', 'description', 'projectName']],
|
|
592
592
|
'create asset': [['file', 'url', 'backendPath']],
|
|
@@ -730,8 +730,8 @@ const PREFLIGHTS_BY_COMMAND = {
|
|
|
730
730
|
'create video': ['doctor --verify', 'model video-models', 'model options', 'model create-spec', 'confirm missing key params', 'create video-fee', 'create video --dry-run'],
|
|
731
731
|
'create audio': ['doctor --verify', 'model audio-models', 'model options', 'create audio-fee', 'create audio --dry-run'],
|
|
732
732
|
'create video-batch': ['doctor --verify', 'model video-models', 'model options', 'model create-spec', 'prepare JSONL input', 'create video-batch --dry-run'],
|
|
733
|
-
'create video-super-resolution-fee': ['doctor --verify', 'create video-super-resolution-fee --object-name <objectName>'],
|
|
734
|
-
'create video-super-resolution': ['doctor --verify', 'create video-super-resolution --object-name <objectName> --dry-run'],
|
|
733
|
+
'create video-super-resolution-fee': ['doctor --verify', 'create video-super-resolution-fee --object-name <objectName> --target-resolution 1080P'],
|
|
734
|
+
'create video-super-resolution': ['doctor --verify', 'create video-super-resolution --object-name <objectName> --target-resolution 1080P --dry-run'],
|
|
735
735
|
'create subject': ['doctor --verify', 'create subject --model-code tx|vidu --dry-run'],
|
|
736
736
|
'create subject-batch': ['doctor --verify', 'prepare JSONL input with modelCode', 'create subject-batch --dry-run'],
|
|
737
737
|
'create video-subtitle-removal': ['doctor --verify', 'create video-subtitle-removal --source-task-id <videoTaskId> --dry-run'],
|
package/skills/lj-awb/SKILL.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lj-awb
|
|
3
|
-
version: 0.5.
|
|
3
|
+
version: 0.5.20
|
|
4
4
|
description: "灵境 AWB CLI skill。使用 `lj-awb` 命令调用动漫平台 / AWB 云端能力,覆盖认证、项目组、积分余额/明细/用量(含充值购买与兑换码兑换)、模型发现、上传、统一 create 创建域、任务查询、视频超分。用户说生图、生视频、生成音频、积分明细、积分流水、充值记录、消耗记录、主体、音色、素材加白、去字幕时使用。正式生成、切换项目组、清空认证、兑换码等写入或扣费动作前必须确认。"
|
|
5
5
|
metadata:
|
|
6
6
|
bootstrap:
|
|
7
7
|
package: "@lingjingai/lj-awb-cli"
|
|
8
|
-
version: "0.5.
|
|
8
|
+
version: "0.5.20"
|
|
9
9
|
bin: "lj-awb"
|
|
10
10
|
cliHelp: "lj-awb --help"
|
|
11
11
|
---
|
package/skills/lj-awb/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.20
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
| `lj-awb create video --model-group-code <code> --prompt "镜头推进" --resource image:first_frame=asset:<assetId> --duration 5 --yes` | 资产首帧生视频 |
|
|
15
15
|
| `lj-awb create video --model-group-code <code> --prompt "<<<女主>>> 奔跑" --resource subject:reference:女主=asset:asset_xxx --duration 5 --yes` | 主体参考生视频 |
|
|
16
16
|
| `lj-awb create video-batch --input-file ./video.jsonl --model-group-code <code> --yes` | 批量生视频 |
|
|
17
|
-
| `lj-awb create video-super-resolution --object-name <objectName> --yes` | 基于 material objectName
|
|
18
|
-
| `lj-awb create video-super-resolution-fee --object-name <objectName
|
|
17
|
+
| `lj-awb create video-super-resolution --object-name <objectName> --target-resolution 1080P\|2K --yes` | 基于 material objectName 和目标分辨率提交视频超分任务 |
|
|
18
|
+
| `lj-awb create video-super-resolution-fee --object-name <objectName> --target-resolution 1080P\|2K` | 计算指定目标分辨率的视频超分预计积分 |
|
|
19
19
|
| `lj-awb create video-subtitle-removal --source-task-id <videoTaskId> --yes` | 基于来源视频任务提交去字幕任务 |
|
|
20
20
|
| `lj-awb task status --task-id <taskId>` | 查询任务状态 |
|
|
21
21
|
| `lj-awb task wait --task-id <taskId> --wait-seconds 300` | 等待任务结果 |
|
|
@@ -86,7 +86,7 @@ lj-awb create video \
|
|
|
86
86
|
- 批量 JSON/JSONL 每项只写 `prompt`、`ratio`、`quality`、`duration`、`need_audio`、`resources`、`resource`、`model_params`,也可直接写模型配置下划线参数;其中 `need_audio` 表示是否需要输出音效,音频素材仍写入 `resources`。
|
|
87
87
|
- **批量是 best-effort**:`create-batch` 子任务**单条失败不会回滚整批**,已成功项依然扣分并产生 taskId。提交后必读响应里的 `successCount` / `failureCount` 和每项 `status` / `taskId` / `statusCommand` / `error`,给用户汇总"成功 N / 失败 M",对失败项单独 fix + 重跑(不要全批重跑)。只有显式传了 `--task-record-file` 且响应包含 `taskRecordFile` / `nextCommand` 时,才使用台账恢复查询。
|
|
88
88
|
- 视频任务默认可能耗时较长,批量和复杂任务应异步提交并记录 task id。
|
|
89
|
-
-
|
|
89
|
+
- 视频超分传 `objectName` 和必填的 `targetResolution`(`1080P` / `2K`),通常是 material backendPath 或 COS 对象路径;显式指定目标档位时允许同档和降档增强(如原视频短边 1088 像素,目标选 1080P)。正式提交前先跑 `create video-super-resolution-fee`,再 `--dry-run`,确认后 `--yes`,返回后按 `nextCommand` 或 `task status --task-id <id>` 查询。
|
|
90
90
|
- **多镜头 / 多分镜时主动建议并行**:用户一次给出 ≥2 个同模型同参数的视频任务(典型场景:分镜流水线、批量首尾帧动画)时,Agent 必须先告知"这批可以用 `create video-batch --concurrency N` 并行执行(n 个任务,预计耗时 / 单次估价 × n)",并询问用户是否要并行。用户同意 → 走 batch;用户希望逐条审稿 → 继续单条 create。**不要默认一条一条串行还不告知**。
|
|
91
91
|
- 视频超分不走 model options/create-spec;它是 material 的对象路径任务,和生视频模型选择链路分离。
|
|
92
92
|
- 去字幕统一走 material 任务体系:用已成功的视频来源任务 ID `create video-subtitle-removal --source-task-id <videoTaskId> --dry-run`,不要直连外部服务;`task status` 只接收 material 去字幕任务的 `--task-id`。
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
| `fee_estimate` | `create image-fee` / `create video-fee` | `pointCost`、`billingPointBalance`、`billingPointRemainingAfter` | — | budget 嵌套 |
|
|
61
61
|
| `task_submission` | `create image` / `create video` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand`、`statusCommand` | `taskId`、`taskType`(喂给 `task wait`) | uploads 数组、modelGroupCode |
|
|
62
62
|
| `batch_task_submission` | `create image-batch` / `create video-batch` | 成功 / 失败计数、首条 `taskId` 用于追踪 | `tasks[]` 每条 taskId + status | localFiles 详情 |
|
|
63
|
-
| `fee_estimate` | `create video-super-resolution-fee` | `pointCost`、`billingPointBalance`、`billingPointRemainingAfter` | — | budget 嵌套 |
|
|
64
|
-
| `task_submission` | `create video-super-resolution` | `taskId`、`pointCost`、`billingPointRemainingAfter`、`nextCommand` | `taskId`、`nextCommand`(喂给 `task status --task-id <id>`) | request 嵌套 |
|
|
63
|
+
| `fee_estimate` | `create video-super-resolution-fee` | `targetResolution`、`pointCost`、`billingPointBalance`、`billingPointRemainingAfter` | — | budget 嵌套 |
|
|
64
|
+
| `task_submission` | `create video-super-resolution` | `taskId`、`targetResolution`、`pointCost`、`billingPointRemainingAfter`、`nextCommand` | `taskId`、`nextCommand`(喂给 `task status --task-id <id>`) | request 嵌套 |
|
|
65
65
|
| `task_status` | `task wait` / `task status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage`、`benefitsId`(有值时可接 `credits detail-status --detail-id <id>` 查积分状态) | `isTerminal`(false → 续 wait)、`timedOut`、`pointNo` | `waitedMs`、`gmtCreate` |
|
|
66
66
|
| `subtitle_task_submission` | `create video-subtitle-removal` | `submitted`、`taskId`、`pointCost`、`nextCommand` | `taskId`、`sourceTaskId` | budget 嵌套 |
|
|
67
67
|
| `subtitle_task_status` | `task status` | `taskStatus`、`isTerminal`、`resultUrls`、`errorMessage` | `taskId` | `gmtCreate` |
|