Generate(图片生成-SD3.5-Medium)
POST
/sd/v2beta/stable-image/generate/sd3通过AI进行图片绘制V3.5,使用模型sd3.5
详细用法请参考官方文档:https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post
价格:0.1PTC/次
请求参数
Header Params
Accept
string
required
Example:
image/*
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
prompt
string
required
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.
Example:
a dog
aspect_ratio
string
optional
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.
Example:
1:1
mode
string
optional
text-to-image or image-to-image
Example:
text-to-image
negative_prompt
string
optional
A blurb of text describing what you do not wish to see in the output image.
model
string
optional
sd3.5-medium
Example:
sd3.5-medium
seed
number
optional
A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass 0 to use a random seed.)
Example:
0
output_format
string
optional
jpeg or png
Example:
png
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 16 天前