gangvy преди 5 месеца
родител
ревизия
883f71c265
променени са 43 файла, в които са добавени 6077 реда и са изтрити 1 реда
  1. 59 0
      README.md
  2. 2 1
      deploy-to-openclaw.ps1
  3. 555 0
      docs/即梦/README_v2.md
  4. 735 0
      docs/即梦/testImg.js
  5. 36 0
      jimeng/jimeng-actor-v2/SKILL.md
  6. 177 0
      jimeng/jimeng-actor-v2/api-config.json
  7. 34 0
      jimeng/jimeng-actor/SKILL.md
  8. 167 0
      jimeng/jimeng-actor/api-config.json
  9. 44 0
      jimeng/jimeng-clothes-v2/SKILL.md
  10. 229 0
      jimeng/jimeng-clothes-v2/api-config.json
  11. 36 0
      jimeng/jimeng-img-v4-goods/SKILL.md
  12. 195 0
      jimeng/jimeng-img-v4-goods/api-config.json
  13. 37 0
      jimeng/jimeng-img-v4-pod/SKILL.md
  14. 199 0
      jimeng/jimeng-img-v4-pod/api-config.json
  15. 81 0
      jimeng/jimeng-img-v4/SKILL.md
  16. 234 0
      jimeng/jimeng-img-v4/api-config.json
  17. 36 0
      jimeng/jimeng-img2img-v3/SKILL.md
  18. 187 0
      jimeng/jimeng-img2img-v3/api-config.json
  19. 34 0
      jimeng/jimeng-inpaint/SKILL.md
  20. 172 0
      jimeng/jimeng-inpaint/api-config.json
  21. 35 0
      jimeng/jimeng-oh-detect/SKILL.md
  22. 166 0
      jimeng/jimeng-oh-detect/api-config.json
  23. 40 0
      jimeng/jimeng-oh-generate/SKILL.md
  24. 196 0
      jimeng/jimeng-oh-generate/api-config.json
  25. 43 0
      jimeng/jimeng-oh-identify/SKILL.md
  26. 162 0
      jimeng/jimeng-oh-identify/api-config.json
  27. 47 0
      jimeng/jimeng-oh-query/SKILL.md
  28. 220 0
      jimeng/jimeng-oh-query/api-config.json
  29. 35 0
      jimeng/jimeng-super-resolution/SKILL.md
  30. 181 0
      jimeng/jimeng-super-resolution/api-config.json
  31. 79 0
      jimeng/jimeng-task-query/SKILL.md
  32. 233 0
      jimeng/jimeng-task-query/api-config.json
  33. 42 0
      jimeng/jimeng-text2img-v3/SKILL.md
  34. 187 0
      jimeng/jimeng-text2img-v3/api-config.json
  35. 39 0
      jimeng/jimeng-text2img-v31/SKILL.md
  36. 182 0
      jimeng/jimeng-text2img-v31/api-config.json
  37. 38 0
      jimeng/jimeng-video-v3-1080p/SKILL.md
  38. 206 0
      jimeng/jimeng-video-v3-1080p/api-config.json
  39. 66 0
      jimeng/jimeng-video-v3-720p/SKILL.md
  40. 237 0
      jimeng/jimeng-video-v3-720p/api-config.json
  41. 37 0
      jimeng/jimeng-video-v3-pro/SKILL.md
  42. 197 0
      jimeng/jimeng-video-v3-pro/api-config.json
  43. 160 0
      jimeng/test-skill-flow.js

+ 59 - 0
README.md

@@ -85,6 +85,65 @@ openclaw-voc-skill/
 │   ├── user-persona/                 # 用户画像 + 购买行为分析 + 季节/渠道偏好
 │   └── voc-proposal/                 # 6章节提案 + ROI估算 + 30天行动时间线
+├── jimeng/                           # 即梦AI生成(火山引擎/Volcengine)
+│   ├── jimeng-img-v4/               # 图片生成4.0(文生图/多图编辑/4K输出)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-text2img-v3/          # 即梦文生图3.0(文字响应精准/人像逼真)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-text2img-v31/         # 即梦文生图3.1(画面美感升级/风格多样)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-img2img-v3/           # 即梦图生图3.0智能参考(图像编辑)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-img-v4-pod/           # 图片生成4.0-素材提取(POD按需定制)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-img-v4-goods/         # 图片生成4.0-商品提取(白底展示图)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-inpaint/              # 交互编辑(局部重绘/消除笔)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-super-resolution/     # 智能超清(4K/8K)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-clothes-v2/           # 图片换装V2(虚拟试衣)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-video-v3-720p/        # 视频生成3.0-720p(文/图生视频+运镜)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-video-v3-1080p/       # 视频生成3.0-1080p(高清视频)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-video-v3-pro/         # 视频生成3.0Pro(多镜头叙事/专业级)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-actor/                # 动作模仿1.0(图+视频→动作驱动)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-actor-v2/             # 动作模仿2.0(多人/非真人驱动)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-oh-identify/          # 数字人v1.5-步骤1:主体识别
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-oh-detect/            # 数字人v1.5-步骤2:主体检测(可选)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-oh-generate/          # 数字人v1.5-步骤3:视频生成(OmniHuman)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   ├── jimeng-oh-query/             # 数字人任务查询(步骤1/步骤3轮询)
+│   │   ├── SKILL.md
+│   │   └── api-config.json
+│   └── jimeng-task-query/           # 通用任务结果查询(轮询生成状态)
+│       ├── SKILL.md
+│       └── api-config.json
+│
 ├── video-creation/                   # 一键成片(Quickly AI视频生成)
 │   ├── quickly-video-create/         # 创建视频生成任务(素材→task_id)
 │   │   ├── SKILL.md

+ 2 - 1
deploy-to-openclaw.ps1

@@ -23,7 +23,8 @@ $categories = @(
     "synthesis",
     "social-voc",
     "douyin",
-    "video-creation"
+    "video-creation",
+    "jimeng"
 )
 
 Write-Host "========================================"

+ 555 - 0
docs/即梦/README_v2.md

