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

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
Original image address information
prompt
string 
optional
negativePrompt
string 
optional
sampleStep
integer 
optional
Value range [0, 50]
sampler
string 
optional
imageCount
integer 
Number of pictures generated
required
promptGuideFactor
integer 
Prompt word guidance coefficient
optional
Value range[1, 45]
seed
integer 
optional
Value range [-1, 2147483647]
verticalExpansionRatio
number 
Vertical expansion multiple
required
Value range [1, 4]
horizontalExpansionRatio
number 
Horizontal expansion multiple
required
Value range [1, 4]
callbackUrl
string 
callback address
required
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
required
msg
string 
Status code information
required
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
Previous
Style recognition
Next
CNT preview
Built with