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

请求体

素材的格式、大小、尺寸和比例为业务使用要求,部分在任务执行或上游调用阶段检查;创建成功不代表已通过全部素材校验。上传限制与具体业务素材要求分别适用。

imageUrlstring必填
原图
格式:jpg、jpeg、png、webp尺寸:300×300~4096×4096宽高比:0.4-2.5之间
promptstring必填
提示词,建议控制在 600 字符以内;当前服务端保留前 3000 字符,不在 600 字符处拒绝或截断;这不代表上游支持超长提示词。
maskUrlstring必填
重绘区域图 黑白图 白色为重绘区域
outputNumnumber可选默认1
输出张数 取值范围:[1,4]

请求示例

JSON
{
  "imageUrl": "https://test-file-ai.linkfox.com/UPLOAD/1813045735365488640/2025/03/27/0dffad8a6b3a4af1b557bf9f9480ef26.webp",
  "prompt": "变成手表",
  "maskUrl": "https://linkfoxai-ailab.oss-cn-shenzhen.aliyuncs.com/UPLOAD/1813045735365488640/2025/03/27/5d5963f27a894cf9bbe8dae3924a6269.jpg",
  "outputNum": 2
}

提交后返回什么

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

查询生成结果

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

扣费标准

每张 20 点。

创建上限

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