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

请求体

imageUrlstring必填
模特原图
格式:jpg、jpeg、png、webp大小:20M以内尺寸:最小:385×385,最大:8192×8192
imageSegUrlstring可选
模特抠图结果
sceneImgUrlstring与场景描述必填其一
场景图
1. 图片地址
2. 调用作图素材取地址(type=2预设场景 或 type=4场景素材)
建议使用场景素材,效果稳定
scenePromptstring与场景图必填其一
场景描述
sceneStrengthstring值越大越相似 取值范围 [0,1] 默认 0.7
场景相似度
genOriResboolean可选默认false
是否生成原分辨率图
false为默认尺寸
realModelboolean可选默认true
模特原图是否真人模特false为人台
outputNumnumber可选默认1
输出张数 取值范围:[1,4]

请求示例

JSON
{ 
    "imageUrl": "https://cdn.linkfox.com/ai-site/test/workbench/modelExample1.jpg",
    "sceneImgUrl": "https://cdn.linkfox.com/ai-site/test/workbench/modelBgExampleResult1.png",
    "outputNum": 4
}

提交后返回什么

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

查询生成结果

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

扣费标准

每张 20 点;选择原分辨率输出时每张 25 点。

创建上限

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