- 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
Flux text2image
POST
/AIGCImgOpenServ/saas/tool/comfyui/text2image
Request
Query Params
X-Request-req-accessKeyId
string
optional
X-Request-req-accessKeySecret
string
optional
Body Params application/json
businessTaskId
string
required
comfyTaskType
string
required
prompt
string
required
width
integer
optional
height
integer
optional
steps
integer
optional
fluxGuidance
number
optional
callbackUrl
string
optional
Example
{
"businessTaskId": "11",
"comfyTaskType": "Flux1SchnellFP8",
"prompt": "blue sea, light yellow moon",
"width": 512,
"height": 512,
"steps": 4
}
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/comfyui/text2image?X-Request-req-accessKeyId&X-Request-req-accessKeySecret' \
--header 'Content-Type: application/json' \
--data-raw '{
"businessTaskId": "11",
"comfyTaskType": "Flux1SchnellFP8",
"prompt": "blue sea, light yellow moon",
"width": 512,
"height": 512,
"steps": 4
}'
Responses
🟢200成功
application/json
Body
code
string
required
msg
string
required
data
object
required
taskId
string
required
status
integer
required
outputImageUrl
string
required
Example
{
"code": "200",
"msg": "success",
"data": {
"taskId": "11895411",
"status": 1,
"outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/codeformer/pro1704677500319557818419.png"
}
}
Modified at 2024-10-21 06:26:50