{ "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": "bearer", "configFile": "~/.openclaw/voc-credentials.json", "tokenField": "vocToken", "resolutionOrder": [ "configFile" ], "apigId": "Vo3ROWEvDy", "paymentUrlResolution": { "description": "动态构建充值URL:在已存在 session token 时查出用户 objectId,拼接到专属充值页面", "steps": [ "1. 从 voc-credentials.json 获取当前 session token", "2. 调用 GET https://server.fmode.cn/parse/users/me (Header: X-Parse-Application-Id: ncloudmaster, X-Parse-Session-Token: {token})获取用户 objectId", "3. 拼接充值URL: https://app.fmode.cn/dev/apig-pay/?user={objectId}&apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF", "4. 将该URL展示给用户,引导扫码支付" ], "userResolveEndpoint": "https://server.fmode.cn/parse/users/me", "userResolveHeaders": { "X-Parse-Application-Id": "ncloudmaster", "X-Parse-Session-Token": "{vocToken}" }, "paymentBaseUrl": "https://app.fmode.cn/dev/apig-pay/", "paymentParams": { "user": "{resolvedUserId}", "apigid": "Vo3ROWEvDy", "fun_id": "HOkkX72PMF" }, "balanceCheckEndpoint": "https://server.fmode.cn/api/apig/getApig" }, "onMissing": { "action": "showPaymentQR", "qrCodeUrl": "https://app.fmode.cn/dev/apig-pay/?apigid=Vo3ROWEvDy&fun_id=HOkkX72PMF", "title": "扫码开通 VOC-AI 数据服务", "message": "此 Skill 需要有效的 API Token。请先打开充值页面完成登录和充值;当用户提供 session token 后,请由 OpenClaw 运行 node scripts/tools/set-voc-token.js 写入 ~/.openclaw/voc-credentials.json 的 vocToken 字段,再重试当前 Skill。", "tokenSetupCommandTemplate": "node scripts/tools/set-voc-token.js {sessionToken}", "tokenSetupInstructions": "当用户完成登录和充值后,如果用户把 session token 发给你,请直接运行 node scripts/tools/set-voc-token.js 写入 ~/.openclaw/voc-credentials.json,然后重试当前 Skill。" }, "onBalanceInsufficient": { "action": "resolveUserThenShowPayment", "title": "VOC-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": "mess", "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" } } }