- 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
Prompt expansion
POST
/AIGCImgOpenServ/saas/tool/prompts/expand
Request
Header Params
X-Request-req-accessKeyId
string
required
X-Request-req-accessKeySecret
string
required
Body Params application/json
businessTaskId
string
required
mode
integer
required
sourcePrompt
string
required
topK
integer
optional
topP
number
optional
temperature
number
optional
repetitionPenalty
number
optional
maxTokens
integer
optional
minTokens
integer
optional
sequencesNum
integer
optional
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
code
string
required
msg
string
required
data
object
optional
status
integer
required
prompts
array[string]
required
taskId
string
required
toolTask
string
required
businessTaskId
string
required
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