图片历史(新版)
请求URL:
/newImageHistory
请求方式:
- POST
header:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| Authorization | 是 | string | 授权token |
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| page | 否 | uint | 页码 |
| pageSize | 否 | uint | 展示数 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 819,
"taskId": 918,
"styleId": 0,
"promptId": "3f0638b3552345c5935b8cb585121c80",
"covering": "https://muyuhan.s3.amazonaws.com/facewap/images/image-20251226074631-647153.jpeg",
"origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1766737854627135000_ZUtE7RqK.png",
"reason": "",
"state": 30,
"createdAt": 1766737858,
"imageTemp": null
},
{
"id": 818,
"taskId": 917,
"styleId": 46,
"promptId": "e8075a4e71ba4a778f7ca68f716bb30d",
"covering": "https://i.postimg.cc/Z5g6nvcv/e2b9464e3df42a2f65781ace66495d90.png",
"origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1766399301774259000_zovZENaF.png",
"reason": "",
"state": 30,
"createdAt": 1766399305,
"imageTemp": {
"id": 46,
"title": "Yoga Active",
"description": "Try on any outfit instantly!",
"covering": {
"before": "https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Base.webp",
"after": "https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Yoga+Active.webp"
},
"prompt": "The person in the first image, is in the exact outfit from the second image.",
"images": [
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Baseball+Jersey.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Black+Corset.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Black+Corset.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Cowl+Dress.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Crop+Tee.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Leather+Ensemble.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Leopard+Print.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Off+Shoulder.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Purple+Ruffled.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Sequined+Minidress.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Snakeskin+Set.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Tennis+Casual.webp",
"https://muyuhan.s3.amazonaws.com/facewap/img_temp/swap/insta/Insta+Fit_Yoga+Active.webp"
],
"apiType": 2,
"price": 50,
"isShow": 1,
"isAudit": 0,
"sort": 0,
"updatedAt": 1769989297
}
},
{
"id": 355,
"taskId": 443,
"styleId": 1,
"promptId": "583d01b685b64d2bb875ed53023f48d3",
"covering": "https://muyuhan.s3.amazonaws.com/facewap/images/image-20251015015736-611274.jpeg",
"origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1760493610915468000_7htfHxZg.jpeg",
"reason": "",
"state": 30,
"createdAt": 1760493615,
"imageTemp": {
"id": 1,
"title": "Shirtless Plumber I",
"description": "Hey honey, the plumber came to fix the sink...",
"covering": {
"before": "https://muyuhan.s3.amazonaws.com/facewap/img_temp/prank/Shirtless+Plumber+I_Base.webp",
"after": "https://muyuhan.s3.amazonaws.com/facewap/img_temp/prank/Shirtless+Plumber+I_Gen.webp"
},
"prompt": "Add a realistic adult male plumber checking out the sink in the bathroom. He is shirtless, wearing blue plumber work pants with a tool belt and holding a metal wrench. He is model-like handsome, well-built, with a natural athletic physique and an attractive but believable face. Style the image as an unedited iPhone photo with natural indoor lighting, slight noise, and casual framing. Match the lighting, shadows, perspective, and camera angle of the original bathroom photo so he appears naturally present and integrated into the scene.",
"images": null,
"apiType": 1,
"price": 50,
"isShow": 1,
"isAudit": 0,
"sort": 0,
"updatedAt": 1766959098
}
},
{
"id": 338,
"taskId": 423,
"styleId": 1,
"promptId": "6576f0d3afe54a2a9dbd0cd4a4353baa",
"covering": "https://d1q70pf5vjeyhc.cloudfront.net/media/846ac6b81ac445e08e208f186b93f31b/images/1760320124167858313_SU2YVRNK.jpg",
"origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1760430630884592000_lURTRhZa.jpeg",
"reason": "",
"state": 30,
"createdAt": 1760430636,
"imageTemp": {
"id": 1,
"title": "Shirtless Plumber I",
"description": "Hey honey, the plumber came to fix the sink...",
"covering": {
"before": "https://muyuhan.s3.amazonaws.com/facewap/img_temp/prank/Shirtless+Plumber+I_Base.webp",
"after": "https://muyuhan.s3.amazonaws.com/facewap/img_temp/prank/Shirtless+Plumber+I_Gen.webp"
},
"prompt": "Add a realistic adult male plumber checking out the sink in the bathroom. He is shirtless, wearing blue plumber work pants with a tool belt and holding a metal wrench. He is model-like handsome, well-built, with a natural athletic physique and an attractive but believable face. Style the image as an unedited iPhone photo with natural indoor lighting, slight noise, and casual framing. Match the lighting, shadows, perspective, and camera angle of the original bathroom photo so he appears naturally present and integrated into the scene.",
"images": null,
"apiType": 1,
"price": 50,
"isShow": 1,
"isAudit": 0,
"sort": 0,
"updatedAt": 1766959098
}
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | array | 数据 |
| - id | uint | 图片ID |
| - taskId | uint | 任务主键ID |
| - promptId | string | 任务ID |
| - covering | string | 封面图 |
| - origin | string | 原图地址 |
| - reason | string | 失败原因 |
| - state | uint8 | 任务状态:2-失败;10-等待生成;20-生成中;30-生成成功 |
| - createdAt | int64 | 生成时间 |
| - imageTemp | struct | 图片模版 |
| -- id | uint | 模版ID |
| -- title | string | 模版名称 |
| -- covering | map | 模版封面 |
| -- images | array | 模版背景 |
| -- prompt | string | 模版提示词 |
| -- author | string | 模版作者 |
| -- favoriteCount | int | 模版点赞数 |
备注 错误码: 510 系统异常 800 参数错误