- 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
Outpainting
POST
/AIGCImgOpenServ/saas/tool/imgExpand
Request
Header Params
X-Request-req-accessKeyId
string
required
X-Request-req-accessKeySecret
string
required
Body Params application/json
businessTaskId
string
required
sourceImage
string
required
prompt
string
optional
negativePrompt
string
optional
sampleStep
integer
optional
sampler
string
optional
imageCount
integer
Number of pictures generated
promptGuideFactor
integer
Prompt word guidance coefficient
seed
integer
optional
verticalExpansionRatio
number
Vertical expansion multiple
horizontalExpansionRatio
number
Horizontal expansion multiple
callbackUrl
string
callback address
Example
{
"verticalExpansionRatio": 1.5,
"horizontalExpansionRatio": 1.75,
"imageCount": 2,
"sourceImage": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/test_image.PNG",
"businessTaskId": "100869960120240609",
"callbackUrl": "https://ic-pre.un.com/AIGCImgComServ/drawing/task/callback/tool/v1"
}
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/imgExpand' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
"verticalExpansionRatio": 1.5,
"horizontalExpansionRatio": 1.75,
"imageCount": 2,
"sourceImage": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/test_image.PNG",
"businessTaskId": "100869960120240609",
"callbackUrl": "https://ic-pre.un.com/AIGCImgComServ/drawing/task/callback/tool/v1"
}'
Responses
🟢200OK
application/json
Body
code
string
status code
msg
string
Status code information
data
object
required
task_id
string
required
Example
{
"code": "80",
"msg": "et tempor nulla",
"data": {
"task_id": "64"
}
}
Modified at 2024-08-09 01:20:47