SDXL-Lora(图片生成-Lora)
POST
/302/submit/sdxl-lora302.AI的API,来自于我们在云GPU上自己部署的模型。部分模型为开源模型,部分模型为我们自己微调或开发的。
用于图片生成,来自于:用于图片生成,来自于:https://github.com/Stability-AI/generative-models
平均运行时长5-10s
价格:0.01 PTC/次
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
negative_prompt
string
必需
num_inference_steps
integer
必需
guidance_scale
number
必需
loras
array [object {3}]
必需
path
string
可选
scale
number
可选
force
boolean
可选
embeddings
array [object {1}]
必需
path
string
可选
format
string
必需
jpeg or png
示例
{
"prompt": "photo of a rhino dressed suit and tie sitting at a table in a bar with a bar stools, award winning photography, Elke vogelsang",
"negative_prompt": "cartoon, illustration, animation. face. male, female",
"num_inference_steps": 25,
"guidance_scale": 7.5,
"loras": [
{
"path": "https://xxx",
"scale": 0.9,
"force": true
}
],
"embeddings": [
{
"path": "https://xxx"
}
],
"format": "jpeg"
}
示例代码
返回响应
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 个月前