LinkfoxAI agent and documentation index

Fetch the complete documentation index at: /llms.txt

Read when and how to use LinkfoxAI at: /agent-instructions.txt

Machine-readable API description: LinkfoxAI OpenAPI specification

Use this file to discover all available pages before exploring further.

LinkfoxAI logo
开始使用
API对接文档

自动抠图

POST/image/v2/make/cutoutapplication/json

请求体

imageUrlstring必填
原图
格式:jpg、jpeg、png、webp大小:≤20 MB尺寸:385×385~8192×8192
subTypeinteger必填
抠图类型
可选值1 通用 · 2 人像 · 3 商品 · 9 服饰 · 12 头发 · 13 人脸
clothClassstring可选
服饰抠图分类
仅 subType=9 时生效;多个分类用英文逗号分隔,结果会合并。
可选值tops 上衣 · coat 外套 · skirt 裙装 · pants 裤装 · bag 包类 · shoes 鞋子 · hat 帽子

请求示例

普通抠图

JSON
{
  "imageUrl":"https://linkfoxai-ailab.oss-cn-shenzhen.aliyuncs.com/UPLOAD/1701144666432344064/2024/11/13/bec32c4461644befb202f86b23502583.png",
  "subType": 1
}

服饰抠图带服饰分类

JSON
{
  "imageUrl":"https://test-file-ai.linkfox.com/UPLOAD/MANAGE/CASE/FITTING_ROOM_V2/1807600002531631104/main_result_4819dd7923554550b7e50f0dd6568184.png",
  "subType": 9,
  "clothClass": "tops"
}

提交后返回什么

提交成功后返回任务编号 data.id,表示任务已创建,结果还需等待生成。请保存编号。查看返回示例。

查询生成结果

用任务编号 data.id 调用获取作图结果,每次查询至少间隔 10 秒。data.status=3 表示成功;若生成了图片或视频,从 data.resultList[].url 获取地址。data.status=4 表示失败。查看统一示例。

扣费标准

每张 10 点。

创建上限

配置项上限
创建中 / 生成中任务上限100 个