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

Flux text2image

POST
/AIGCImgOpenServ/saas/tool/comfyui/text2image
Flux model text2image

Request

Query Params

Body Params application/json

Example
{
    "businessTaskId": "11",
    "comfyTaskType": "Flux1SchnellFP8",
    "prompt": "blue sea, light yellow moon",
    "width": 512,
    "height": 512,
    "steps": 4
}

Request Code 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

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
Previous
Training result query
Next
Single Face Swap V1.0
Built with