You're looking at a specific version of this model. Jump to the model overview.
Input schema
The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
生成图像的提示文本
|
|
aspect_ratio |
string
(enum)
|
1:1
Options: 1:1, 16:9, 9:16, 4:3, 3:4, 2:1, 1:2 |
生成图像的宽高比
|
image |
string
|
图生图模式的输入图像。输出图像将匹配此图像的宽高比
|
|
prompt_strength |
number
|
0.8
Max: 1 |
图生图模式中提示的强度。1.0表示完全忽略原图信息
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
生成图像的数量
|
num_inference_steps |
integer
|
28
Min: 1 Max: 50 |
去噪步数。推荐范围是28-50,步数越少质量越低但速度越快
|
guidance |
number
|
3.5
Max: 10 |
生成图像的引导系数
|
seed |
integer
|
随机种子。设置后可重现生成结果
|
|
output_format |
string
(enum)
|
png
Options: png, jpg, jpeg, webp |
输出图像的格式
|
output_quality |
integer
|
80
Max: 100 |
保存输出图像的质量,范围0到100。100为最佳质量,0为最低质量。对PNG输出无效
|
disable_safety_checker |
boolean
|
False
|
禁用生成图像的安全检查器
|
go_fast |
boolean
|
True
|
使用针对速度优化的模型(当前为fp8量化)运行更快的预测;禁用以使用原始bf16
|
megapixels |
string
(enum)
|
1
Options: 0.5, 1, 1.5, 2, 2.5, 3 |
生成图像的近似兆像素数
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'items': {}, 'title': 'Output', 'type': 'array'}