- AI image generation
- task query
- train model
- image tool
- Flux text2imagePOST
- Single Face Swap V1.0POST
- Single Face Swap V2.0POST
- instantIDPOST
- Face restorationPOST
- Super ResolutionPOST
- image descriptionPOST
- Multiple Face SwapPOST
- Face DetectionPOST
- Prompt expansionPOST
- Hairstyle changerPOST
- Object RemovalPOST
- Style recognitionPOST
- OutpaintingPOST
- CNT previewPOST
- background removePOST
- image enlargePOST
- image watermarkPOST
instantID
POST
/AIGCImgOpenServ/saas/tool/instantID
Request
Header Params
X-Request-req-accessKeyId
string
optional
X-Request-req-accessKeySecret
string
optional
Body Params application/json
businessTaskId
string
required
image
string
required
prompt
string
required
height
integer
optional
width
integer
optional
negativePrompt
string
optional
steps
integer
optional
guidanceScale
integer
optional
seed
integer
optional
callbackUrl
string
optional
Example
{
"businessTaskId": "10086111",
"image": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png",
"prompt": "Cute ceramic doll",
"height": 960,
"width": 960,
"negativePrompt": "1",
"steps": 1,
"guidanceScale": 1,
"seed": 1
}
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/instantID' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
"businessTaskId": "10086111",
"image": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png",
"prompt": "Cute ceramic doll",
"height": 960,
"width": 960,
"negativePrompt": "1",
"steps": 1,
"guidanceScale": 1.0,
"seed": 1
}'
Responses
🟢200成功
application/json
Body
code
string
required
msg
string
required
data
object
required
taskId
string
required
businessTaskId
string
required
status
integer
required
outputImageUrl
string
required
errCode
integer
required
Example
{
"code": "200",
"data": {
"businessTaskId": "555299995",
"outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/tool/roopV2/pro1707112101440360871154.png",
"status": 2,
"taskId": "pro1707112101440360871154"
},
"msg": "success"
}
Modified at 2024-08-30 03:42:56