1. 基于LoRA生图V2
AI职业照
  • 快速生图V1
    • 快速单图生成职业照(含节日风格照)
      POST
    • 查询任务状态及生图结果
      GET
  • 基于LoRA生图V2
    • 获取生图的配置
      GET
    • 检测图片是否符合职业照原图要求
      POST
    • 基于V2服务生成职业照
      POST
    • 获取用户的全部任务及结果(任务中心)
      GET
    • 查询指定task状态及结果「备用」
      GET
    • 生图成功通知
      POST
  • 通用文件上传CND接口
    • 获取s3文件预上传url(前端直传)
      POST
    • 上传图片至CDN
      POST
  • 用户
    • 获取用户的v2权益列表
      GET
  • 管理后台
    • 获取当前任务列表
      GET
    • 当前登录用户是否有管理员权限
      GET
  • 礼品卡
    • 获取当前用户礼品卡相关信息
      GET
    • 提交feedback
      POST
    • 赠送(重新赠送)礼品卡
      POST
    • 查询指定礼品卡
      GET
    • 兑换指定礼品卡
      POST
  • 数据模型
    • Task
    • Config
  1. 基于LoRA生图V2

基于V2服务生成职业照

开发中
正式环境
https://api.wps.com/bff
正式环境
https://api.wps.com/bff
POST
https://api.wps.com/bff
/ai-professional-photo/v2/task
基于LoRa的异步方案.
请按照要求组装参数,注意单选和多选

请求参数

Header 参数

Cookie 参数

Body 参数application/json

示例
{
    "personal_info": {
        "gender": "male",
        "age": "adolescence",
        "ethnicity": "african",
        "body": "ectomorph",
        "glasses": "none",
        "eye_color": "string",
        "height": "string"
    },
    "styles": {
        "style": [
            "office",
            "cafe"
        ],
        "clothing": [
            "fitted_black_turtleneck",
            "dark_gray_patterned_blazer"
        ]
    },
    "photos": [
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/30806507",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565"
    ],
    "user": {
        "name": "礼超栋",
        "email": "unco0205@gmail.com"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wps.com/bff/ai-professional-photo/v2/task' \
--header 'Origin: https://headshot.wps.ai' \
--header 'Cookie: wps_sid={{wps_sid}};wps_sid={{wps_sid}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "personal_info": {
        "gender": "male",
        "age": "adolescence",
        "ethnicity": "african",
        "body": "ectomorph",
        "glasses": "none",
        "eye_color": "string",
        "height": "string"
    },
    "styles": {
        "style": [
            "office",
            "cafe"
        ],
        "clothing": [
            "fitted_black_turtleneck",
            "dark_gray_patterned_blazer"
        ]
    },
    "photos": [
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/30806507",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565",
        "https://avatars.githubusercontent.com/u/76745565"
    ],
    "user": {
        "name": "礼超栋",
        "email": "unco0205@gmail.com"
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "message": "ok",
    "data": {
        "task_id": "f21d165d-114b-441d-88f7-3e703f382ab6"
    }
}
修改于 2025-01-08 07:47:18
上一页
检测图片是否符合职业照原图要求
下一页
获取用户的全部任务及结果(任务中心)
Built with