SDXL-Lightning-V3
POST
/302/submit/sdxl-lightning-v3302.AI's API comes from models we deployed on cloud GPUs. Some models are open-source, while others are fine-tuned or developed by 302.AI.
Used for rapid image generation,average runtime 1-3s, project from: https://huggingface.co/ByteDance/SDXL-Lightning
Price: 0.005 PTC / call
请求参数
Header Params
Authorization
string
required
API Key for 302.AI backend
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: 2 个月前