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

请求体

imageUrlstring必填
商品原图
格式:jpg、jpeg、png、webp大小:20M以内尺寸:384×384_~8192×8192
sourceImageUrlstring可选
原图的抠图结果
targetOriginUrlstring必填
替换的目标原图
targetImageUrlstring可选
替换的目标原图抠图结果
denoiseStrengthstring可选默认0.5
生成图变化程度 越大越高 浮点数 可选范围 [0,1]
imageOutputWidthnumber可选
输出尺寸 宽度 最长边不能超过4096,最短边不能低于32
imageOutputHeightnumber可选
输出尺寸 高度 最长边不能超过4096,最短边不能低于32 不传输出尺寸或只传了一个宽或者高时,生成图片的尺寸与原图尺寸一致
outputNumnumber可选默认1
输出张数 取值范围:[1,4]

请求示例

JSON
{
  "imageUrl":"https://linkfoxai-ailab.oss-cn-shenzhen.aliyuncs.com/UPLOAD/1701144666432344064/2024/11/18/96a7a42fc965491dbc625d2db09f2478.png",
  "targetOriginUrl":"https://linkfoxai-ailab.oss-cn-shenzhen.aliyuncs.com/UPLOAD/1701144666432344064/2024/11/18/9778678b4724467485346248032387ec.png",
  "denoiseStrength":0.5,
  "outputNum":4
}
imageUrl ↓
imageUrl ↓
sourceImageUrl↓
 sourceImageUrl↓
targetImageUrl↓
targetImageUrl↓

提交后返回什么

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

查询生成结果

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

扣费标准

每张 20 点。

创建上限

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