Img Open
  1. 绘图工具
Img Open
  • CV任务状态码信息附录
  • 绘图信息
    • sd 文生图-v2
      POST
    • sd 文生图-v3
      POST
    • sd 图生图-v2
      POST
    • sd 图生图-v3
      POST
    • sd 局部重绘-v1
      POST
    • sd controlnet 生图
      POST
    • 查询模型列表
      POST
    • 查询lora列表
      POST
    • 查询vae列表
      POST
    • 查询Embedding列表
      POST
  • 绘图任务
    • 查询归档任务详情
    • 查询任务实时状态 (百分比/进度条/中间图)
    • 绘图工具任务查询
  • 模型训练
    • 提交训练任务
    • 训练结果回调
  • 绘图工具
    • Flux文生图
      POST
    • 个性化写真
      POST
    • 高级换脸
      POST
    • 超级换脸 faceFusion
      POST
    • 面部检测(脸部提取) faceDetection
      POST
    • 换发型
      POST
    • 提示词扩写
      POST
    • sd prompts优化
      POST
    • 提示词扩写优化
      POST
    • 图转文
      POST
    • 超分辨
      POST
    • 换脸 roop
      POST
    • 面部修复
      POST
    • 智能擦除
      POST
    • 风格识别
      POST
    • 图片外扩
      POST
    • CNT预览
      POST
    • 背景去除
      POST
    • 图片扩大
      POST
    • 给图片加水印
      POST
    • 图片去水印
      POST
    • 图生视频
      POST
  • 图片检测
    • 异步图片检测
  • 视频工具
    • 视频加水印
    • 移除视频背景
    • 视频比例调整
    • 扩大视频图像
    • 视频补帧
    • 视频格式转换
  • 音频工具
    • 人声分离
    • 文生音乐
    • 文字配音
    • 生成歌词
  • 翻译
    • 翻译
  1. 绘图工具

图片外扩

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 
采样步数
可选
取值范围[0, 50]
sampler
string 
采样器
可选
imageCount
integer 
生成图片数目
必需
promptGuideFactor
integer 
提示词引导系数
可选
取值范围(1, 45], 默认值12
seed
integer 
随机种子
可选
取值范围[-1, 2147483647]
verticalExpansionRatio
number 
垂直扩展倍数
必需
取值范围[1, 4]
horizontalExpansionRatio
number 
水平扩展倍数
必需
取值范围[1, 4]
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
上一页
风格识别
下一页
CNT预览
Built with