@@ -0,0 +1,555 @@
+# 即梦接口文档
+## 接口列表
+### /volcengine/jimeng/getDataByTask02 获取数据接口
+- 请求参数
+    - taskId < string > 任务ID【选填】与workId二选一
+    - workId < string > ImagineWork数据id【选填】与taskId二选一
+    - routerName < string > 对应接口名称【必填】首次获取资源必填
+        - 可选:getClothesV2、getImgByImg、getImgV4、getText2ImgV3、getText2ImgV31、getImg2ImgV3、getImgV4_pod、getImgV4_goods、getInpaint、getSuperResolution、getVideoV3_720p、getVideoV3_1080p、getVideoV3_Pro、getActor、getActorV2
+    - logo_info < object > 水印信息【选填】
+        - add_logo:< Boolean > 是否添加水印【选填】
+            - 默认:False
+        - position:< Int > 水印的位置【选填】
+            - 0-右下角 (默认)
+            - 1-左下角
+            - 2-左上角
+            - 3-右上角
+        - language:< Int > 语言【选填】
+            - 0-中文(默认)
+            - 1-英文
+        - opacity:< Float > 不透明度【选填】
+            - [0,1],1表示完全不透明,默认1
+        - logo_text_content:< String > 水印内容【选填】
+- 响应示例
+    - 成功:
+        - {"code": 200,"data": {tip:'生成成功',isFinish:true}}
+        - 根据workId查询ImagineWork表的images或videos字段
+    - 失败:对应报错提示
+### /volcengine/jimeng/getClothesV2 图片换装V2
+- 请求参数
+    - model < string > 模特图URL【必填】
+    - upper < string > 上装图URL【选填】与bottom至少提供一个
+    - bottom < string > 下装图URL【选填】与upper至少提供一个
+    - inference_config < object > 推理配置参数【选填】
+        - do_sr < boolean > 是否对结果进行超分处理【选填】默认false
+        - seed < number > 随机种子参数【选填】默认-1
+        - keep_head < boolean > 是否保持模特原图的头【选填】默认true
+        - keep_hand < boolean > 是否保持模特原图的手【选填】默认false
+        - keep_foot < boolean > 是否保持模特原图的足【选填】默认false
+        - num_steps < number > 模型推理步数【选填】默认16,范围[8,50]
+        - keep_upper < boolean > 是否保持模特原图的上装【选填】默认false
+        - keep_lower < boolean > 是否保持模特原图的下装【选填】默认false
+        - tight_mask < string > 模特图遮挡区域范围【选填】默认"loose",支持["tight","loose","bbox"]
+        - p_bbox_iou_ratio < number > 多人时bbox相交比例【选填】默认0.3,范围[0,1.0]
+        - p_bbox_expand_ratio < number > bbox扩大比例【选填】默认1.1,范围[1.0,1.5]
+        - max_process_side_length < number > 最大边长【选填】默认1920,范围[1080,4096]
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+### /volcengine/jimeng/getImgByImg 图生图
+- 请求参数
+    - image_urls < string > 图片url【选填二选一】
+    - binary_data_base64 < string > 图片base64【选填二选一】
+    - prompt < string > 图像的提示语【必填】
+    - scale < string > 文本描述影响程度【必填】范围[0.0,1.0],默认0.5
+    - width < string > 图像宽【选填】范围[512,2016],默认512
+    - height < string > 图像高【选填】范围[512,2016],默认512
+
+### /volcengine/jimeng/getImgV4 图片生成4.0
+- 请求参数
+    - image_urls < array of string > 图片文件URL【选填】支持输入0至10张图
+    - prompt < string > 提示词【必填】
+    - sizeDate < object > 图片尺寸数据【选填】不传则使用上游默认
+        - 字段:size,width,height,min_ratio,max_ratio
+        ```
+            生成图片的面积,默认值:4194304,即2048*2048,生成2K分辨率图像;
+            取值范围:[1024*1024, 4096*4096],可生成1K到4K分辨率图像;
+            建议生成2k以上的图片,过小分辨率图片较大概率出现人脸效果不佳、文字异常等效果问题;若2K图片出图效果也不符合预期,可尝试输出更高分辨率图片
+            1、生成图像宽高,默认该字段不传;
+            2、宽高乘积在[1024*1024, 4096*4096],且宽高比在[min_ratio, max_ratio]之间
+            注意:
+            需同时传width和height才会生效
+            推荐可选的宽高:
+            1K
+            1024x1024 (1:1)
+            2K
+            2048x2048 (1:1)
+            2304x1728(4:3)
+            2496x1664 (3:2)
+            2560x1440 (16:9)
+            3024x1296 (21:9)
+            4K
+            4096x4096 (1:1)
+            4694x3520(4:3)
+            4992x3328 (3:2)
+            5404x3040 (16:9)
+            6198x2656 (21:9)
+        ```
+    - scale < float > 文本影响程度【选填】范围[0,1],默认0.5
+    - force_single < float > 是否强制生成单图【选填】默认false
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getText2ImgV3 即梦文生图3.0
+- 请求参数
+    - prompt < string > 提示词【必填】建议<=120字符,最长不超过800字符
+    - use_pre_llm < boolean > 是否开启文本扩写【选填】默认true
+    - sizeDate < object > 图片尺寸数据【选填】默认{width:1328,height:1328}
+        - width < number > 图片宽【选填】
+        - height < number > 图片高【选填】
+        ```
+        约束:宽高比在1:3到3:1之间,宽高乘积在[512*512, 2048*2048]之间
+        推荐比例:
+            标清1K:1328*1328(1:1)、1472*1104(4:3)、1584*1056(3:2)、1664*936(16:9)、2016*864(21:9)
+            高清2K:2048*2048(1:1)、2304*1728(4:3)、2496*1664(3:2)、2560*1440(16:9)、3024*1296(21:9)
+        ```
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getText2ImgV31 即梦文生图3.1
+- 请求参数
+    - prompt < string > 提示词【必填】建议<=120字符,最长不超过800字符
+    - use_pre_llm < boolean > 是否开启文本扩写【选填】默认true
+    - sizeDate < object > 图片尺寸数据【选填】默认{width:1328,height:1328}
+        - width < number > 图片宽【选填】
+        - height < number > 图片高【选填】
+        ```
+        约束:宽高比在1:3到3:1之间,宽高乘积在[512*512, 2048*2048]之间
+        推荐比例:
+            标清1K:1328*1328(1:1)、1472*1104(4:3)、1584*1056(3:2)、1664*936(16:9)、2016*864(21:9)
+            高清2K:2048*2048(1:1)、2304*1728(4:3)、2496*1664(3:2)、2560*1440(16:9)、3024*1296(21:9)
+        ```
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getImg2ImgV3 即梦图生图3.0智能参考
+- 请求参数
+    - image_url < string > 图片文件URL【必填】需输入1张图片
+    - prompt < string > 提示词【必填】建议<=120字符,最长不超过800字符
+    - scale < number > 文本描述影响程度【选填】范围[0,1],默认0.5
+    - sizeDate < object > 图片尺寸数据【选填】默认{width:1328,height:1328}
+        - width < number > 图片宽【选填】
+        - height < number > 图片高【选填】
+        ```
+            1、生成图像宽高,系统默认生成1328 * 1328的图像;
+            2、支持自定义生成图像宽高,宽高比在1:3到3:1之间,宽高乘积在[512*512, 2048*2048]之间;推荐可选的宽高比为:
+            标清1K
+            1328 * 1328(1:1)
+            1472 * 1104 (4:3)
+            1584 * 1056(3:2)
+            1664 * 936(16:9)
+            2016 * 864(21:9)
+            高清2K
+            2048 * 2048(1:1)
+            2304 * 1728 (4:3)
+            2496 * 1664(3:2)
+            2560 * 1440(16:9)
+            3024 * 1296(21:9)
+            
+            注意:
+            需同时传width和height才会生效;
+
+        ```
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getImgV4_pod 图片生成4.0-素材提取(POD按需定制)
+- 请求参数
+    - image_url < string > 图片文件URL【必填】
+    - instruction < number > 编辑指令【选填】默认1,取值:1|2|3|4
+        - 1:提取图案:提取产品的图案,生成一张平面图展示其图案,去除产品本身。
+        - 2:提取包装:提取产品的包装图案,生成一张平面图展示其图案,去除产品本身。
+        - 3:提取logo:提取产品的logo,生成一张平面图展示其logo,去除产品本身。
+        - 4:提取纹理:提取产品的纹理,生成一张平面图平铺展示其纹理,去除产品本身。
+    - prompt < string > 提示词【选填】
+    - lora_weight < number > lora权重【选填】范围[0,1],默认1.000
+    - sizeDate < object > 图片尺寸数据【选填】默认{width:2048,height:2048}
+        - width < number > 图片宽【选填】范围见下
+        - height < number > 图片高【选填】范围见下
+        - 固定搭配:(1024,1024)、(2048,2048)、(2304,1728)、(2496,1664)、(2560,1440)、(3024,1296)、(4096,4096)、(4694,3520)、(4992,3328)、(5404,3040)、(6198,2656)
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getImgV4_goods 图片生成4.0-商品提取
+- 请求参数
+    - image_url < string > 图片文件URL【必填】
+    - instruction < number > 编辑指令【选填】默认1,取值1|2|3|4|5|6        
+        - 1: '提取全身衣服:提取出图片中的衣服、帽子、鞋子和包,生成一张平铺图,背景为纯白色。'
+        - 2: '提取鞋子:提取出图片中的一双鞋子,生成一张正45度图,背景为纯白色。'
+        - 3: '提取包包:提取出图片中的完整的包包和包带,正视图,背景为纯白色。'
+        - 4: '提取沙发:提取出图片中的完整的沙发,生成一张正视图,背景为纯白色。'
+        - 5: '提取日用品:提取出图片中的日用品,生成一张正视图,背景为纯白色。'
+        - 6: '提取饰品:提取出图片中的饰品,生成一张正视图,背景为纯白色。'
+    - sizeDate < object > 图片尺寸数据【选填】默认{width:2048,height:2048}
+        - width < number > 图片宽【选填】范围见下
+        - height < number > 图片高【选填】范围见下
+        - 固定搭配:(1024,1024)、(2048,2048)、(2304,1728)、(2496,1664)、(2560,1440)、(3024,1296)、(4096,4096)、(4694,3520)、(4992,3328)、(5404,3040)、(6198,2656)
+    - prompt < string > 提示词【选填】
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getInpaint 交互编辑(局部重绘/消除笔)
+- 请求参数
+    - image_urls < array > 图片文件URL【必填】需输入2张图片
+    - prompt < string > 提示词【必填】
+        - 消除场景输入“删除”,文字内容修改放在“”内提升准确率
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getSuperResolution 智能超清
+- 请求参数
+    - image_urls < array > 图片文件URL【必填】需输入1张图片
+    - resolution < string > 图片分辨率【选填】默认4k,取值'4k'|'8k'
+    - scale < number > 细节生成程度【选填】默认50,范围[0,100]
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getVideoV3_720p 视频生成3.0(720p)
+- 请求参数
+    - prompt < string > 提示词【必填】
+    - frames < number > 帧数【选填】范围[121,241],默认121
+    - method < string > 生成方式【必填】取值 1|2|3|4
+        - 1:文生视频
+        - 2:图生视频-首帧
+        - 3:图生视频-首尾帧
+        - 4:图生视频-运镜
+    - config < object > 其他配置参数【选填】
+        - 1:文生视频
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+            - aspect_ratio < string > 长宽比【选填】默认"16:9"
+                - 取值:"16:9","4:3","1:1","3:4","9:16","21:9"
+        - 2:图生视频-首帧
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+            - image_urls < array of string > 图片文件URL【必填】仅支持1张
+                - 图片长边与短边比例在3以内
+        - 3:图生视频-首尾帧
+            - image_urls < array of string > 图片文件URL【必填】需输入2张
+                - 图片长边与短边比例在3以内
+                - 尾帧图片需与首帧图片比例相同
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+        - 4:图生视频-运镜
+            - image_urls < array of string > 图片文件URL【必填】仅支持1张
+                - 图片长边与短边比例在3以内
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - template_id < string > 运镜模板ID【必填】
+                - hitchcock_dolly_in: 希区柯克推进
+                - hitchcock_dolly_out: 希区柯克拉远
+                - robo_arm: 机械臂
+                - dynamic_orbit: 动感环绕
+                - central_orbit: 中心环绕
+                - crane_push: 起重机
+                - quick_pull_back: 超级拉远
+                - counterclockwise_swivel: 逆时针回旋
+                - clockwise_swivel: 顺时针回旋
+                - handheld: 手持运镜
+                - rapid_push_pull: 快速推拉
+            - camera_strength < string > 强度【必填】
+                - weak: 弱
+                - medium: 中
+                - strong: 强
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+### /volcengine/jimeng/getVideoV3_1080p 视频生成3.0(1080p)
+- 请求参数
+    - prompt < string > 提示词【必填】
+    - frames < number > 帧数【选填】范围[121,241],默认121
+    - method < string > 生成方式【必填】取值 1|2|3
+        - 1:文生视频
+        - 2:图生视频-首帧
+        - 3:图生视频-首尾帧
+    - config < object > 其他配置参数【选填】
+        - 1:文生视频
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+            - aspect_ratio < string > 长宽比【选填】默认"16:9"
+                - 取值:"16:9","4:3","1:1","3:4","9:16","21:9"
+        - 2:图生视频-首帧
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+            - image_urls < array of string > 图片文件URL【必填】仅支持1张
+                - 图片长边与短边比例在3以内
+        - 3:图生视频-首尾帧
+            - prompt < string > 提示词【必填】建议<=400字
+                - 最长不超过800字,过长可能效果异常或不生效
+            - frames < int > 总帧数【选填】范围[121,241],默认121
+                - 帧数=24*n+1,支持5s、10s
+            - image_urls < array of string > 图片文件URL【必填】需输入2张
+                - 图片长边与短边比例在3以内
+                - 尾帧图片需与首帧图片比例相同
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+### /volcengine/jimeng/getVideoV3_Pro 即梦视频生成3.0Pro
+- 请求参数
+    - prompt < string > 提示词【选填】文生视频必填
+        - 图生视频可不传
+    - image_url < string > 首帧图片URL【选填】图生视频必填
+    - image_urls < array | string > 首帧图片URL【选填】允许传数组或单值
+    - frames < number > 帧数【选填】范围[121,241],默认121
+    - aspect_ratio < number > 比例编号【选填】取值1|2|3|4|5|6
+        - 123456分别对应:16:9、4:3、1:1、3:4、9:16、21:9
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getActor 动作模仿
+- 请求参数
+    - video_url < string > 视频url【必填】
+    - image_url < string > 图片url【必填】
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getActorV2 动作模仿2.0
+- 请求参数
+    - image_url < string > 图片url【必填】
+    - video_url < string > 视频url【必填】
+    - cut_result_first_second_switch < boolean > 是否裁剪结果视频第1秒【选填】默认true
+    - callback_url < string > 回调接口URL【选填】
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+        - 失败:对应报错提示
+
+### /volcengine/jimeng/getOhIdentifyMain 数字人v1.5 步骤1:主体识别
+- 请求参数
+    - image_url < string > 图片url【必填】
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"workId": "ImagineWork表记录Id"}}
+    - 失败:对应报错提示
+
+### /volcengine/jimeng/getOhDateByTask 数字人查询任务(步骤1/步骤3)
+- 请求参数
+    - taskId < string > 任务id【选填】与workId二选一
+    - workId < string > 作品id【选填】与taskId二选一
+    - routerName < string > 查询接口名称【必填】
+        - 取值:getOhIdentifyMain 或 getOmniHuman
+    - logo_info < object > 水印信息【选填】
+        - 仅 routerName=getOmniHuman 时生效
+- 响应示例
+    - 成功:
+        - 主体识别:{"code": 200, "data": {"tip": "存在主体"|"不存在主体"|"生成中,请等待...", "isContinue": true|false, "isFinish": false}}
+        - 数字人生成:{"code": 200, "data": {"tip": "生成成功"|状态文案, "isFinish": true|false}}
+    - 失败:对应报错提示
+
+### /volcengine/jimeng/getOhDetectMain 数字人v1.5 步骤2:主体检测
+- 请求参数
+    - taskId < string > 任务id【选填】与workId二选一
+    - workId < string > 作品id【选填】与taskId二选一
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"tip": "生成成功", "isContinue": true, "isFinish": false}}
+    - 失败:对应报错提示或失败状态
+
+### /volcengine/jimeng/getOmniHuman 数字人v1.5 步骤3:视频生成
+- 请求参数
+    - taskId < string > 任务id【选填】与workId二选一
+    - workId < string > 作品id【选填】与taskId二选一
+    - audio_url < string > 音频url【必填】
+    - prompt < string > 提示词【选填】
+    - pe_fast_mode < boolean > 数字人快速模式【选填】默认false
+    - mask_url < array > 掩码图URL列表【选填】
+        - 优先使用此参数,否则使用步骤2生成的掩码
+- 响应示例
+    - 成功:
+        - {"code": 200, "data": {"tip": "生成成功", "isContinue": true, "isFinish": false}}
+    - 失败:对应报错提示
+## 接口列表-注意事项
+- 所有接口请求body内必传token参数 < string > 【必填】
+    - 示例:token: `Bearer r:f0333969e312a40e4703e8fxxxxxxxxx`
+- 生成作品后自动扣费, ImagineWork 表 usage 字段记录了扣费详情
+## 请求示例:
+- /test/testImg.js
+## 前端调用流程
+- 正常接口
+    - 步骤1:提交任务
+        - 本地测试:调用 http://127.0.0.1:7337/api/volcengine/jimeng/相应接口名称
+        - 生产环境:调用 https://server.fmode.cn/api/volcengine/jimeng/相应接口名称
+    - 步骤2:获取作品
+        - 调用 getDataByTask02 接口,轮询查询任务状态,直到任务完成。
+    - 步骤3:获取作品生成结果
+        - 查询 ImagineWork 表, objectId 为步骤1的 workId 
+            - videos: < array< string > > 视频URL列表
+                - 示例:["https://example.com/video1.mp4", "https://example.com/video2.mp4"]
+                - videos里面的url已转存,永久有效
+            - images: < array< string > > 图片URL列表
+                - 示例:["https://example.com/image1.png", "https://example.com/image2.png"]
+                - images里面的url已转存,永久有效
+- 数字人接口
+    - 步骤1:提交主体识别任务
+        - 调用 getOhIdentifyMain 接口
+    - 步骤1.1:获取主体识别结果
+        - 调用 getOhDateByTask 接口, routerName = 'getOhIdentifyMain' ,轮询查询任务状态,直到任务完成。
+    - 步骤2:主体检测任务 
+        - 调用 getOhDetectMain 接口
+        - 此 步骤2、 步骤2.1 、 步骤2.2 可跳过,直接进行步骤3
+    - 步骤2.1:获取主体检测结果
+        - 查询 ImagineWork 表, objectId 为步骤1的 workId ,获取 maskUrls 字段
+            - maskUrls < array< string > > 掩码图URL列表
+                - 示例:["https://example.com/mask1.png", "https://example.com/mask2.png"]
+        - maskUrls图片未转存,有效期仅1h
+    - 步骤2.2:前端选择主体
+        - 前端根据 maskUrls 图片,展示主体检测结果,用户可选择其中一个主体。
+        - 在步骤3的 mask_url 参数中,传入用户选择的主体对应的mask图url。
+    - 步骤3:提交视频生成任务
+        - 调用 getOmniHuman 接口
+    - 步骤3.1:获取视频生成结果
+        - 调用 getOhDateByTask 接口, routerName = 'getOmniHuman' ,轮询查询任务状态,直到任务完成。
+    - 步骤4:获取视频生成结果
+        - 查询 ImagineWork 表, objectId 为步骤1的 workId 
+            - videos: < array< string > > 视频URL列表
+                - 示例:["https://example.com/video1.mp4", "https://example.com/video2.mp4"]
+                - videos里面的url已转存,永久有效
+## 接口介绍
+### /volcengine/jimeng/getImgV4 图片生成4.0
+- 简介
+    图片生成4.0:即梦4.0是即梦同源的图像生成能力,该能力在统一框架内集成了文生图、图像编辑及多图组合生成的功能:支持单次输入最多 10 张图像及进行复合编辑,并能通过对提示词的深度推理,自动适配最优的图像比例尺寸与生成数量,可一次性输出最多 15 张内容关联的图像。此外,模型显著提升了中文生成的准确率与内容多样性,且支持 4K 超高清输出,为专业图像创作提供了从生成到编辑的一站式解决方案。
+- 费用
+    图片生成v4   0.22元/张  https://www.volcengine.com/docs/85621/1544714
+
+### /volcengine/jimeng/getText2ImgV3 即梦文生图3.0
+- 简介
+    即梦文生图3.0:文生图3.0是即梦同源的文生图能力,在文字响应准确度、图文排版、层次美感和语义理解能力上相较之前版本均有显著提升,人像质感更逼真,且支持输出高清大图。此外,在文字响应更精准的基础下,还支持响应大小字、各类艺术字体和不同字重。
+- 费用
+    即梦文生图3.0 每次调用费用为0.2元
+
+### /volcengine/jimeng/getText2ImgV31 即梦文生图3.1
+- 简介
+    即梦文生图3.1:文生图3.1是与即梦同源的文生图能力,该版本重点实现画面效果呈现升级,在画面美感塑造、风格精准多样及画面细节丰富度方面提升显著,同时兼具文字响应效果。
+- 费用
+    即梦文生图3.1 每次调用费用为0.2元
+
+### /volcengine/jimeng/getImg2ImgV3 即梦图生图3.0智能参考
+- 简介
+    即梦图生图3.0智能参考:图生图3.0智能参考是即梦同源的图生图能力,支持基于文本指令进行图像编辑。该能力在精准执行编辑指令和保持图像内容完整性(如人物特征及精细细节)方面实现显著提升,尤其在处理真实图像和海报图文设计场景表现卓越。推荐在海报等设计等场景中,在文本指令中加入「海报」「平面设计」等词,并用引号标出期望文字时,可显著提升文字响应效果,产出高质量编辑结果,有效满足用户改图需求。
+- 费用
+    即梦即梦图生图v3.0  每次调用费用为0.2元
+
+### /volcengine/jimeng/getImgV4_pod 图片生成4.0-素材提取(POD按需定制)
+- 简介
+    图片生成4.0-素材提取(POD按需定制):通过智能图案提取技术,从实物商品中精准提取并矢量化核心图案,生成平面设计图,提升电商领域中商品打版和产品设计等场景的制作效率。
+- 费用
+    图片生成v4 POD素材提取 0.22元/张 https://www.volcengine.com/docs/85621/1544714
+
+### /volcengine/jimeng/getImgV4_goods 图片生成4.0-商品提取
+- 简介
+    图片生成4.0-商品提取:采用智能视觉技术,提取商品主体并智能匹配最佳展示视角,一键生成专业商品展示图。现已支持服装、鞋包、饰品、家具、日用品几大核心品类,助力高效产出高品质商品视觉素材,有效提升视觉吸引力与转化效率。
+- 费用
+    图片生成v4 商品提取 0.22元/张 https://www.volcengine.com/docs/85621/1544714
+
+### /volcengine/jimeng/getInpaint 交互编辑(局部重绘/消除笔)
+- 简介
+    交互编辑(局部重绘/消除笔):
+    即梦「局部重绘」「消除笔」同款图像编辑功能:用户可通过涂抹、选区等方式建立重绘区域,将相应mask图及文本prompt传入模型,即可重新编辑生成图片。
+    本能力支持涂抹消除,和涂抹编辑场景,在消除的场景,输入prompt文本为删除即可;在涂抹编辑场景,可以用自然语言描述预期生成的内容,涉及文字内容的修改建议讲修改后的文字放在“”双引号内,会提升准确率
+- 费用
+    交互编辑  每次调用费用为0.2元 https://www.volcengine.com/docs/86081/1660170
+
+### /volcengine/jimeng/getSuperResolution 智能超清
+- 简介
+    智能超清:即梦「智能超清」同款图像编辑功能:基于seedream基模,针对AIGC生成类场景和低质量图像,尝试在保证【全局结构、语义一致性】的前提下,适当放开一致性,允许生成更多的细节内容,全面提升画面质感,当前支持将图像超清到4K/8K。
+- 费用
+    智能超清  每次调用费用为0.4元 https://www.volcengine.com/docs/86081/1660170
+
+### /volcengine/jimeng/getVideoV3_720p 视频生成3.0(720p)
+- 简介
+    视频生成3.0(720p):
+    即梦视频3.0 —— 即梦同源的文生视频能力,专业级视频生成引擎,释放无限创意。准确遵循复杂指令,视觉表达流畅一致,可驾驭多元艺术风格,在视频生成质量出色的基础上,是生成效果与速度兼备的高性价比之选。
+    即梦视频3.0 720P支持:
+    文生视频:输入文本提示词,生成视频
+    图生视频 - 首帧:输入首帧图片和文本提示词,生成视频
+    图生视频 - 首尾帧:输入首帧图片、尾帧图片和文本提示词,生成视频
+    图生视频 - 运镜:输入首帧图片和文本提示词,调节运镜类型和幅度参数,生成运镜视频
+- 费用
+    0.28 元/秒
+
+### /volcengine/jimeng/getVideoV3_1080p 视频生成3.0(1080p)
+- 简介
+    视频生成3.0(1080p):
+    即梦视频3.0 —— 即梦同源的文生视频能力,专业级视频生成引擎,释放无限创意。准确遵循复杂指令,视觉表达流畅一致,支持最高1080P高清渲染,更可驾驭多元艺术风格,在视频生成质量出色的基础上,是生成效果与速度兼备的高性价比之选。
+    即梦视频3.0 1080P支持:
+    文生视频:输入文本提示词,生成视频
+    图生视频 - 首帧:输入首帧图片和文本提示词,生成视频
+    图生视频 - 首尾帧:输入首帧图片、尾帧图片和文本提示词,生成视频
+- 费用
+    0.63 元/秒 https://www.volcengine.com/docs/85621/1544715?lang=zh
+
+### /volcengine/jimeng/getVideoV3_Pro 即梦视频生成3.0Pro
+- 简介
+    即梦视频生成3.0Pro:
+    即梦视频3.0Pro —— 即梦同源的文生视频与图生视频能力,在视频生成效果上实现飞跃,各维度均表现优异。该版本具备多镜头叙事能力,能更精准遵循指令,动态表现流畅自然,支持生成1080P高清且具专业级质感的视频,还可实现更丰富多元的风格化表达。
+    即梦视频3.0Pro支持功能含:
+    文生视频:输入文本提示词,生成视频;
+    图生视频-首帧:输入首帧图片和对应的文本提示词,生成视频。
+- 费用
+    即梦视频生成3.0Pro  1 元/秒
+
+### /volcengine/jimeng/getActor 动作模仿
+- 简介
+    动作模仿:
+    动作模仿 —— 即梦同源的视频动作模仿(生动模式),输入一张图片和一段模版视频,可以将图片中的人物按照模版视频的动作/表情/口型驱动起来,主体及背景特征与输入图片保持一致。
+    相较于前一代模型,它具有更稳定、更逼真的效果,突破竖屏画幅限制,各种画幅、比例视频均能高度还原,支持多种风格角色,具备一定的运镜还原能力。
+- 费用
+    动作模仿1.0 0.5元/秒 https://www.volcengine.com/docs/85621/1544715?lang=zh
+
+### /volcengine/jimeng/getActorV2 动作模仿2.0
+- 简介
+    动作模仿2.0:
+    动作模仿2.0 —— 新一代视频动作模仿大模型,输入一张图片和一段模版视频,可以将图片中的人物按照模版视频的动作/表情/口型驱动起来,主体及背景特征与输入图片保持一致。
+    相较于前一代模型,2.0支持了多人驱动,能够更好地保持图片画幅、原始姿态、特征等信息,具有更好的视觉表现,同时2.0也首次支持了非真人驱动视频。整体效果更好,适用场景更多。
+- 费用
+    动作模仿2.0  0.4元/秒 https://www.volcengine.com/docs/85621/2205633?lang=zh
+
+### /volcengine/jimeng/getOhIdentifyMain 数字人v1.5 步骤1:主体识别
+- 简介
+    数字人v1.5 步骤1:主体识别:用于识别图片中是否包含人、类人、拟人等主体。
+
+### /volcengine/jimeng/getOhDetectMain 数字人v1.5 步骤2:主体检测
+- 简介
+    数字人v1.5 步骤2:主体检测:检测图片中的主体,并支持返回主体对应的mask图。如果在视频生成时不需要指定主体说话,可以跳过该步骤。
+
+### /volcengine/jimeng/getOmniHuman 数字人v1.5 步骤3:视频生成
+- 简介
+    数字人v1.5 步骤3:视频生成:
+    OmniHuman1.5(即梦同源数字人模型),该模型可根据用户上传的单张图片+音频,生成与图片对应的视频效果。支持输入任意画幅包含人物或其他主体(宠物、动漫等)的图片,结合音频,生成高质量的视频。人物的情绪、动作与音频具有强关联性,支持通过提示词(prompt)对画面、动作、运镜进行调整。同时OmniHuman1.5对动漫、宠物等形象支持较好,允许指定讲话人/主体,可广泛应用于内容表达、唱歌和表演等场景。相较于上一代模型,OmniHuman1.5 在运动自然度和结构稳定性提升明显,在人物/主体的运动表现力和画面质量上更优。可以广泛应用于制作剧情对话、多人对话/对唱、商品交互、漫剧等内容。对比其他视频通用模型,OmniHuman 数字人大模型在人物/主体的剧情演绎效果上极具优势。
+- 费用
+    数字人v1.5  1元/秒  https://www.volcengine.com/docs/85621/1834143?lang=zh

