SD3(图片生成-SD3)
POST
/302/submit/stable-diffusion-3302.AI的API,来自于我们在云GPU上自己部署的模型。部分模型为开源模型,部分模型为我们自己微调或开发的。
用于图片生成,来自于:https://huggingface.co/stabilityai/stable-diffusion-3-medium-tensorrt
平均运行时长5-10s
价格:0.05 PTC/次
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
prompt
string
必需
示例值:
a dog
negative_prompt
string
可选
aspect_ratio
string
可选
示例值:
3:2
image
file
可选
The image to use as the starting point for the generation.
output_format
string
可选
示例值:
png
seed
integer
必须>0
示例值:
1234
prompt_strength
string
可选
Sometimes referred to as denoising, this parameter controls how much influence the image parameter has on the generated image. A value of 0 would yield an image that is identical to the input. A value of 1 would be as if you passed in no image at all.
示例值:
0.6
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
completed_at
string
必需
created_at
string
必需
error
string
必需
id
string
必需
model
string
必需
output
string
必需
started_at
string
必需
status
string
必需
示例
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
最后修改时间: 4 个月前