Generate(图片生成-SD3)
POST
/sd/v2beta/stable-image/generate/sd3通过AI进行图片绘制V3,使用模型sd3
详细用法请参考官方文档:https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post
价格:0.1PTC/次
请求参数
Header 参数
Content-Type
string
必需
示例值:
multipart/form-data
Accept
string
必需
示例值:
image/*
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
prompt
string
必需
What you wish to see in the output image. A strong, descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.
示例值:
a dog
aspect_ratio
string
可选
Default: 1:1 Enum: 16:9 1:1 21:9 2:3 3:2 4:5 5:4 9:16 9:21 The aspect ratio of the generated image.
示例值:
1:1
mode
string
可选
text-to-image or image-to-image
示例值:
text-to-image
negative_prompt
string
可选
A blurb of text describing what you do not wish to see in the output image.
model
string
可选
sd3 or sd3-turbo
示例值:
sd3
seed
number
可选
A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass 0 to use a random seed.)
示例值:
0
output_format
string
可选
jpeg or png
示例值:
png
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 16 天前