+ 735 - 0
docs/即梦/testImg.js

@@ -0,0 +1,735 @@
+/**
+ * 测试获取数据接口
+ * @param {*} workId 
+ * @param {*} routerName 
+ */
+async function testgetDataByTask(workId, routerName) {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getDataByTask02'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                workId,
+                routerName,
+                // logo_info: {
+                //     "add_logo": true,    // 是否添加水印
+                //     "position": 1,        // 水印位置(0-3)
+                //     "language": 0,        // 水印语言(0中文/1英文)
+                //     "opacity": 0.5,       // 不透明度(0-1)
+                //     "logo_text_content": '非常好看的水印'  // 自定义水印文本
+                // },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+// testgetImgV4()
+// testgetDataByTask('u1XrdyaG2f', 'getClothesV2')
+
+
+
+/**测试图片生成v4接口 */
+async function testgetImgV4() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getImgV4'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                image_urls: [
+                    // 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg',//模特
+                    // 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20251010/110201038.png',//衣服
+                    // 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250718/042053608.jpg',//裤子
+                    // 'https://img95.699pic.com/photo/60070/7188.jpg_wh860.jpg',//鞋子
+                    // 'https://img95.699pic.com/photo/60046/9255.jpg_wh860.jpg',//刺绣
+                ],
+                prompt: '帮我生成一个涵盖友情、独特、文化底蕴、科技的可爱日漫风但人物为中国人的图片',
+                sizeDate: {
+                    width: 2048,
+                    height: 2048,
+                },
+                scale: 0.6,
+                force_single: false,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+// testgetText2ImgV3()
+// testgetDataByTask('fCF1wWWAvd', 'getText2ImgV3')
+/**测试文生图v3.0接口 */
+async function testgetText2ImgV3() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getText2ImgV3'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '芙蓉面美如远山秀,杏仁眼灵性儿透。',
+                use_pre_llm: true,
+                sizeDate: {
+                    width: 599,
+                    height: 1328,
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+// testgetText2ImgV31()
+// testgetDataByTask('F7Jg20O8kT', 'getText2ImgV31')
+/**测试文生图v3.1接口 */
+async function testgetText2ImgV31() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getText2ImgV31'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '淡蓝紫的冷清感,一束小雏菊,右下角展示一串小的艺术字”手捧一束小雏菊赠与你,那是藏于内心的光芒。“',
+                use_pre_llm: true,
+                sizeDate: {
+                    width: 599,
+                    height: 1328,
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+// testgetImg2ImgV3()
+// testgetDataByTask('o4BVp8Jkis', 'getImg2ImgV3')
+/**测试图生图v3.0接口 */
+async function testgetImg2ImgV3() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getImg2ImgV3'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                image_url: 'https://portal.volccdn.com/obj/volcfe/cloud-universal-doc/upload_cb41187994a982411145b758a9bf3241.png',
+                prompt: '背景换成秋天落叶',
+                scale: 0.5,
+                sizeDate: {
+                    width: 1328,
+                    height: 1328,
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+
+
+
+
+
+
+
+
+// testgetVideoV3_Pro()
+// testgetDataByTask('UHY260ah4C', 'getVideoV3_Pro')
+async function testgetVideoV3_Pro() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_Pro'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '两个q版小女孩笑着面向镜头慢慢地跑',
+                frames: 121,
+                image_url: 'https://portal.volccdn.com/obj/volcfe/cloud-universal-doc/upload_cb41187994a982411145b758a9bf3241.png',
+                aspect_ratio: 5,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+
+// testgetImgV4_pod()
+// testgetDataByTask('hzTkHHsCjo', 'getImgV4_pod')
+/**测试图片生成4.0-素材提取(POD按需定制)接口 */
+async function testgetImgV4_pod() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getImgV4_pod'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                image_url:'https://img95.699pic.com/photo/60046/9255.jpg_wh860.jpg',//刺绣
+                instruction: 1,
+                prompt: '改成淡紫色的花朵,深绿色的枝叶',
+                sizeDate: {
+                    width: 2048,
+                    height: 2048,
+                },
+                lora_weight:0.5,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+// testgetImgV4_goods()
+// testgetDataByTask('LwoFZ892Ut', 'getImgV4_goods')
+/**测试图片生成4.0-素材提取(POD按需定制)接口 */
+async function testgetImgV4_goods() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getImgV4_goods'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                image_url:'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20260312/040725626.jpg',//模特
+                instruction: 1,
+                sizeDate: {
+                    width: 2560,
+                    height: 1440,
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+// testgetInpaint()
+// testgetDataByTask('gsMphbw7Gd', 'getInpaint')
+/**测试交互编辑接口 */
+async function testgetInpaint() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getInpaint'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                image_urls: [
+                    'https://portal.volccdn.com/obj/volcfe/cloud-universal-doc/upload_cb41187994a982411145b758a9bf3241.png',
+                    'https://portal.volccdn.com/obj/volcfe/cloud-universal-doc/upload_f8f192dc0a831c6ccc3a342fb43d0c97.png'
+                ],
+                prompt: '将小女孩换成《白蛇传》里面的人形青白蛇姐妹',
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+// testgetSuperResolution()
+// testgetDataByTask('EdXi31Dvro', 'getSuperResolution')
+/**测试智能超清接口 */
+async function testgetSuperResolution() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getSuperResolution'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                image_urls: [
+                    'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg'
+                ],
+                resolution: '4k',
+                scale: 100,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+
+// 测试换装v2接口
+function testgetClothesV2() {
+    const body = {
+        model: 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250723/023647101.jpg', // 模特图URL
+        upper: 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250723/054650783.png', // 上装图URL
+        bottom: 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250718/042053608.jpg', // 下装图URL
+        inference_config: {
+            do_sr: false,
+            seed: -1,
+            keep_head: true,
+            keep_hand: false,
+            keep_foot: false,
+            num_steps: 16,
+            keep_upper: false,
+            keep_lower: false,
+            tight_mask: "loose",
+            p_bbox_iou_ratio: 0.3,
+            p_bbox_expand_ratio: 1.1,
+            max_process_side_length: 1920
+        },
+        token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+    };
+
+    fetch('https://server.fmode.cn/api/volcengine/jimeng/getClothesV2', {
+        method: 'POST',
+        headers: {
+            'Content-Type': 'application/json'
+        },
+        body: JSON.stringify(body)
+    })
+        .then(response => response.json())
+        .then(data => {
+            console.log('换装v2接口响应:', data);
+        })
+        .catch(error => {
+            console.error('换装v2接口错误:', error);
+        });
+}
+
+// testgetClothesV2()
+
+
+
+//测试视频生成v3 720p接口
+async function testgetVideoV3_720p_method1() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_720p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '一只小猫在草地上奔跑',
+                frames: 121,
+                method: '1',
+                config: {
+                    aspect_ratio: '16:9',
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', JSON.stringify(data))
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+// testgetDataByTask('CFiUzNn6Yv', 'getClothesV2')
+
+// testgetVideoV3_720p_method1()
+// testgetVideoV3_720p_method2()
+// testgetVideoV3_720p_method3()
+// testgetVideoV3_720p_method4()
+async function testgetVideoV3_720p_method2() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_720p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '根据首帧延展生成视频',
+                frames: 121,
+                method: '2',
+                config: {
+                    image_urls: ['https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg'],
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+async function testgetVideoV3_720p_method3() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_720p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '根据首尾帧生成视频',
+                frames: 121,
+                method: '3',
+                config: {
+                    image_urls: [
+                        'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg',
+                        'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20251010/110201038.png'
+                    ],
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', JSON.stringify(data))
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+async function testgetVideoV3_720p_method4() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_720p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '根据首帧生成运镜视频',
+                frames: 121,
+                method: '4',
+                config: {
+                    image_urls: ['https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg'],
+                    template_id: 'quick_pull_back',
+                    camera_strength: 'medium',
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', JSON.stringify(data))
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+// testgetDataByTask('3ZLpNkBudx', 'getVideoV3_1080p')
+// testgetVideoV3_1080p_method1()
+// testgetVideoV3_1080p_method2()
+// testgetVideoV3_1080p_method3()
+async function testgetVideoV3_1080p_method1() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_1080p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '表达友情、信任、尊重、合作,一种二次元+可爱风格',
+                frames: 121,
+                method: '1',
+                config: {
+                    aspect_ratio: '16:9'
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', JSON.stringify(data))
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+// testgetVideoV3_1080p_method2()
+testgetDataByTask('W30Axg9ujJ', 'getVideoV3_1080p')
+
+async function testgetVideoV3_1080p_method2() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_1080p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '根据首帧延展生成视频',
+                frames: 121,
+                method: '2',
+                config: {
+                    image_urls: ['https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg']
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', JSON.stringify(data))
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+async function testgetVideoV3_1080p_method3() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_1080p'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                prompt: '根据首尾帧生成视频',
+                frames: 121,
+                method: '3',
+                config: {
+                    image_urls: [
+                        'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg',
+                        'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20251010/110201038.png'
+                    ]
+                },
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', JSON.stringify(data))
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+// testgetDataByTask('mC56nNhM4o', 'getActor')
+// testgetActor()
+
+/**测试动作模仿接口 */
+async function testgetActor() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getActor'
+    try {
+        let a = await fetch(url, {
+            "headers": {
+                "Content-Type": "application/json",
+            },
+            "method": 'POST',
+            "mode": "cors",
+            "referrer": "http://localhost:4200/",
+            body: JSON.stringify({
+                video_url: 'https://file-cloud.fmode.cn/storage/company/UEoqWqwz8f/20251121/023425380.mp4',
+                image_url: 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg',
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+
+
+
+
+
+
+
+// testgetActorV2()
+// testgetDataByTask('6QMQVuYMYN', 'getActorV2')
+/**测试动作模仿v2.0 */
+async function testgetActorV2() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getActorV2'
+    try {
+        let a = await fetch(url, {
+            headers: { 'Content-Type': 'application/json' },
+            method: 'POST',
+            mode: 'cors',
+            referrer: 'http://localhost:4200/',
+            body: JSON.stringify({
+                image_url: 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250829/050458620.jpg',
+                video_url: 'https://file-cloud.fmode.cn/storage/company/UEoqWqwz8f/20251121/023425380.mp4',
+                cut_result_first_second_switch: false,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+
+
+// testGetOhIdentifyMain()//qH58sm1wMr
+// testGetOhDateByTask('qH58sm1wMr','getOhIdentifyMain')
+// testGetOhDetectMain('qH58sm1wMr')
+// testGetOmniHuman('qH58sm1wMr')
+// testGetOhDateByTask('qH58sm1wMr','getOmniHuman')
+//测试数字人接口
+async function testGetOhIdentifyMain() {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getOhIdentifyMain'
+    try {
+        let a = await fetch(url, {
+            headers: { 'Content-Type': 'application/json' },
+            method: 'POST',
+            mode: 'cors',
+            referrer: 'http://localhost:4200/',
+            body: JSON.stringify({
+                image_url: 'https://file-cloud.fmode.cn/storage/company/sV8QE3WJUS/20250723/030012209.jpg',
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+async function testGetOhDetectMain(workId) {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getOhDetectMain'
+    try {
+        let a = await fetch(url, {
+            headers: { 'Content-Type': 'application/json' },
+            method: 'POST',
+            mode: 'cors',
+            referrer: 'http://localhost:4200/',
+            body: JSON.stringify({
+                workId,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+async function testGetOmniHuman(workId) {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getOmniHuman'
+    try {
+        let a = await fetch(url, {
+            headers: { 'Content-Type': 'application/json' },
+            method: 'POST',
+            mode: 'cors',
+            referrer: 'http://localhost:4200/',
+            body: JSON.stringify({
+                workId,
+                audio_url: 'https://file-cloud.fmode.cn/storage/company/UEoqWqwz8f/20251126/103708457.mp3',
+                prompt: '数字人朗读测试',
+                pe_fast_mode: false,
+                mask_url:[],
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}
+
+async function testGetOhDateByTask(workId, routerName, logo_info) {
+    let url = 'https://server.fmode.cn/api/volcengine/jimeng/getOhDateByTask'
+    try {
+        let a = await fetch(url, {
+            headers: { 'Content-Type': 'application/json' },
+            method: 'POST',
+            mode: 'cors',
+            referrer: 'http://localhost:4200/',
+            body: JSON.stringify({
+                workId,
+                routerName,
+                logo_info,
+                token: `Bearer r:f0333969e312a40e4703e8fe4ed1c600`
+            })
+        })
+        let data = await a.json()
+        console.log('运行成功', data)
+    } catch (error) {
+        console.log('运行失败', error)
+    }
+}

+ 36 - 0
jimeng/jimeng-actor-v2/SKILL.md

@@ -0,0 +1,36 @@
+---
+name: jimeng-actor-v2
+description: 动作模仿2.0,新一代视频动作模仿大模型,支持多人驱动和非真人驱动视频,更好保持图片画幅、原始姿态、特征等信息。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-actor-v2
+
+## 功能用途
+
+动作模仿2.0,新一代视频动作模仿大模型,效果更好,适用场景更多。
+
+**核心业务场景:**
+- 多人驱动(2.0新增)
+- 非真人驱动视频(2.0新增,支持动漫等角色)
+- 更好地保持图片画幅、原始姿态、特征信息
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_url | string | ✅ | 图片URL |
+| video_url | string | ✅ | 模版视频URL |
+| cut_result_first_second_switch | boolean | ❌ | 是否裁剪结果视频第1秒,默认true |
+| callback_url | string | ❌ | 回调接口URL |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getActorV2`
+
+## 费用
+
+动作模仿2.0: **0.4元/秒**

+ 177 - 0
jimeng/jimeng-actor-v2/api-config.json

@@ -0,0 +1,177 @@
+{
+  "name": "jimeng-actor-v2",
+  "displayName": "动作模仿2.0",
+  "description": "新一代视频动作模仿大模型,支持多人驱动和非真人驱动视频。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getActorV2",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_url",
+      "video_url",
+      "token"
+    ],
+    "properties": {
+      "image_url": {
+        "type": "string",
+        "description": "图片URL"
+      },
+      "video_url": {
+        "type": "string",
+        "description": "模版视频URL"
+      },
+      "cut_result_first_second_switch": {
+        "type": "boolean",
+        "description": "是否裁剪结果视频第1秒,默认true",
+        "default": true
+      },
+      "callback_url": {
+        "type": "string",
+        "description": "回调接口URL"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "人物动作模仿v2",
+      "input": {
+        "image_url": "https://example.com/person.jpg",
+        "video_url": "https://example.com/dance.mp4",
+        "cut_result_first_second_switch": false,
+        "token": "Bearer r:xxx"
+      },
+      "description": "使用2.0模型驱动图片人物按视频动作运动"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-actor"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 0.4,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/2205633"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 34 - 0
jimeng/jimeng-actor/SKILL.md

@@ -0,0 +1,34 @@
+---
+name: jimeng-actor
+description: 动作模仿1.0,输入一张图片和一段模版视频,将图片中的人物按照视频的动作/表情/口型驱动起来。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-actor
+
+## 功能用途
+
+即梦动作模仿(生动模式),主体及背景特征与输入图片保持一致。
+
+**核心业务场景:**
+- 人物动作/表情/口型驱动
+- 各种画幅、比例视频均能高度还原
+- 支持多种风格角色,具备运镜还原能力
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| video_url | string | ✅ | 模版视频URL |
+| image_url | string | ✅ | 图片URL |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getActor`
+
+## 费用
+
+动作模仿1.0: **0.5元/秒**

+ 167 - 0
jimeng/jimeng-actor/api-config.json

@@ -0,0 +1,167 @@
+{
+  "name": "jimeng-actor",
+  "displayName": "动作模仿1.0",
+  "description": "输入一张图片和一段模版视频,将图片中的人物按照视频的动作/表情/口型驱动起来。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getActor",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "video_url",
+      "image_url",
+      "token"
+    ],
+    "properties": {
+      "video_url": {
+        "type": "string",
+        "description": "模版视频URL"
+      },
+      "image_url": {
+        "type": "string",
+        "description": "图片URL"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "人物动作模仿",
+      "input": {
+        "video_url": "https://example.com/dance.mp4",
+        "image_url": "https://example.com/person.jpg",
+        "token": "Bearer r:xxx"
+      },
+      "description": "让图片中的人物按照视频模版动作运动起来"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-actor-v2"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 0.5,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1544715"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 44 - 0
jimeng/jimeng-clothes-v2/SKILL.md

@@ -0,0 +1,44 @@
+---
+name: jimeng-clothes-v2
+description: 图片换装V2,输入模特图和上装/下装图URL,智能完成虚拟换装,支持多项推理配置参数。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-clothes-v2
+
+## 功能用途
+
+虚拟换装,将指定服装穿在模特图上。
+
+**核心业务场景:**
+- 电商模特换装(上装/下装独立或组合换装)
+- 服装展示图批量生成
+- 支持保持头/手/足等细节控制
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| model | string | ✅ | 模特图URL |
+| upper | string | ❌ | 上装图URL(与bottom至少提供一个) |
+| bottom | string | ❌ | 下装图URL(与upper至少提供一个) |
+| inference_config | object | ❌ | 推理配置参数 |
+| inference_config.do_sr | boolean | ❌ | 是否超分处理,默认false |
+| inference_config.seed | number | ❌ | 随机种子,默认-1 |
+| inference_config.keep_head | boolean | ❌ | 保持原图头部,默认true |
+| inference_config.keep_hand | boolean | ❌ | 保持原图手部,默认false |
+| inference_config.keep_foot | boolean | ❌ | 保持原图足部,默认false |
+| inference_config.num_steps | number | ❌ | 推理步数,默认16,范围[8,50] |
+| inference_config.keep_upper | boolean | ❌ | 保持原图上装,默认false |
+| inference_config.keep_lower | boolean | ❌ | 保持原图下装,默认false |
+| inference_config.tight_mask | string | ❌ | 遮挡范围,默认"loose",支持tight/loose/bbox |
+| inference_config.p_bbox_iou_ratio | number | ❌ | 多人时bbox相交比例,默认0.3 |
+| inference_config.p_bbox_expand_ratio | number | ❌ | bbox扩大比例,默认1.1 |
+| inference_config.max_process_side_length | number | ❌ | 最大边长,默认1920 |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getClothesV2`

+ 229 - 0
jimeng/jimeng-clothes-v2/api-config.json

@@ -0,0 +1,229 @@
+{
+  "name": "jimeng-clothes-v2",
+  "displayName": "图片换装V2",
+  "description": "输入模特图和上装/下装图URL,智能完成虚拟换装。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getClothesV2",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "model",
+      "token"
+    ],
+    "properties": {
+      "model": {
+        "type": "string",
+        "description": "模特图URL"
+      },
+      "upper": {
+        "type": "string",
+        "description": "上装图URL(与bottom至少提供一个)"
+      },
+      "bottom": {
+        "type": "string",
+        "description": "下装图URL(与upper至少提供一个)"
+      },
+      "inference_config": {
+        "type": "object",
+        "description": "推理配置参数",
+        "properties": {
+          "do_sr": {
+            "type": "boolean",
+            "default": false
+          },
+          "seed": {
+            "type": "number",
+            "default": -1
+          },
+          "keep_head": {
+            "type": "boolean",
+            "default": true
+          },
+          "keep_hand": {
+            "type": "boolean",
+            "default": false
+          },
+          "keep_foot": {
+            "type": "boolean",
+            "default": false
+          },
+          "num_steps": {
+            "type": "number",
+            "default": 16
+          },
+          "keep_upper": {
+            "type": "boolean",
+            "default": false
+          },
+          "keep_lower": {
+            "type": "boolean",
+            "default": false
+          },
+          "tight_mask": {
+            "type": "string",
+            "default": "loose",
+            "enum": [
+              "tight",
+              "loose",
+              "bbox"
+            ]
+          },
+          "p_bbox_iou_ratio": {
+            "type": "number",
+            "default": 0.3
+          },
+          "p_bbox_expand_ratio": {
+            "type": "number",
+            "default": 1.1
+          },
+          "max_process_side_length": {
+            "type": "number",
+            "default": 1920
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "模特换上装+下装",
+      "input": {
+        "model": "https://example.com/model.jpg",
+        "upper": "https://example.com/shirt.png",
+        "bottom": "https://example.com/pants.jpg",
+        "inference_config": {
+          "keep_head": true,
+          "num_steps": 16,
+          "tight_mask": "loose"
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "为模特换上新的上装和下装"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-img-v4-goods"
+  ],
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 36 - 0
jimeng/jimeng-img-v4-goods/SKILL.md

@@ -0,0 +1,36 @@
+---
+name: jimeng-img-v4-goods
+description: 图片生成4.0-商品提取,智能提取商品主体并匹配最佳展示视角,支持服装、鞋包、饰品、家具、日用品核心品类。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-img-v4-goods
+
+## 功能用途
+
+智能提取商品主体并匹配最佳展示视角,一键生成专业商品展示图。
+
+**核心业务场景:**
+- 提取全身衣服生成平铺图
+- 提取鞋子/包包/饰品生成白底正视图
+- 电商商品主图制作
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_url | string | ✅ | 图片文件URL |
+| instruction | number | ❌ | 编辑指令,默认1。1:全身衣服 2:鞋子 3:包包 4:沙发 5:日用品 6:饰品 |
+| sizeDate | object | ❌ | 图片尺寸,默认2048×2048 |
+| prompt | string | ❌ | 提示词 |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getImgV4_goods`
+
+## 费用
+
+图片生成v4 商品提取: **0.22元/张**

+ 195 - 0
jimeng/jimeng-img-v4-goods/api-config.json

@@ -0,0 +1,195 @@
+{
+  "name": "jimeng-img-v4-goods",
+  "displayName": "图片生成4.0-商品提取",
+  "description": "智能提取商品主体并匹配最佳展示视角,支持服装、鞋包、饰品、家具、日用品。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getImgV4_goods",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_url",
+      "token"
+    ],
+    "properties": {
+      "image_url": {
+        "type": "string",
+        "description": "图片文件URL"
+      },
+      "instruction": {
+        "type": "integer",
+        "description": "编辑指令: 1全身衣服 2鞋子 3包包 4沙发 5日用品 6饰品",
+        "default": 1,
+        "enum": [
+          1,
+          2,
+          3,
+          4,
+          5,
+          6
+        ]
+      },
+      "sizeDate": {
+        "type": "object",
+        "properties": {
+          "width": {
+            "type": "integer"
+          },
+          "height": {
+            "type": "integer"
+          }
+        }
+      },
+      "prompt": {
+        "type": "string",
+        "description": "提示词"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "提取模特全身衣服",
+      "input": {
+        "image_url": "https://example.com/model.jpg",
+        "instruction": 1,
+        "sizeDate": {
+          "width": 2560,
+          "height": 1440
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "从模特照片提取全身衣服生成白底平铺图"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-img-v4-pod",
+    "jimeng-clothes-v2"
+  ],
+  "pricing": {
+    "unit": "张",
+    "price": 0.22,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1544714"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 37 - 0
jimeng/jimeng-img-v4-pod/SKILL.md

@@ -0,0 +1,37 @@
+---
+name: jimeng-img-v4-pod
+description: 图片生成4.0-素材提取(POD按需定制),从实物商品中精准提取并矢量化核心图案,生成平面设计图。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-img-v4-pod
+
+## 功能用途
+
+从实物商品中智能提取图案/包装/logo/纹理,生成平面设计图。
+
+**核心业务场景:**
+- 提取产品图案生成平面图
+- 提取包装图案/logo/纹理
+- 电商POD按需定制场景
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_url | string | ✅ | 图片文件URL |
+| instruction | number | ❌ | 编辑指令,默认1。1:提取图案 2:提取包装 3:提取logo 4:提取纹理 |
+| prompt | string | ❌ | 提示词 |
+| lora_weight | number | ❌ | lora权重,范围[0,1],默认1.0 |
+| sizeDate | object | ❌ | 图片尺寸,默认2048×2048 |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getImgV4_pod`
+
+## 费用
+
+图片生成v4 POD素材提取: **0.22元/张**

+ 199 - 0
jimeng/jimeng-img-v4-pod/api-config.json

@@ -0,0 +1,199 @@
+{
+  "name": "jimeng-img-v4-pod",
+  "displayName": "图片生成4.0-素材提取(POD)",
+  "description": "从实物商品中精准提取并矢量化核心图案,生成平面设计图,适用于电商POD场景。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getImgV4_pod",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_url",
+      "token"
+    ],
+    "properties": {
+      "image_url": {
+        "type": "string",
+        "description": "图片文件URL"
+      },
+      "instruction": {
+        "type": "integer",
+        "description": "编辑指令: 1提取图案 2提取包装 3提取logo 4提取纹理",
+        "default": 1,
+        "enum": [
+          1,
+          2,
+          3,
+          4
+        ]
+      },
+      "prompt": {
+        "type": "string",
+        "description": "提示词"
+      },
+      "lora_weight": {
+        "type": "number",
+        "description": "lora权重,范围[0,1],默认1.0",
+        "default": 1
+      },
+      "sizeDate": {
+        "type": "object",
+        "properties": {
+          "width": {
+            "type": "integer"
+          },
+          "height": {
+            "type": "integer"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "提取刺绣图案并调色",
+      "input": {
+        "image_url": "https://example.com/embroidery.jpg",
+        "instruction": 1,
+        "prompt": "改成淡紫色的花朵,深绿色的枝叶",
+        "lora_weight": 0.5,
+        "sizeDate": {
+          "width": 2048,
+          "height": 2048
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "从刺绣图片提取图案并修改颜色"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-img-v4-goods"
+  ],
+  "pricing": {
+    "unit": "张",
+    "price": 0.22,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1544714"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 81 - 0
jimeng/jimeng-img-v4/SKILL.md

@@ -0,0 +1,81 @@
+---
+name: jimeng-img-v4
+description: 即梦图片生成4.0,支持文生图、图像编辑及多图组合生成,单次输入最多10张图像,支持4K超高清输出,一次性输出最多15张内容关联图像。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-img-v4
+
+## 功能用途
+
+即梦4.0图片生成,统一框架集成文生图、图像编辑及多图组合生成功能。
+
+**核心业务场景:**
+- 根据提示词文生图(支持中文提示词,准确率高)
+- 多图组合编辑(最多10张输入图 → 最多15张输出图)
+- 4K超高清图像输出(1K~4K分辨率)
+
+## 调用链(Workflow)
+
+```
+本步: jimeng-img-v4(prompt, image_urls?) → 提交生成任务,获取 workId
+下游: jimeng-task-query(workId, routerName='getImgV4') → 轮询任务状态
+下游: 查询 ImagineWork 表(objectId=workId) → 获取 images 字段(永久URL)
+```
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| prompt | string | ✅ | 提示词 |
+| image_urls | string[] | ❌ | 图片文件URL,支持0至10张 |
+| sizeDate | object | ❌ | 图片尺寸数据(不传则使用默认2048×2048) |
+| sizeDate.width | number | ❌ | 图片宽 |
+| sizeDate.height | number | ❌ | 图片高 |
+| scale | float | ❌ | 文本影响程度,范围[0,1],默认0.5 |
+| force_single | boolean | ❌ | 是否强制生成单图,默认false |
+| token | string | ✅ | 认证token,格式: `Bearer r:xxxxxxxx` |
+
+**推荐尺寸搭配:**
+- 1K: 1024×1024
+- 2K: 2048×2048、2304×1728(4:3)、2496×1664(3:2)、2560×1440(16:9)
+- 4K: 4096×4096、4992×3328(3:2)、5404×3040(16:9)
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getImgV4`
+
+```json
+{
+  "prompt": "帮我生成一个可爱日漫风格的图片",
+  "image_urls": [],
+  "sizeDate": { "width": 2048, "height": 2048 },
+  "scale": 0.6,
+  "force_single": false,
+  "token": "Bearer r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+}
+```
+
+## 关键响应字段
+
+| 字段 | 业务用途 |
+|------|---------|
+| code | 200 表示成功 |
+| data.workId | 任务ID → **传入 jimeng-task-query 轮询结果** |
+
+## 获取结果
+
+提交任务后需调用 `getDataByTask02` 接口轮询,workId 对应 ImagineWork 表记录:
+- `images`: 图片URL列表(已转存,永久有效)
+
+## 费用
+
+图片生成v4: **0.22元/张**
+
+## 依赖要求
+
+- 接口地址: `https://server.fmode.cn/api/volcengine/jimeng/getImgV4`
+- 需携带 token 参数(body 内传递)
+- 宽高乘积范围: [1024×1024, 4096×4096]

+ 234 - 0
jimeng/jimeng-img-v4/api-config.json

@@ -0,0 +1,234 @@
+{
+  "name": "jimeng-img-v4",
+  "displayName": "即梦图片生成4.0",
+  "description": "即梦4.0图片生成,支持文生图、图像编辑及多图组合生成,单次输入最多10张图像,支持4K超高清输出,一次性输出最多15张内容关联图像。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getImgV4",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "prompt",
+      "token"
+    ],
+    "properties": {
+      "prompt": {
+        "type": "string",
+        "description": "提示词,支持中文,描述期望生成的图像内容"
+      },
+      "image_urls": {
+        "type": "array",
+        "items": {
+          "type": "string"
+        },
+        "description": "图片文件URL列表,支持0至10张图,用于多图组合编辑",
+        "default": []
+      },
+      "sizeDate": {
+        "type": "object",
+        "description": "图片尺寸数据,不传则使用默认2048×2048",
+        "properties": {
+          "width": {
+            "type": "integer",
+            "description": "图片宽,推荐: 1024/2048/2304/2496/2560/4096"
+          },
+          "height": {
+            "type": "integer",
+            "description": "图片高,推荐: 1024/2048/1728/1664/1440/4096"
+          }
+        }
+      },
+      "scale": {
+        "type": "number",
+        "description": "文本描述影响程度,范围[0,1],默认0.5",
+        "default": 0.5
+      },
+      "force_single": {
+        "type": "boolean",
+        "description": "是否强制生成单图,默认false",
+        "default": false
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token,格式: Bearer r:xxxxxxxx"
+      }
+    }
+  },
+  "requestTransform": {
+    "template": {
+      "prompt": "{{prompt}}",
+      "image_urls": "{{image_urls}}",
+      "sizeDate": "{{sizeDate}}",
+      "scale": "{{scale}}",
+      "force_single": "{{force_single}}",
+      "token": "{{token}}"
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer",
+        "description": "响应状态码,200表示成功"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string",
+            "description": "任务ID,用于后续查询任务状态和获取生成结果"
+          }
+        }
+      }
+    }
+  },
+  "notes": "提交任务后需调用 jimeng-task-query (getDataByTask02) 轮询任务状态。生成结果存储在 ImagineWork 表的 images 字段中,URL已转存永久有效。费用: 0.22元/张。",
+  "usageExamples": [
+    {
+      "name": "纯文生图-2K分辨率",
+      "input": {
+        "prompt": "帮我生成一个涵盖友情、独特、文化底蕴、科技的可爱日漫风但人物为中国人的图片",
+        "sizeDate": {
+          "width": 2048,
+          "height": 2048
+        },
+        "scale": 0.6,
+        "force_single": false,
+        "token": "Bearer r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+      },
+      "description": "使用文本提示词生成2K分辨率的日漫风格图片"
+    },
+    {
+      "name": "多图组合编辑",
+      "input": {
+        "prompt": "将模特穿上这件衣服",
+        "image_urls": [
+          "https://example.com/model.jpg",
+          "https://example.com/clothes.png"
+        ],
+        "sizeDate": {
+          "width": 2048,
+          "height": 2048
+        },
+        "token": "Bearer r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+      },
+      "description": "输入模特图+衣服图,通过提示词描述编辑意图"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-text2img-v3",
+    "jimeng-img2img-v3"
+  ],
+  "pricing": {
+    "unit": "张",
+    "price": 0.22,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1544714"
+  },
+  "timeout": 30000,
+  "retry": {
+    "maxAttempts": 2,
+    "delay": 1000,
+    "backoffMultiplier": 2
+  },
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 36 - 0
jimeng/jimeng-img2img-v3/SKILL.md

@@ -0,0 +1,36 @@
+---
+name: jimeng-img2img-v3
+description: 即梦图生图3.0智能参考,支持基于文本指令进行图像编辑,在精准执行编辑指令和保持图像内容完整性方面表现卓越。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-img2img-v3
+
+## 功能用途
+
+即梦图生图3.0智能参考,基于输入图片+文本指令进行图像编辑。
+
+**核心业务场景:**
+- 图像背景替换/修改
+- 海报/平面设计场景编辑(建议提示词加入「海报」「平面设计」等词)
+- 保持人物特征的图像编辑
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_url | string | ✅ | 图片文件URL,需输入1张 |
+| prompt | string | ✅ | 提示词,建议<=120字符,最长800字符 |
+| scale | number | ❌ | 文本描述影响程度,范围[0,1],默认0.5 |
+| sizeDate | object | ❌ | 图片尺寸,默认1328×1328 |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getImg2ImgV3`
+
+## 费用
+
+即梦图生图v3.0: **0.2元/次**

+ 187 - 0
jimeng/jimeng-img2img-v3/api-config.json

@@ -0,0 +1,187 @@
+{
+  "name": "jimeng-img2img-v3",
+  "displayName": "即梦图生图3.0智能参考",
+  "description": "基于输入图片+文本指令进行图像编辑,精准执行编辑指令,保持图像内容完整性。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getImg2ImgV3",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_url",
+      "prompt",
+      "token"
+    ],
+    "properties": {
+      "image_url": {
+        "type": "string",
+        "description": "图片文件URL,需输入1张"
+      },
+      "prompt": {
+        "type": "string",
+        "description": "提示词,建议<=120字符,最长800字符"
+      },
+      "scale": {
+        "type": "number",
+        "description": "文本描述影响程度,范围[0,1],默认0.5",
+        "default": 0.5
+      },
+      "sizeDate": {
+        "type": "object",
+        "properties": {
+          "width": {
+            "type": "integer"
+          },
+          "height": {
+            "type": "integer"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "背景替换",
+      "input": {
+        "image_url": "https://example.com/photo.png",
+        "prompt": "背景换成秋天落叶",
+        "scale": 0.5,
+        "sizeDate": {
+          "width": 1328,
+          "height": 1328
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "将图片背景替换为秋天落叶场景"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-img-v4"
+  ],
+  "pricing": {
+    "unit": "次",
+    "price": 0.2,
+    "currency": "CNY"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 34 - 0
jimeng/jimeng-inpaint/SKILL.md

@@ -0,0 +1,34 @@
+---
+name: jimeng-inpaint
+description: 交互编辑(局部重绘/消除笔),通过涂抹选区建立重绘区域,支持涂抹消除和涂抹编辑场景。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-inpaint
+
+## 功能用途
+
+即梦「局部重绘」「消除笔」同款图像编辑功能。
+
+**核心业务场景:**
+- 局部重绘(涂抹区域+提示词 → 重新生成局部内容)
+- 消除笔(涂抹区域+prompt="删除" → 消除指定内容)
+- 文字内容修改(修改后的文字放在""内提升准确率)
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_urls | string[] | ✅ | 图片文件URL,需输入2张(原图+mask图) |
+| prompt | string | ✅ | 提示词,消除场景输入"删除" |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getInpaint`
+
+## 费用
+
+交互编辑: **0.2元/次**

+ 172 - 0
jimeng/jimeng-inpaint/api-config.json

@@ -0,0 +1,172 @@
+{
+  "name": "jimeng-inpaint",
+  "displayName": "交互编辑(局部重绘/消除笔)",
+  "description": "通过涂抹选区建立重绘区域,支持局部重绘和消除笔功能。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getInpaint",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_urls",
+      "prompt",
+      "token"
+    ],
+    "properties": {
+      "image_urls": {
+        "type": "array",
+        "items": {
+          "type": "string"
+        },
+        "description": "图片文件URL,需输入2张(原图+mask图)"
+      },
+      "prompt": {
+        "type": "string",
+        "description": "提示词,消除场景输入\"删除\",文字修改放在\"\"内"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "局部重绘-替换人物",
+      "input": {
+        "image_urls": [
+          "https://example.com/original.png",
+          "https://example.com/mask.png"
+        ],
+        "prompt": "将小女孩换成古风仙子",
+        "token": "Bearer r:xxx"
+      },
+      "description": "使用mask标记区域,重绘为古风仙子"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query"
+  ],
+  "pricing": {
+    "unit": "次",
+    "price": 0.2,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/86081/1660170"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 35 - 0
jimeng/jimeng-oh-detect/SKILL.md

@@ -0,0 +1,35 @@
+---
+name: jimeng-oh-detect
+description: 数字人v1.5 步骤2:主体检测,检测图片中的主体并返回mask图,可选步骤(可跳过直接进行视频生成)。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-oh-detect
+
+## 功能用途
+
+数字人v1.5流程步骤2:主体检测,返回主体对应的mask图。
+
+**核心业务场景:**
+- 检测图片中的主体并返回mask图
+- 前端可展示mask图供用户选择指定主体
+- 此步骤可跳过,直接进行步骤3视频生成
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| workId | string | ✅ (二选一) | 步骤1的workId |
+| taskId | string | ✅ (二选一) | 任务ID |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getOhDetectMain`
+
+## 获取结果
+
+查询 ImagineWork 表(objectId=workId)获取 `maskUrls` 字段:
+- maskUrls: mask图URL列表(**未转存,有效期仅1小时**)

+ 166 - 0
jimeng/jimeng-oh-detect/api-config.json

@@ -0,0 +1,166 @@
+{
+  "name": "jimeng-oh-detect",
+  "displayName": "数字人v1.5-主体检测",
+  "description": "数字人v1.5步骤2:检测图片中的主体并返回mask图(可选步骤)。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getOhDetectMain",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "token"
+    ],
+    "properties": {
+      "workId": {
+        "type": "string",
+        "description": "步骤1的workId,与taskId二选一"
+      },
+      "taskId": {
+        "type": "string",
+        "description": "任务ID,与workId二选一"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "tip": {
+            "type": "string"
+          },
+          "isContinue": {
+            "type": "boolean"
+          },
+          "isFinish": {
+            "type": "boolean"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "检测主体",
+      "input": {
+        "workId": "qH58sm1wMr",
+        "token": "Bearer r:xxx"
+      },
+      "description": "检测步骤1中图片的主体,获取mask图"
+    }
+  ],
+  "notes": "mask图URL有效期仅1小时。此步骤可跳过,直接进行步骤3视频生成。",
+  "relatedSkills": [
+    "jimeng-oh-identify",
+    "jimeng-oh-generate",
+    "jimeng-oh-query"
+  ],
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 40 - 0
jimeng/jimeng-oh-generate/SKILL.md

@@ -0,0 +1,40 @@
+---
+name: jimeng-oh-generate
+description: 数字人v1.5 步骤3:视频生成(OmniHuman1.5),根据单张图片+音频生成高质量数字人视频,支持人物、动漫、宠物等形象。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-oh-generate
+
+## 功能用途
+
+数字人v1.5流程步骤3:视频生成,OmniHuman1.5即梦同源数字人模型。
+
+**核心业务场景:**
+- 单张图片+音频 → 数字人视频
+- 人物的情绪、动作与音频强关联
+- 支持通过prompt调整画面、动作、运镜
+- 支持人物、动漫、宠物等多种形象
+- 可广泛应用于剧情对话、唱歌、表演、商品交互、漫剧等
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| workId | string | ✅ (二选一) | 步骤1的workId |
+| taskId | string | ✅ (二选一) | 任务ID |
+| audio_url | string | ✅ | 音频URL |
+| prompt | string | ❌ | 提示词,调整画面/动作/运镜 |
+| pe_fast_mode | boolean | ❌ | 快速模式,默认false |
+| mask_url | string[] | ❌ | 掩码图URL列表(指定主体) |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getOmniHuman`
+
+## 费用
+
+数字人v1.5: **1元/秒**

+ 196 - 0
jimeng/jimeng-oh-generate/api-config.json

@@ -0,0 +1,196 @@
+{
+  "name": "jimeng-oh-generate",
+  "displayName": "数字人v1.5-视频生成",
+  "description": "OmniHuman1.5数字人模型,根据单张图片+音频生成高质量数字人视频。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getOmniHuman",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "audio_url",
+      "token"
+    ],
+    "properties": {
+      "workId": {
+        "type": "string",
+        "description": "步骤1的workId,与taskId二选一"
+      },
+      "taskId": {
+        "type": "string",
+        "description": "任务ID,与workId二选一"
+      },
+      "audio_url": {
+        "type": "string",
+        "description": "音频URL"
+      },
+      "prompt": {
+        "type": "string",
+        "description": "提示词,调整画面/动作/运镜"
+      },
+      "pe_fast_mode": {
+        "type": "boolean",
+        "description": "快速模式,默认false",
+        "default": false
+      },
+      "mask_url": {
+        "type": "array",
+        "items": {
+          "type": "string"
+        },
+        "description": "掩码图URL列表,指定讲话主体"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "tip": {
+            "type": "string"
+          },
+          "isContinue": {
+            "type": "boolean"
+          },
+          "isFinish": {
+            "type": "boolean"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "数字人朗读",
+      "input": {
+        "workId": "qH58sm1wMr",
+        "audio_url": "https://example.com/speech.mp3",
+        "prompt": "数字人朗读测试",
+        "pe_fast_mode": false,
+        "mask_url": [],
+        "token": "Bearer r:xxx"
+      },
+      "description": "驱动图片中的人物按音频朗读"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-oh-identify",
+    "jimeng-oh-detect",
+    "jimeng-oh-query"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 1,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1834143"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 43 - 0
jimeng/jimeng-oh-identify/SKILL.md

@@ -0,0 +1,43 @@
+---
+name: jimeng-oh-identify
+description: 数字人v1.5 步骤1:主体识别,识别图片中是否包含人、类人、拟人等主体,是数字人生成流程的第一步。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-oh-identify
+
+## 功能用途
+
+数字人v1.5流程步骤1:主体识别,判断图片中是否存在可驱动的主体。
+
+**核心业务场景:**
+- 识别图片中的人/类人/拟人主体
+- 数字人生成流程的入口步骤
+- 返回workId用于后续步骤
+
+## 调用链(Workflow)
+
+```
+本步: jimeng-oh-identify(image_url) → 提交主体识别任务,获取 workId
+步骤1.1: jimeng-oh-query(workId, routerName='getOhIdentifyMain') → 轮询识别结果
+步骤2: jimeng-oh-detect(workId) → 主体检测(可跳过)
+步骤3: jimeng-oh-generate(workId, audio_url) → 视频生成
+步骤3.1: jimeng-oh-query(workId, routerName='getOmniHuman') → 轮询生成结果
+```
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_url | string | ✅ | 图片URL |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getOhIdentifyMain`
+
+## 费用
+
+数字人v1.5: **1元/秒**(整体流程费用)

+ 162 - 0
jimeng/jimeng-oh-identify/api-config.json

@@ -0,0 +1,162 @@
+{
+  "name": "jimeng-oh-identify",
+  "displayName": "数字人v1.5-主体识别",
+  "description": "数字人v1.5步骤1:识别图片中是否包含人、类人、拟人等主体。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getOhIdentifyMain",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_url",
+      "token"
+    ],
+    "properties": {
+      "image_url": {
+        "type": "string",
+        "description": "图片URL"
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "识别人物主体",
+      "input": {
+        "image_url": "https://example.com/person.jpg",
+        "token": "Bearer r:xxx"
+      },
+      "description": "识别图片中是否存在可驱动的主体"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-oh-query",
+    "jimeng-oh-detect",
+    "jimeng-oh-generate"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 1,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1834143"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 47 - 0
jimeng/jimeng-oh-query/SKILL.md

@@ -0,0 +1,47 @@
+---
+name: jimeng-oh-query
+description: 数字人任务查询,查询数字人流程中步骤1(主体识别)和步骤3(视频生成)的任务状态。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-oh-query
+
+## 功能用途
+
+查询数字人流程的任务状态,支持查询主体识别和视频生成两个阶段。
+
+**核心业务场景:**
+- 轮询步骤1主体识别结果(routerName='getOhIdentifyMain')
+- 轮询步骤3视频生成结果(routerName='getOmniHuman')
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| workId | string | ✅ (二选一) | 作品ID |
+| taskId | string | ✅ (二选一) | 任务ID |
+| routerName | string | ✅ | 查询接口名称: getOhIdentifyMain 或 getOmniHuman |
+| logo_info | object | ❌ | 水印信息(仅routerName=getOmniHuman时生效) |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getOhDateByTask`
+
+## 响应说明
+
+**主体识别查询(routerName=getOhIdentifyMain):**
+- data.tip: "存在主体" / "不存在主体" / "生成中,请等待..."
+- data.isContinue: true表示可继续后续步骤
+- data.isFinish: false
+
+**视频生成查询(routerName=getOmniHuman):**
+- data.tip: "生成成功" / 状态文案
+- data.isFinish: true表示视频生成完成
+
+## 获取最终结果
+
+视频生成完成后,查询 ImagineWork 表(objectId=workId):
+- videos: 视频URL列表(已转存,永久有效)

+ 220 - 0
jimeng/jimeng-oh-query/api-config.json

@@ -0,0 +1,220 @@
+{
+  "name": "jimeng-oh-query",
+  "displayName": "数字人任务查询",
+  "description": "查询数字人流程中主体识别和视频生成的任务状态。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getOhDateByTask",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "routerName",
+      "token"
+    ],
+    "properties": {
+      "workId": {
+        "type": "string",
+        "description": "作品ID,与taskId二选一"
+      },
+      "taskId": {
+        "type": "string",
+        "description": "任务ID,与workId二选一"
+      },
+      "routerName": {
+        "type": "string",
+        "description": "查询接口名称",
+        "enum": [
+          "getOhIdentifyMain",
+          "getOmniHuman"
+        ]
+      },
+      "logo_info": {
+        "type": "object",
+        "description": "水印信息,仅routerName=getOmniHuman时生效",
+        "properties": {
+          "add_logo": {
+            "type": "boolean",
+            "default": false
+          },
+          "position": {
+            "type": "integer",
+            "default": 0
+          },
+          "language": {
+            "type": "integer",
+            "default": 0
+          },
+          "opacity": {
+            "type": "number",
+            "default": 1
+          },
+          "logo_text_content": {
+            "type": "string"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "tip": {
+            "type": "string",
+            "description": "状态提示文字"
+          },
+          "isContinue": {
+            "type": "boolean",
+            "description": "是否可继续后续步骤"
+          },
+          "isFinish": {
+            "type": "boolean",
+            "description": "是否生成完成"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "查询主体识别结果",
+      "input": {
+        "workId": "qH58sm1wMr",
+        "routerName": "getOhIdentifyMain",
+        "token": "Bearer r:xxx"
+      },
+      "description": "查询步骤1主体识别是否完成"
+    },
+    {
+      "name": "查询视频生成结果",
+      "input": {
+        "workId": "qH58sm1wMr",
+        "routerName": "getOmniHuman",
+        "token": "Bearer r:xxx"
+      },
+      "description": "查询步骤3数字人视频是否生成完成"
+    }
+  ],
+  "pollingConfig": {
+    "intervalMs": 3000,
+    "maxAttempts": 120,
+    "completionCondition": {
+      "getOhIdentifyMain": "data.isContinue === true",
+      "getOmniHuman": "data.isFinish === true"
+    }
+  },
+  "relatedSkills": [
+    "jimeng-oh-identify",
+    "jimeng-oh-detect",
+    "jimeng-oh-generate"
+  ],
+  "timeout": 15000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 35 - 0
jimeng/jimeng-super-resolution/SKILL.md

@@ -0,0 +1,35 @@
+---
+name: jimeng-super-resolution
+description: 智能超清,基于seedream基模将图像超清到4K/8K,在保证全局结构和语义一致性的前提下生成更多细节内容。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-super-resolution
+
+## 功能用途
+
+即梦「智能超清」同款图像编辑功能,全面提升画面质感。
+
+**核心业务场景:**
+- AIGC生成图像的超清处理(4K/8K)
+- 低质量图像的质感提升
+- 保持全局结构的细节增强
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| image_urls | string[] | ✅ | 图片文件URL,需输入1张 |
+| resolution | string | ❌ | 图片分辨率,默认'4k',可选'4k'或'8k' |
+| scale | number | ❌ | 细节生成程度,默认50,范围[0,100] |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getSuperResolution`
+
+## 费用
+
+智能超清: **0.4元/次**

+ 181 - 0
jimeng/jimeng-super-resolution/api-config.json

@@ -0,0 +1,181 @@
+{
+  "name": "jimeng-super-resolution",
+  "displayName": "智能超清",
+  "description": "基于seedream基模将图像超清到4K/8K,全面提升画面质感。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getSuperResolution",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "image_urls",
+      "token"
+    ],
+    "properties": {
+      "image_urls": {
+        "type": "array",
+        "items": {
+          "type": "string"
+        },
+        "description": "图片文件URL,需输入1张"
+      },
+      "resolution": {
+        "type": "string",
+        "description": "分辨率,默认4k",
+        "default": "4k",
+        "enum": [
+          "4k",
+          "8k"
+        ]
+      },
+      "scale": {
+        "type": "number",
+        "description": "细节生成程度,默认50,范围[0,100]",
+        "default": 50
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "超清到4K",
+      "input": {
+        "image_urls": [
+          "https://example.com/photo.jpg"
+        ],
+        "resolution": "4k",
+        "scale": 100,
+        "token": "Bearer r:xxx"
+      },
+      "description": "将图片超清处理到4K分辨率"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query"
+  ],
+  "pricing": {
+    "unit": "次",
+    "price": 0.4,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/86081/1660170"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 79 - 0
jimeng/jimeng-task-query/SKILL.md

@@ -0,0 +1,79 @@
+---
+name: jimeng-task-query
+description: 查询即梦AI生成任务状态,轮询获取图片/视频生成结果,支持所有即梦生成接口的结果查询。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-task-query
+
+## 功能用途
+
+查询即梦AI生成任务的执行状态和结果,是所有即梦生成类skill的下游必备skill。
+
+**核心业务场景:**
+- 轮询生成任务状态(提交任务后需等待生成完成)
+- 获取生成结果(图片/视频URL,已转存永久有效)
+- 支持所有即梦生成接口的结果查询
+
+## 调用链(Workflow)
+
+```
+上游: jimeng-img-v4 / jimeng-text2img-v3 / 其他生成skill → 获得 workId
+本步: jimeng-task-query(workId, routerName) → 轮询直到 isFinish=true
+下游: 查询 ImagineWork 表(objectId=workId) → images/videos 字段
+```
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| workId | string | ✅ (二选一) | ImagineWork数据id |
+| taskId | string | ✅ (二选一) | 任务ID,与workId二选一 |
+| routerName | string | ✅ | 对应接口名称(首次获取资源必填) |
+| logo_info | object | ❌ | 水印信息 |
+| logo_info.add_logo | boolean | ❌ | 是否添加水印,默认false |
+| logo_info.position | integer | ❌ | 水印位置: 0右下/1左下/2左上/3右上 |
+| logo_info.language | integer | ❌ | 0中文/1英文 |
+| logo_info.opacity | float | ❌ | 不透明度[0,1],默认1 |
+| logo_info.logo_text_content | string | ❌ | 自定义水印文本 |
+| token | string | ✅ | 认证token |
+
+**routerName 可选值:**
+`getClothesV2`、`getImgByImg`、`getImgV4`、`getText2ImgV3`、`getText2ImgV31`、`getImg2ImgV3`、`getImgV4_pod`、`getImgV4_goods`、`getInpaint`、`getSuperResolution`、`getVideoV3_720p`、`getVideoV3_1080p`、`getVideoV3_Pro`、`getActor`、`getActorV2`
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getDataByTask02`
+
+```json
+{
+  "workId": "82CC78HNl6",
+  "routerName": "getImgV4",
+  "token": "Bearer r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+}
+```
+
+## 关键响应字段
+
+| 字段 | 业务用途 |
+|------|---------|
+| code | 200 表示成功 |
+| data.tip | 状态提示文字(如"生成成功") |
+| data.isFinish | true表示任务完成,可查询ImagineWork表获取结果 |
+
+## 轮询策略
+
+建议每3-5秒轮询一次,直到 `data.isFinish === true`。图片生成通常10-30秒,视频生成可能需要1-5分钟。
+
+## 获取最终结果
+
+任务完成后,查询 ImagineWork 表(objectId = workId):
+- `images`: 图片URL数组(永久有效)
+- `videos`: 视频URL数组(永久有效)
+
+## 依赖要求
+
+- 接口地址: `https://server.fmode.cn/api/volcengine/jimeng/getDataByTask02`
+- 需携带 token 参数(body 内传递)

+ 233 - 0
jimeng/jimeng-task-query/api-config.json

@@ -0,0 +1,233 @@
+{
+  "name": "jimeng-task-query",
+  "displayName": "即梦任务结果查询",
+  "description": "查询即梦AI生成任务状态,轮询获取图片/视频生成结果,支持所有即梦生成接口的结果查询。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getDataByTask02",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "routerName",
+      "token"
+    ],
+    "properties": {
+      "workId": {
+        "type": "string",
+        "description": "ImagineWork数据id,与taskId二选一"
+      },
+      "taskId": {
+        "type": "string",
+        "description": "任务ID,与workId二选一"
+      },
+      "routerName": {
+        "type": "string",
+        "description": "对应接口名称,首次获取资源必填",
+        "enum": [
+          "getClothesV2",
+          "getImgByImg",
+          "getImgV4",
+          "getText2ImgV3",
+          "getText2ImgV31",
+          "getImg2ImgV3",
+          "getImgV4_pod",
+          "getImgV4_goods",
+          "getInpaint",
+          "getSuperResolution",
+          "getVideoV3_720p",
+          "getVideoV3_1080p",
+          "getVideoV3_Pro",
+          "getActor",
+          "getActorV2"
+        ]
+      },
+      "logo_info": {
+        "type": "object",
+        "description": "水印信息(选填)",
+        "properties": {
+          "add_logo": {
+            "type": "boolean",
+            "description": "是否添加水印",
+            "default": false
+          },
+          "position": {
+            "type": "integer",
+            "description": "水印位置: 0右下/1左下/2左上/3右上",
+            "default": 0
+          },
+          "language": {
+            "type": "integer",
+            "description": "0中文/1英文",
+            "default": 0
+          },
+          "opacity": {
+            "type": "number",
+            "description": "不透明度[0,1]",
+            "default": 1
+          },
+          "logo_text_content": {
+            "type": "string",
+            "description": "自定义水印文本"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token,格式: Bearer r:xxxxxxxx"
+      }
+    }
+  },
+  "requestTransform": {
+    "template": {
+      "workId": "{{workId}}",
+      "taskId": "{{taskId}}",
+      "routerName": "{{routerName}}",
+      "logo_info": "{{logo_info}}",
+      "token": "{{token}}"
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer",
+        "description": "响应状态码,200表示成功"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "tip": {
+            "type": "string",
+            "description": "状态提示文字"
+          },
+          "isFinish": {
+            "type": "boolean",
+            "description": "true表示任务完成"
+          }
+        }
+      }
+    }
+  },
+  "notes": "轮询策略:每3-5秒调用一次,直到 data.isFinish=true。任务完成后查询 ImagineWork 表获取 images/videos 字段。",
+  "usageExamples": [
+    {
+      "name": "查询图片生成任务状态",
+      "input": {
+        "workId": "82CC78HNl6",
+        "routerName": "getImgV4",
+        "token": "Bearer r:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+      },
+      "description": "查询 getImgV4 图片生成任务的完成状态"
+    }
+  ],
+  "pollingConfig": {
+    "intervalMs": 3000,
+    "maxAttempts": 60,
+    "completionCondition": "data.isFinish === true"
+  },
+  "timeout": 15000,
+  "retry": {
+    "maxAttempts": 3,
+    "delay": 1000,
+    "backoffMultiplier": 2
+  },
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 42 - 0
jimeng/jimeng-text2img-v3/SKILL.md

@@ -0,0 +1,42 @@
+---
+name: jimeng-text2img-v3
+description: 即梦文生图3.0,文字响应准确度高,支持艺术字体和不同字重,人像质感逼真,支持高清大图输出。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-text2img-v3
+
+## 功能用途
+
+即梦文生图3.0,在文字响应准确度、图文排版、层次美感和语义理解能力上表现优异。
+
+**核心业务场景:**
+- 文字响应精准的图片生成(支持大小字、艺术字体、不同字重)
+- 人像质感逼真的图片生成
+- 高清大图输出(标清1K / 高清2K)
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| prompt | string | ✅ | 提示词,建议<=120字符,最长800字符 |
+| use_pre_llm | boolean | ❌ | 是否开启文本扩写,默认true |
+| sizeDate | object | ❌ | 图片尺寸,默认1328×1328 |
+| sizeDate.width | number | ❌ | 图片宽 |
+| sizeDate.height | number | ❌ | 图片高 |
+| token | string | ✅ | 认证token |
+
+**推荐尺寸:**
+- 标清1K: 1328×1328(1:1)、1472×1104(4:3)、1584×1056(3:2)、1664×936(16:9)
+- 高清2K: 2048×2048(1:1)、2304×1728(4:3)、2496×1664(3:2)、2560×1440(16:9)
+- 约束:宽高比1:3到3:1,宽高乘积[512×512, 2048×2048]
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getText2ImgV3`
+
+## 费用
+
+即梦文生图3.0: **0.2元/次**

+ 187 - 0
jimeng/jimeng-text2img-v3/api-config.json

@@ -0,0 +1,187 @@
+{
+  "name": "jimeng-text2img-v3",
+  "displayName": "即梦文生图3.0",
+  "description": "即梦文生图3.0,文字响应准确度高,支持艺术字体和不同字重,人像质感逼真,支持高清大图输出。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getText2ImgV3",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "prompt",
+      "token"
+    ],
+    "properties": {
+      "prompt": {
+        "type": "string",
+        "description": "提示词,建议<=120字符,最长800字符"
+      },
+      "use_pre_llm": {
+        "type": "boolean",
+        "description": "是否开启文本扩写,默认true",
+        "default": true
+      },
+      "sizeDate": {
+        "type": "object",
+        "description": "图片尺寸,默认1328×1328",
+        "properties": {
+          "width": {
+            "type": "integer",
+            "description": "图片宽"
+          },
+          "height": {
+            "type": "integer",
+            "description": "图片高"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer",
+        "description": "200表示成功"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string",
+            "description": "任务ID"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "文生图-古风人像",
+      "input": {
+        "prompt": "芙蓉面美如远山秀,杏仁眼灵性儿透。",
+        "use_pre_llm": true,
+        "sizeDate": {
+          "width": 599,
+          "height": 1328
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "生成古风人像图片"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-text2img-v31",
+    "jimeng-img-v4"
+  ],
+  "pricing": {
+    "unit": "次",
+    "price": 0.2,
+    "currency": "CNY"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 39 - 0
jimeng/jimeng-text2img-v31/SKILL.md

@@ -0,0 +1,39 @@
+---
+name: jimeng-text2img-v31
+description: 即梦文生图3.1,画面效果升级版,画面美感塑造、风格精准多样及画面细节丰富度方面大幅提升,兼具文字响应效果。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-text2img-v31
+
+## 功能用途
+
+即梦文生图3.1,相比3.0重点提升画面效果,在美感塑造、风格多样性及细节丰富度方面显著提升。
+
+**核心业务场景:**
+- 高美感画面生成(风格精准多样)
+- 画面细节丰富的图片生成
+- 兼具文字响应效果
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| prompt | string | ✅ | 提示词,建议<=120字符,最长800字符 |
+| use_pre_llm | boolean | ❌ | 是否开启文本扩写,默认true |
+| sizeDate | object | ❌ | 图片尺寸,默认1328×1328 |
+| sizeDate.width | number | ❌ | 图片宽 |
+| sizeDate.height | number | ❌ | 图片高 |
+| token | string | ✅ | 认证token |
+
+**尺寸约束同 text2img-v3。**
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getText2ImgV31`
+
+## 费用
+
+即梦文生图3.1: **0.2元/次**

+ 182 - 0
jimeng/jimeng-text2img-v31/api-config.json

@@ -0,0 +1,182 @@
+{
+  "name": "jimeng-text2img-v31",
+  "displayName": "即梦文生图3.1",
+  "description": "即梦文生图3.1,画面效果升级版,画面美感塑造、风格精准多样及画面细节丰富度方面大幅提升。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getText2ImgV31",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "prompt",
+      "token"
+    ],
+    "properties": {
+      "prompt": {
+        "type": "string",
+        "description": "提示词,建议<=120字符,最长800字符"
+      },
+      "use_pre_llm": {
+        "type": "boolean",
+        "description": "是否开启文本扩写,默认true",
+        "default": true
+      },
+      "sizeDate": {
+        "type": "object",
+        "description": "图片尺寸,默认1328×1328",
+        "properties": {
+          "width": {
+            "type": "integer"
+          },
+          "height": {
+            "type": "integer"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "文生图-花卉艺术字",
+      "input": {
+        "prompt": "淡蓝紫的冷清感,一束小雏菊,右下角展示一串小的艺术字\"手捧一束小雏菊赠与你\"",
+        "use_pre_llm": true,
+        "sizeDate": {
+          "width": 599,
+          "height": 1328
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "生成带艺术字的花卉图片"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-text2img-v3"
+  ],
+  "pricing": {
+    "unit": "次",
+    "price": 0.2,
+    "currency": "CNY"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 38 - 0
jimeng/jimeng-video-v3-1080p/SKILL.md

@@ -0,0 +1,38 @@
+---
+name: jimeng-video-v3-1080p
+description: 即梦视频生成3.0(1080p),支持文生视频、图生视频(首帧/首尾帧),最高1080P高清渲染,多元艺术风格。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-video-v3-1080p
+
+## 功能用途
+
+即梦视频3.0 1080P高清版本,视觉表达流畅一致。
+
+**核心业务场景:**
+- 文生视频(输入提示词 → 高清1080P视频)
+- 图生视频-首帧(首帧图片+提示词 → 1080P视频)
+- 图生视频-首尾帧(首帧+尾帧+提示词 → 1080P视频)
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| prompt | string | ✅ | 提示词,建议<=400字 |
+| frames | number | ❌ | 帧数,范围[121,241],默认121 |
+| method | string | ✅ | 生成方式: 1文生视频 2首帧 3首尾帧 |
+| config | object | ❌ | 配置参数(同720p的method 1/2/3) |
+| token | string | ✅ | 认证token |
+
+> 注意:1080p版本不支持 method=4(运镜),如需运镜请使用 720p 版本。
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_1080p`
+
+## 费用
+
+视频生成3.0 1080p: **0.63元/秒**

+ 206 - 0
jimeng/jimeng-video-v3-1080p/api-config.json

@@ -0,0 +1,206 @@
+{
+  "name": "jimeng-video-v3-1080p",
+  "displayName": "视频生成3.0(1080p)",
+  "description": "即梦视频3.0 1080P,支持文生视频、图生视频(首帧/首尾帧),最高1080P高清渲染。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_1080p",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "prompt",
+      "method",
+      "token"
+    ],
+    "properties": {
+      "prompt": {
+        "type": "string",
+        "description": "提示词,建议<=400字"
+      },
+      "frames": {
+        "type": "integer",
+        "description": "帧数,范围[121,241],默认121",
+        "default": 121
+      },
+      "method": {
+        "type": "string",
+        "description": "生成方式: 1文生视频 2首帧 3首尾帧",
+        "enum": [
+          "1",
+          "2",
+          "3"
+        ]
+      },
+      "config": {
+        "type": "object",
+        "properties": {
+          "aspect_ratio": {
+            "type": "string",
+            "description": "长宽比(method=1)",
+            "enum": [
+              "16:9",
+              "4:3",
+              "1:1",
+              "3:4",
+              "9:16",
+              "21:9"
+            ]
+          },
+          "image_urls": {
+            "type": "array",
+            "items": {
+              "type": "string"
+            },
+            "description": "图片URL(method=2需1张, method=3需2张)"
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "文生1080P视频",
+      "input": {
+        "prompt": "表达友情、信任、尊重、合作,一种二次元+可爱风格",
+        "frames": 121,
+        "method": "1",
+        "config": {
+          "aspect_ratio": "16:9"
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "文本生成1080P高清视频"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-video-v3-720p",
+    "jimeng-video-v3-pro"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 0.63,
+    "currency": "CNY",
+    "reference": "https://www.volcengine.com/docs/85621/1544715"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 66 - 0
jimeng/jimeng-video-v3-720p/SKILL.md

@@ -0,0 +1,66 @@
+---
+name: jimeng-video-v3-720p
+description: 即梦视频生成3.0(720p),支持文生视频、图生视频(首帧/首尾帧/运镜),准确遵循复杂指令,视觉表达流畅一致。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-video-v3-720p
+
+## 功能用途
+
+即梦视频3.0 720P,专业级视频生成引擎,生成效果与速度兼备的高性价比之选。
+
+**核心业务场景:**
+- 文生视频(输入提示词 → 生成视频)
+- 图生视频-首帧(首帧图片+提示词 → 生成视频)
+- 图生视频-首尾帧(首帧+尾帧+提示词 → 生成视频)
+- 图生视频-运镜(首帧+运镜模板+强度 → 运镜视频)
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| prompt | string | ✅ | 提示词,建议<=400字,最长800字 |
+| frames | number | ❌ | 帧数,范围[121,241],默认121(5s=121帧, 10s=241帧) |
+| method | string | ✅ | 生成方式: 1文生视频 2首帧 3首尾帧 4运镜 |
+| config | object | ❌ | 其他配置参数 |
+| token | string | ✅ | 认证token |
+
+### method=1 文生视频 config参数
+| 参数 | 类型 | 说明 |
+|------|------|------|
+| aspect_ratio | string | 长宽比,默认"16:9",可选"16:9","4:3","1:1","3:4","9:16","21:9" |
+
+### method=2 图生视频-首帧 config参数
+| 参数 | 类型 | 说明 |
+|------|------|------|
+| image_urls | string[] | 首帧图片URL,仅支持1张 |
+
+### method=3 图生视频-首尾帧 config参数
+| 参数 | 类型 | 说明 |
+|------|------|------|
+| image_urls | string[] | 图片URL,需输入2张(首帧+尾帧) |
+
+### method=4 图生视频-运镜 config参数
+| 参数 | 类型 | 说明 |
+|------|------|------|
+| image_urls | string[] | 首帧图片URL,仅支持1张 |
+| template_id | string | 运镜模板ID |
+| camera_strength | string | 强度: weak/medium/strong |
+
+**运镜模板ID列表:**
+- hitchcock_dolly_in(希区柯克推进) / hitchcock_dolly_out(拉远)
+- robo_arm(机械臂) / dynamic_orbit(动感环绕) / central_orbit(中心环绕)
+- crane_push(起重机) / quick_pull_back(超级拉远)
+- counterclockwise_swivel(逆时针回旋) / clockwise_swivel(顺时针回旋)
+- handheld(手持运镜) / rapid_push_pull(快速推拉)
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_720p`
+
+## 费用
+
+视频生成3.0 720p: **0.28元/秒**

+ 237 - 0
jimeng/jimeng-video-v3-720p/api-config.json

@@ -0,0 +1,237 @@
+{
+  "name": "jimeng-video-v3-720p",
+  "displayName": "视频生成3.0(720p)",
+  "description": "即梦视频3.0 720P,支持文生视频、图生视频(首帧/首尾帧/运镜),高性价比之选。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_720p",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "prompt",
+      "method",
+      "token"
+    ],
+    "properties": {
+      "prompt": {
+        "type": "string",
+        "description": "提示词,建议<=400字,最长800字"
+      },
+      "frames": {
+        "type": "integer",
+        "description": "帧数,范围[121,241],默认121",
+        "default": 121
+      },
+      "method": {
+        "type": "string",
+        "description": "生成方式: 1文生视频 2首帧 3首尾帧 4运镜",
+        "enum": [
+          "1",
+          "2",
+          "3",
+          "4"
+        ]
+      },
+      "config": {
+        "type": "object",
+        "description": "配置参数,根据method不同而不同",
+        "properties": {
+          "aspect_ratio": {
+            "type": "string",
+            "description": "长宽比(method=1)",
+            "enum": [
+              "16:9",
+              "4:3",
+              "1:1",
+              "3:4",
+              "9:16",
+              "21:9"
+            ]
+          },
+          "image_urls": {
+            "type": "array",
+            "items": {
+              "type": "string"
+            },
+            "description": "图片URL(method=2/3/4)"
+          },
+          "template_id": {
+            "type": "string",
+            "description": "运镜模板ID(method=4)"
+          },
+          "camera_strength": {
+            "type": "string",
+            "description": "运镜强度(method=4)",
+            "enum": [
+              "weak",
+              "medium",
+              "strong"
+            ]
+          }
+        }
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "文生视频-16:9",
+      "input": {
+        "prompt": "一只小猫在草地上奔跑",
+        "frames": 121,
+        "method": "1",
+        "config": {
+          "aspect_ratio": "16:9"
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "文本生成16:9 720p视频"
+    },
+    {
+      "name": "图生视频-运镜",
+      "input": {
+        "prompt": "运镜拉远效果",
+        "frames": 121,
+        "method": "4",
+        "config": {
+          "image_urls": [
+            "https://example.com/photo.jpg"
+          ],
+          "template_id": "quick_pull_back",
+          "camera_strength": "medium"
+        },
+        "token": "Bearer r:xxx"
+      },
+      "description": "首帧图+超级拉远运镜模板生成视频"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-video-v3-1080p",
+    "jimeng-video-v3-pro"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 0.28,
+    "currency": "CNY"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 37 - 0
jimeng/jimeng-video-v3-pro/SKILL.md

@@ -0,0 +1,37 @@
+---
+name: jimeng-video-v3-pro
+description: 即梦视频生成3.0Pro,具备多镜头叙事能力,更精准遵循指令,支持1080P高清专业级质感视频。
+version: 1.0.0
+author: nkkj-BrainHack
+---
+
+# jimeng-video-v3-pro
+
+## 功能用途
+
+即梦视频3.0Pro,视频生成效果飞跃,各维度均表现优异。
+
+**核心业务场景:**
+- 文生视频(多镜头叙事能力)
+- 图生视频-首帧(1080P专业级质感)
+- 丰富多元的风格化表达
+
+## 入参规则
+
+| 参数 | 类型 | 必填 | 说明 |
+|------|------|------|------|
+| prompt | string | ❌ | 提示词(文生视频必填,图生视频可不传) |
+| image_url | string | ❌ | 首帧图片URL(图生视频必填) |
+| image_urls | string/string[] | ❌ | 首帧图片URL(允许传数组或单值) |
+| frames | number | ❌ | 帧数,范围[121,241],默认121 |
+| aspect_ratio | number | ❌ | 比例编号: 1=16:9 2=4:3 3=1:1 4=3:4 5=9:16 6=21:9 |
+| token | string | ✅ | 认证token |
+
+## 接口调用方式
+
+- **请求方法**: POST
+- **接口地址**: `https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_Pro`
+
+## 费用
+
+即梦视频生成3.0Pro: **1元/秒**

+ 197 - 0
jimeng/jimeng-video-v3-pro/api-config.json

@@ -0,0 +1,197 @@
+{
+  "name": "jimeng-video-v3-pro",
+  "displayName": "即梦视频生成3.0Pro",
+  "description": "即梦视频3.0Pro,具备多镜头叙事能力,1080P专业级质感视频。",
+  "category": "jimeng",
+  "version": "1.0.0",
+  "endpoint": {
+    "method": "POST",
+    "url": "https://server.fmode.cn/api/volcengine/jimeng/getVideoV3_Pro",
+    "headers": {
+      "Content-Type": "application/json"
+    }
+  },
+  "parameters": {
+    "type": "object",
+    "required": [
+      "token"
+    ],
+    "properties": {
+      "prompt": {
+        "type": "string",
+        "description": "提示词(文生视频必填,图生视频可不传)"
+      },
+      "image_url": {
+        "type": "string",
+        "description": "首帧图片URL(图生视频必填)"
+      },
+      "image_urls": {
+        "description": "首帧图片URL,允许传数组或单值"
+      },
+      "frames": {
+        "type": "integer",
+        "description": "帧数,范围[121,241],默认121",
+        "default": 121
+      },
+      "aspect_ratio": {
+        "type": "integer",
+        "description": "比例编号: 1=16:9 2=4:3 3=1:1 4=3:4 5=9:16 6=21:9",
+        "enum": [
+          1,
+          2,
+          3,
+          4,
+          5,
+          6
+        ]
+      },
+      "token": {
+        "type": "string",
+        "description": "认证token"
+      }
+    }
+  },
+  "response": {
+    "type": "object",
+    "properties": {
+      "code": {
+        "type": "integer"
+      },
+      "data": {
+        "type": "object",
+        "properties": {
+          "workId": {
+            "type": "string"
+          }
+        }
+      }
+    }
+  },
+  "usageExamples": [
+    {
+      "name": "文生视频Pro",
+      "input": {
+        "prompt": "两个q版小女孩笑着面向镜头慢慢地跑",
+        "frames": 121,
+        "aspect_ratio": 5,
+        "token": "Bearer r:xxx"
+      },
+      "description": "文本生成9:16竖屏Pro级视频"
+    },
+    {
+      "name": "图生视频Pro",
+      "input": {
+        "prompt": "人物缓缓转头微笑",
+        "image_url": "https://example.com/photo.png",
+        "frames": 121,
+        "aspect_ratio": 5,
+        "token": "Bearer r:xxx"
+      },
+      "description": "首帧图片驱动生成Pro级视频"
+    }
+  ],
+  "relatedSkills": [
+    "jimeng-task-query",
+    "jimeng-video-v3-720p",
+    "jimeng-video-v3-1080p"
+  ],
+  "pricing": {
+    "unit": "秒",
+    "price": 1,
+    "currency": "CNY"
+  },
+  "timeout": 30000,
+  "tokenConfig": {
+    "type": "body",
+    "tokenField": "token",
+    "format": "Bearer r:{{jimengToken}}",
+    "configFile": "~/.openclaw/voc-credentials.json",
+    "currentToken": "r:f0333969e312a40e4703e8fe4ed1c600",
+    "resolutionOrder": [
+      "configFile",
+      "currentToken"
+    ],
+    "onMissing": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "扫码开通即梦AI生成服务",
+      "message": "请扫描下方二维码完成支付,支付成功后将自动获取 Token 并继续执行。"
+    },
+    "onBalanceInsufficient": {
+      "action": "showPaymentQR",
+      "qrCodeUrl": "https://payment.brainhack.cn/apig-pay.html?authid=T0iOotHcDX",
+      "paymentCheckEndpoint": "https://server.fmode.cn/api/apig/getApig",
+      "pollingIntervalMs": 3000,
+      "pollingTimeoutMs": 300000,
+      "onPaymentSuccess": "retrySkillWithNewToken",
+      "title": "即梦AI Token 余额不足,请扫码充值",
+      "message": "当前 Token 余额不足,请扫描二维码充值,支付完成后将自动继续执行。"
+    }
+  },
+  "errorHandling": {
+    "balanceInsufficient": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            -2,
+            -3,
+            -10,
+            402,
+            429
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance",
+            "quota"
+          ]
+        },
+        {
+          "responseField": "message",
+          "operator": "contains",
+          "value": [
+            "余额不足",
+            "insufficient",
+            "balance"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onBalanceInsufficient"
+    },
+    "unauthorized": {
+      "conditions": [
+        {
+          "responseField": "code",
+          "operator": "in",
+          "value": [
+            401,
+            403
+          ]
+        },
+        {
+          "responseField": "msg",
+          "operator": "contains",
+          "value": [
+            "unauthorized",
+            "token",
+            "invalid",
+            "auth"
+          ]
+        }
+      ],
+      "matchMode": "any",
+      "trigger": "tokenConfig.onMissing"
+    }
+  }
+}

+ 160 - 0
jimeng/test-skill-flow.js

@@ -0,0 +1,160 @@
+/**
+ * OpenClaw Skill 完整流程测试
+ * 模拟 OpenClaw 读取 api-config.json → 构造请求 → 提交任务 → 轮询结果
+ */
+
+const fs = require('fs');
+const path = require('path');
+
+const TOKEN = "Bearer r:f0333969e312a40e4703e8fe4ed1c600";
+
+// ========== Step 0: 读取 skill 配置 ==========
+function loadSkillConfig(skillDir) {
+    const configPath = path.join(__dirname, skillDir, 'api-config.json');
+    const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
+    console.log(`[OpenClaw] 加载 skill: ${config.displayName} (${config.name})`);
+    console.log(`[OpenClaw] 端点: ${config.endpoint.method} ${config.endpoint.url}`);
+    console.log(`[OpenClaw] 必填参数: ${config.parameters.required.join(', ')}`);
+    return config;
+}
+
+// ========== Step 1: 根据 api-config 构造并发送请求 ==========
+async function executeSkill(config, inputParams) {
+    console.log(`\n[OpenClaw] 执行 skill: ${config.name}`);
+    console.log(`[OpenClaw] 输入参数:`, JSON.stringify(inputParams, null, 2));
+
+    // 验证必填参数
+    for (const req of config.parameters.required) {
+        if (!(req in inputParams)) {
+            throw new Error(`缺少必填参数: ${req}`);
+        }
+    }
+
+    // 构造请求
+    const response = await fetch(config.endpoint.url, {
+        method: config.endpoint.method,
+        headers: config.endpoint.headers,
+        body: JSON.stringify(inputParams)
+    });
+
+    const result = await response.json();
+    console.log(`[OpenClaw] 响应:`, JSON.stringify(result, null, 2));
+    return result;
+}
+
+// ========== Step 2: 轮询任务状态 ==========
+async function pollTaskResult(taskQueryConfig, workId, routerName, maxAttempts = 20, intervalMs = 3000) {
+    console.log(`\n[OpenClaw] 开始轮询任务 workId=${workId}, routerName=${routerName}`);
+    
+    for (let i = 1; i <= maxAttempts; i++) {
+        const result = await executeSkill(taskQueryConfig, {
+            workId: workId,
+            routerName: routerName,
+            token: TOKEN
+        });
+
+        if (result.code === 200 && result.data) {
+            console.log(`[OpenClaw] 轮询 #${i}: tip="${result.data.tip}", isFinish=${result.data.isFinish}`);
+            
+            if (result.data.isFinish === true) {
+                console.log(`[OpenClaw] ✅ 任务完成!`);
+                return result;
+            }
+        }
+
+        if (i < maxAttempts) {
+            console.log(`[OpenClaw] 等待 ${intervalMs}ms 后重试...`);
+            await new Promise(resolve => setTimeout(resolve, intervalMs));
+        }
+    }
+    
+    console.log(`[OpenClaw] ⚠️ 轮询超时,已达最大尝试次数 ${maxAttempts}`);
+    return null;
+}
+
+// ========== 主测试流程 ==========
+async function testImgV4Flow() {
+    console.log("=".repeat(60));
+    console.log("测试1: jimeng-img-v4 图片生成4.0 完整流程");
+    console.log("=".repeat(60));
+
+    // Step 0: 加载两个 skill 配置
+    const imgConfig = loadSkillConfig('jimeng-img-v4');
+    const queryConfig = loadSkillConfig('jimeng-task-query');
+
+    // Step 1: 提交图片生成任务
+    const genResult = await executeSkill(imgConfig, {
+        prompt: "一只可爱的橘猫在阳光下打盹,水彩画风格",
+        sizeDate: { width: 1024, height: 1024 },
+        scale: 0.6,
+        force_single: true,
+        token: TOKEN
+    });
+
+    if (genResult.code !== 200 || !genResult.data?.workId) {
+        console.log("[OpenClaw] ❌ 任务提交失败");
+        return;
+    }
+
+    const workId = genResult.data.workId;
+    console.log(`[OpenClaw] 任务已提交, workId = ${workId}`);
+
+    // Step 2: 轮询任务结果
+    const taskResult = await pollTaskResult(queryConfig, workId, 'getImgV4');
+
+    if (taskResult) {
+        console.log(`\n[OpenClaw] 🎉 jimeng-img-v4 完整流程测试通过!`);
+        console.log(`[OpenClaw] workId: ${workId}`);
+        console.log(`[OpenClaw] 可通过查询 ImagineWork 表 (objectId=${workId}) 获取 images 字段`);
+    }
+}
+
+async function testText2ImgV3Flow() {
+    console.log("\n" + "=".repeat(60));
+    console.log("测试2: jimeng-text2img-v3 文生图3.0 完整流程");
+    console.log("=".repeat(60));
+
+    const imgConfig = loadSkillConfig('jimeng-text2img-v3');
+    const queryConfig = loadSkillConfig('jimeng-task-query');
+
+    const genResult = await executeSkill(imgConfig, {
+        prompt: "春天的樱花树下,一位穿和服的少女,唯美水彩风",
+        use_pre_llm: true,
+        sizeDate: { width: 1328, height: 1328 },
+        token: TOKEN
+    });
+
+    if (genResult.code !== 200 || !genResult.data?.workId) {
+        console.log("[OpenClaw] ❌ 任务提交失败");
+        return;
+    }
+
+    const workId = genResult.data.workId;
+    console.log(`[OpenClaw] 任务已提交, workId = ${workId}`);
+
+    const taskResult = await pollTaskResult(queryConfig, workId, 'getText2ImgV3');
+
+    if (taskResult) {
+        console.log(`\n[OpenClaw] 🎉 jimeng-text2img-v3 完整流程测试通过!`);
+        console.log(`[OpenClaw] workId: ${workId}`);
+    }
+}
+
+async function main() {
+    console.log("╔══════════════════════════════════════════════════════════╗");
+    console.log("║     OpenClaw Jimeng Skill 完整流程测试                  ║");
+    console.log("╚══════════════════════════════════════════════════════════╝\n");
+
+    try {
+        await testImgV4Flow();
+        await testText2ImgV3Flow();
+    } catch (err) {
+        console.error("[OpenClaw] 测试出错:", err.message);
+    }
+
+    console.log("\n" + "=".repeat(60));
+    console.log("全部测试完成");
+    console.log("=".repeat(60));
+}
+
+main();