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/imageTextEditapplication/json

功能说明

根据遮罩图消除原图中指定区域的文字,返回消除文字后的结果图。
通常与 图层提取 接口配合使用:

  1. 调用 图层提取(imageLayerExtract) 获取文字遮罩图(removeTextMaskUrl)
  2. 将遮罩图传入本接口,自动消除原图中的文字

请求体

imageUrlstring必填
原图
格式:jpg、jpeg、png、webp大小:20M 以内
URL 中不能包含中文字符
imageMaskUrlstring必填
遮罩图 URL
白色区域为需要消除文字的区域
可使用图层提取接口返回的 removeTextMaskUrl

请求示例

JSON
{
  "imageUrl": "https://file-ai.linkfox.com/UPLOAD/MANAGE/example.jpg",
  "imageMaskUrl": "https://file-ai.linkfox.com/MAKE/xxx/mask.png"
}

提交后返回什么

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

查询生成结果

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

使用流程示例

完整两步文字消除流程:

第一步:图层提取

模板
POST /image/v2/make/imageLayerExtract
{
  "imageUrl": "https://file-ai.linkfox.com/UPLOAD/MANAGE/example.jpg"
}

轮询获取结果,得到:

JSON
{
  "status": 3,
  "resultList": [{
    "extendField": {
      "boxes": [...],
      "removeTextMaskUrl": "https://file-ai.linkfox.com/MAKE/xxx/mask.png"
    }
  }]
}

第二步:文字消除

模板
POST /image/v2/make/imageTextEdit
{
  "imageUrl": "https://file-ai.linkfox.com/UPLOAD/MANAGE/example.jpg",
  "imageMaskUrl": "https://file-ai.linkfox.com/MAKE/xxx/mask.png"
}

扣费标准

每张 10 点。

创建上限

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