- CV任务状态码信息附录
- 绘图信息
- 绘图任务
- 模型训练
- 绘图工具
- 图片检测
- 视频工具
- 音频工具
- 翻译
sd 文生图-v3
开发中
POST
/AIGCImgOpenServ/saas/sd/v3/text2Image
请求参数
Header 参数
X-Request-req-accessKeyId
string
接口认证ID
示例值:
openapi-ab0ve5ma5y0w0000
X-Request-req-accessKeySecret
string
接口认证密钥
示例值:
om6qr46e9pxq2z5goxp2xyj92ma10086
Body 参数application/json
prompt
string
正向提示词
<= 2000 字符
negativePrompt
string
负向提示词
iterationCount
integer
迭代次数
默认值:
1
singleBatchImageCount
integer
单次迭代图片生成数量
默认值:
1
steps
integer
采样步数
默认值:
20
seed
string
随机种子
默认值:
-1
subSeed
string
附加随机种子
subSeedStrength
number
附加随机种子交换强度
>= 0<= 1
默认值:
0
initialNoiseHeight
integer
初始噪声高度
>= 128<= 2048
默认值:
-1
initialNoiseWeight
integer
初始噪声宽度
>= 128<= 2048
restoreFaces
boolean
是否支持脸部修复
默认值:
false
enableHighDefinitionRepair
boolean
高清修复
默认值:
false
tilling
boolean
是否支持图片平铺
默认值:
false
width
integer
目标图尺寸宽度
>= 128<= 1024
默认值:
512
height
integer
目标图尺寸高度
>= 128<= 1024
默认值:
512
promptGuidanceFactor
number
提示词引导因子
>= 1<= 30
默认值:
7
samplerName
string
采样器名称
默认值:
None
samplerIndex
string
采样算法
默认值:
Euler a
deNoisingStrength
number
重绘幅度
>= 0<= 1
styles
array[string]
可选
scriptName
string
脚本名
scriptArgs
object
脚本参数
callbackUrl
string
回调地址
firstPhaseWidth
integer
一阶段目标图片宽度
>= 128<= 1024
默认值:
0
firstPhaseHeight
integer
一阶段目标图片高度
>= 128<= 1024
默认值:
0
highDefinitionRepairScale
number
高清修复倍数
>= 1<= 4
highDefinitionRepairEnlarger
string
高清修复放大器
默认值:
None
highDefinitionRepairPostSteps
integer
高清修复操作的迭代步数
>= 0<= 50
默认值:
0
highDefinitionRepairImageWidth
integer
高清修复目标图宽度
>= 128<= 2048
默认值:
0
highDefinitionRepairImageHeight
integer
高清修复目标图高度
>= 128<= 2048
默认 值:
0
highDefinitionRepairSamplerName
string
高清修复采样器名称
highDefinitionRepairPrompt
string
高清修复正向提示词
highDefinitionRepairNegativePrompt
string
高清修复负向提示词
saasDrawingExternalBaseParameterBO
object
各类脚本及设置参数
baseModelCode
string
SD基础模型编码
vaeName
string
VAE模型名称
businessTaskId
string
业务方自定义任务ID
targetImageFormat
string
输出图片格式
saasDrawingOverrideSettingParameterBO
object