LoRA 多功能设备
开发环境
开发环境
POST
https://stablediffusionapi.com/api/v4/dreambooth
lora_model
,例如“more_details,cinnamon”。提示 **您可以在此处**找到可用的公共模型和 LoRA 模型及其 ID 的列表。
POST
向https://stablediffusionapi.com/api/v4/dreambooth端点发出请求,并在请求正文中传递所需的参数。多语言支持
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/v4/dreambooth' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "",
"model_id": "f222-diffusion",
"prompt": "a female model doing photoshoot, ultra realistic face, ultra high resolution, 4K image",
"negative_prompt": "painting, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, skinny, glitchy, double torso, extra arms, extra hands, mangled fingers, missing lips, ugly face, distorted face, extra legs, anime",
"width": "512",
"height": "512",
"samples": "1",
"num_inference_steps": "30",
"safety_checker": "yes",
"enhance_prompt": "yes",
"seed": null,
"guidance_scale": 7.5,
"multi_lingual": "no",
"panorama": "no",
"self_attention": "no",
"upscale": "no",
"embeddings_model": null,
"lora_model": "ganyu-lora,more_details",
"scheduler": "UniPCMultistepScheduler",
"webhook": null,
"track_id": null
}'
响应示例响应示例
{
"status": "string",
"tip": "string",
"eta": 0,
"messege": "string",
"webhook_status": "string",
"fetch_result": "string",
"id": 0,
"output": [
"string"
],
"meta": {
"prompt": "string",
"model_id": "string",
"negative_prompt": "string",
"scheduler": "string",
"safety_checker": "string",
"W": 0,
"H": 0,
"guidance_scale": 0,
"seed": 0,
"steps": 0,
"n_samples": 0,
"full_url": "string",
"tomesd": "string",
"upscale": "string",
"multi_lingual": "string",
"panorama": "string",
"self_attention": "string",
"use_karras_sigmas": "string",
"embeddings": null,
"vae": null,
"lora": "string",
"lora_strength": 0,
"clip_skip": 0,
"temp": "string",
"base64": "string",
"file_prefix": "string"
},
"future_links": [
"string"
]
}
请求参数
Body 参数application/json
返回响应
修改于 2023-10-30 06:03:02