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

请求体

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

imageUrlstring必填
原图
格式:jpg、jpeg、png、webp尺寸:300×300~4096×4096宽高比:0.4-2.5之间
promptstring可选
提示词,最多 100 个字符,超过时拒绝创建。
widthnumber必填
期望扩图后宽度
heightnumber必填
期望扩图后高度
outputNumnumber可选默认1
输出张数 取值范围:[1,4]

请求示例

JSON
{
  "imageUrl": "https://linkfoxai-ailab.oss-cn-shenzhen.aliyuncs.com/UPLOAD/1840234601622503424/2025/02/14/802b2053dcee43cc9a3981f4f120ba43.png",
  "width": 1024,
  "height": 1024,
  "outputNum": 2
}

提交后返回什么

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

查询生成结果

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

扣费标准

每张 20 点。

创建上限

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