tufty.aitufty.ai CLI
CLI

积分

运行前如何预估积分消耗。

每次运行消耗账户积分,由两部分组成:生成抠图。CLI 在提交前把预估写到标准错误:

[cost-estimate] 预计约 75 积分(生成 72 + 抠图 3)

想在不花积分的情况下拿到准确的预估,加 --dry-run,见 输出模式

图片工具

生成积分 = 画质单价 × 配对数 × --count,其中配对数 = 商品件数 × 模特图数(没传的一方按 1 计)。

工具lowmediumhigh
宠物换装 pet-dressup61849
场景替换 background-swap41647
平铺转 3D flat-to-3d41647

单位:积分 / 张。默认画质为最便宜的 low

视频工具

生成积分 = round(每秒单价 × --duration)。

工具分辨率每秒5 秒10 秒
图转视频 image-to-video720P19.0595191
商品短片 product-promo720P31.75159318
1080P78.59393786
运镜控制 motion-control720P19.0595191
萌宠带货 replace-elements720P31.75159318
1080P78.59393786

默认分辨率为最便宜的一档。

抠图

每张需要抠图的输入图 1 积分,加 --no-cutout 跳过。哪些输入会抠图见 本地文件与上传

示例

命令预估
tufty pet-dressup --product ./sweater.jpg --model ./corgi.jpg6 × 1 × 1 + 抠图 2 = 8
tufty pet-dressup --product ./sweater.jpg ./hoodie.jpg --model ./corgi.jpg ./shiba.jpg --quality medium --count 218 × 4 × 2 + 抠图 4 = 148
tufty product-promo --still ./sweater.jpg --resolution 1080P --duration 10786 + 抠图 1 = 787
tufty image-to-video --still ./corgi.png --no-cutout95

价格会调整

以上价格取自 2026 年 9 月 15 日的服务端工具清单。价格以清单为准,可能随时调整;CLI 的预估始终使用最新清单,运行 tufty tools describe <id>tufty <tool> -h 可查看当前价格。

余额与充值

  • 提交任务时,服务端按预估冻结对应积分。
  • 积分不足时返回 insufficient_balancedetails.required 是这一步需要的积分,标准错误里同时给出充值地址。
  • 查看余额:账户设置 → 积分;选择套餐:价格

On this page