Img Open English
  1. image tool
Img Open English
  • AI image generation
    • sd text2image
      POST
    • sd Image to Image
      POST
    • sd controlnet
      POST
    • QueryModelList
      POST
    • QueryLoralList
      POST
    • QueryVaeList
      POST
    • queryEmbeddingList
      POST
  • task query
    • queryTaskInfoV1.0
      POST
    • queryTaskInfoV2.0
      POST
    • queryImageToolTaskInfo
      POST
  • train model
    • Submit training task
    • Training result query
  • image tool
    • Flux text2image
      POST
    • Single Face Swap V1.0
      POST
    • Single Face Swap V2.0
      POST
    • instantID
      POST
    • Face restoration
      POST
    • Super Resolution
      POST
    • image description
      POST
    • Multiple Face Swap
      POST
    • Face Detection
      POST
    • Prompt expansion
      POST
    • Hairstyle changer
      POST
    • Object Removal
      POST
    • Style recognition
      POST
    • Outpainting
      POST
    • CNT preview
      POST
    • background remove
      POST
    • image enlarge
      POST
    • image watermark
      POST
  1. image tool

Face restoration

POST
/AIGCImgOpenServ/saas/tool/codeformer
codeformer repairs the face in the incoming picture; the anti-parameter is the asynchronous interface response~

Request

Header Params
X-Request-req-accessKeyId
string 
optional
X-Request-req-accessKeySecret
string 
optional
Body Params application/json
task_id
string 
required
Task ID
image_url
string 
required
Enter the image url address with facial information
fidelity_weight
number 
optional
The default value is 0.5, the value range is [0, 1], used to balance the quality and fidelity of the generated images
Example
{
    "task_id": "string",
    "image_url": "string",
    "fidelity_weight": 0
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/codeformer' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "task_id": "string",
    "image_url": "string",
    "fidelity_weight": 0
}'

Responses

🟢200OK
application/json
Body
code
string 
required
msg
string 
required
data
object 
required
taskId
string 
required
Task ID
toolTask
string 
required
codeformer
status
integer 
required
1: Success 2: Failure
outputImageUrl
string 
required
Example
{
    "code": "200",
    "msg": "success",
    "data": {
        "taskId": "11895411",
        "toolTask": "codeformer",
        "status": 1,
        "outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/codeformer/pro1704677500319557818419.png"
    }
}
Modified at 2024-08-09 00:54:19
Previous
instantID
Next
Super Resolution
Built with