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

功能说明

请求体

imageUrlstring必填
原图
格式:jpg、jpeg、png、webp大小:20M 以内
URL 中不能包含中文字符

请求示例

JSON
{
  "imageUrl": "https://file-ai.linkfox.com/UPLOAD/MANAGE/example.jpg"
}

提交后返回什么

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

查询生成结果

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

获取结果说明

任务完成后,通过获取作图结果接口中的 resultList[0].extendField 获取以下字段:

boxesarray
识别到的文字区域列表(JSON 数组)。每个元素包含 bbox 坐标(归一化到 1000×1000 空间)及 text 内容
removeTextMaskUrlstring
文字遮罩图 URL(白色区域为文字位置)。可直接传入文字编辑接口消除文字

extendField 示例

JSON
{
  "boxes": [
    {
      "bbox": [100, 200, 300, 250],
      "text": "示例文字"
    }
  ],
  "removeTextMaskUrl": "https://file-ai.linkfox.com/MAKE/xxx/mask.png"
}
若图片中未识别到文字,boxes 为空数组 [],removeTextMaskUrl 为空。

扣费标准

每张 10 点。

创建上限

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