- CV任务状态码信息附录
- 绘图信息
- 绘图任务
- 模型训练
- 绘图工具
- 图片检测
- 视频工具
- 音频工具
- 翻译
CNT预览
POST
/AIGCImgOpenServ/saas/tool/cnt/preview
请求参数
Header 参数
X-Request-req-accessKeyId
string
可选
X-Request-req-accessKeySecret
string
可选
Body 参数application/json
businessTaskId
string
业务任务ID
sourceImage
string
原始图片
preprocessor
string
预处理器
callbackUrl
string
回调地址
示例
{
"businessTaskId": "B-0001",
"preprocessor": "canny",
"sourceImage": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/test_image.PNG",
"callbackUrl": "https://ic-pre.un.com/AIGCImgComServ/drawing/task/callback/tool/v1"
}
示例代码
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/cnt/preview' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
"businessTaskId": "B-0001",
"preprocessor": "canny",
"sourceImage": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/test_image.PNG",
"callbackUrl": "https://ic-pre.un.com/AIGCImgComServ/drawing/task/callback/tool/v1"
}'
返回响应
🟢200成功
application/json
Body
code
string
响应码
msg
string
响应码描述
data
object
必需
task_id
string
任务ID
示例
{
"code": "96",
"msg": "laborum",
"data": {
"task_id": "75"
}
}