SDXL-Lightning-V3(快速图片生成V3)
POST
/302/submit/sdxl-lightning-v3302.AI的API,来自于我们在云GPU上自己部署的模型。部分模型为开源模型,部分模型为我们自己微调或开发的。
用于快速图片生成,来自于:https://huggingface.co/ByteDance/SDXL-Lightning
平均运行时长1-3s
价格:0.005 PTC/次
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
image_size
string
必需
1024x1024 1024x2048 1536x1024 1536x2048 2048x1152 1152x2048
batch_size
integer
必需
1 to 4 Defaults to 1
num_inference_steps
integer
必需
1 to 4 Defaults to 4
guidance_scale
integer
必需
0 to 2 Defaults to 1
negative_prompt
string
可选
seed
integer
可选
0 to 9999999999
示例
{
"prompt": "a dog",
"image_size": "1024x1024",
"batch_size": 1,
"num_inference_steps": 4,
"guidance_scale": 1
}
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
修改于 2 个月前