- CV任务状态码信息附录
- 绘图信息
- 绘图任务
- 模型训练
- 绘图工具
- 图片检测
- 视频工具
- 音频工具
- 翻译
Flux文生图
POST
/AIGCImgOpenServ/saas/tool/comfyui/text2image
请求参数
Header 参数
X-Request-req-accessKeyId
string
必需
X-Request-req-accessKeySecret
string
必需
Body 参数application/json
businessTaskId
string
必需
comfyTaskType
string
具体执行何种工作流
prompt
string
必需
width
integer
可选
height
integer
可选
steps
integer
可选
fluxGuidance
number
可选
callbackUrl
string
必需
示例
{
"businessTaskId": "11",
"comfyTaskType": "Flux1SchnellFP8",
"prompt": "blue sea, light yellow moon",
"width": 512,
"height": 512,
"steps": 4
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/comfyui/text2image' \
--header 'X-Request-req-accessKeyId;' \
--header '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
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
taskId
string
必需
status
integer
必需
outputImageUrl
string
必需
示例
{
"code": "200",
"msg": "success",
"data": {
"taskId": "11895411",
"status": 1,
"outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/codeformer/pro1704677500319557818419.png"
}
}
修改于 2024-10-17 03:46:45