- CV任务状态码信息附录
- 绘图信息
- 绘图任务
- 模型训练
- 绘图工具
- 图片检测
- 视频工具
- 音频工具
- 翻译
图片外扩
POST
/AIGCImgOpenServ/saas/tool/imgExpand
请求参数
Header 参数
X-Request-req-accessKeyId
string
必需
X-Request-req-accessKeySecret
string
必需
Body 参数application/json
businessTaskId
string
业务任务ID
sourceImage
string
原始图片
prompt
string
提示词
negativePrompt
string
负向提示词
sampleStep
integer
采样步数
sampler
string
采样器
imageCount
integer
生成图片数目
promptGuideFactor
integer
提示词引导系数
seed
integer
随机种子
verticalExpansionRatio
number
垂直扩展倍数
horizontalExpansionRatio
number
水平扩展倍数
callbackUrl
string
回调地址
示例
{
"verticalExpansionRatio": 1.5,
"horizontalExpansionRatio": 1.75,
"imageCount": 2,
"sourceImage": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/test_image.PNG",
"businessTaskId": "100869960120240609",
"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/imgExpand' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
"verticalExpansionRatio": 1.5,
"horizontalExpansionRatio": 1.75,
"imageCount": 2,
"sourceImage": "https://aigcoss.zhiqiteai.cn/Output-Img2/bbbb/test_image.PNG",
"businessTaskId": "100869960120240609",
"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
saas服务任务ID
示例
{
"code": "80",
"msg": "et tempor nulla",
"data": {
"task_id": "64"
}
}
修改于 2024-12-30 04:30:44