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 Params
Authorization
string
required
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
image_size
string
required
1024x1024 1024x2048 1536x1024 1536x2048 2048x1152 1152x2048
batch_size
integer
required
1 to 4 Defaults to 1
num_inference_steps
integer
required
1 to 4 Defaults to 4
guidance_scale
integer
required
0 to 2 Defaults to 1
negative_prompt
string
optional
seed
integer
optional
0 to 9999999999
Example
{
"prompt": "a dog",
"image_size": "1024x1024",
"batch_size": 1,
"num_inference_steps": 4,
"guidance_scale": 1
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 16 天前