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

Prompt expansion

POST
/AIGCImgOpenServ/saas/tool/prompts/expand
This interface supports prompt word expansion, and the underlying algorithm supports SD and SDXL

Request

Header Params

Body Params application/json

Example
{
    "mode": 0,
    "sourcePrompt": "a girl",
    "businessTaskId": "1008699601"
}

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/prompts/expand' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "mode": 0,
    "sourcePrompt": "a girl",
    "businessTaskId": "1008699601"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "code": "200",
    "msg": "success",
    "data": {
        "status": 0,
        "prompts": [
            "masterpiece, (photorealistic:1.4), best quality, beautiful lighting, 1 girl, solo, highly detailed face, detailed eyes, delicate features, looking at viewer, ultra-detailed, UHD, HDR"
        ],
        "taskId": "pre1715773856999364951840",
        "toolTask": "sd_prompts"
    }
}
Modified at 2024-08-29 10:05:25
Previous
Face Detection
Next
Hairstyle changer
Built with