ControlNet 多功能终端
开发环境
开发环境
POST
https://stablediffusionapi.com/api/v5/controlnet
controlnet_model
参数“canny,深度”即可。init_image
提示 您还可以使用此端点通过 ControlNet 修复图像。只需确保将链接传递到 mask_image
请求正文中,并使用“inpaint”值传递 controlnet_model 参数。
信息 请阅读我们有关 ControlNet 的详细**博客文章**。
POST
向https://stablediffusionapi.com/api/v5/controlnet端点发送请求。controlnet_model
参数“canny,深度”即可。init_image
提示 您还可以使用此端点通过 ControlNet 修复图像。只需确保将链接传递到 mask_image
请求正文中,并使用“inpaint”值传递 controlnet_model 参数。
信息 请阅读我们有关 ControlNet 的详细**博客文章**。
POST
向https://stablediffusionapi.com/api/v5/controlnet端点发送请求。提示
您也可以使用多个 ControlNet 模型。只需在请求体中,将逗号分隔的控制网模型作为"canny,depth"
传递给 controlnet_model,并将 init_image 传入即可。
模型
调度程序
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/v5/controlnet?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"key": "",
"controlnet_model": "openpose,canny,face_detector",
"controlnet_type" :"openpose",
"model_id": "midjourney",
"auto_hint": "yes",
"guess_mode" : "yes",
"prompt": "human model doing photoshoot, ultra realistic face, ultra high resolution, 4K image",
"negative_prompt": null,
"control_image":"https://huggingface.co/takuma104/controlnet_dev/resolve/main/gen_compare/control_images/converted/control_human_openpose.png",
"init_image": "https://cdn.stablediffusionapi.com/generations/0-4957a91a-a45e-459e-b4cd-b3ca4013b847.png",
"mask_image": null,
"width": "512",
"height": "512",
"samples": "1",
"scheduler": "UniPCMultistepScheduler",
"num_inference_steps": "30",
"safety_checker": "no",
"enhance_prompt": "yes",
"guidance_scale": 7.5,
"controlnet_conditioning_scale": 0.7,
"strength": 0.55,
"lora_model": "yae-miko-genshin,more_details",
"clip_skip": "2",
"tomesd": "yes",
"use_karras_sigmas": "yes",
"vae": null,
"lora_strength": null,
"embeddings_model": null,
"seed": null,
"webhook": null,
"track_id": null
}'
响应示例响应示例
{
"status": "string",
"generationTime": 0,
"id": 0,
"output": [
"string"
],
"meta": {
"prompt": "string",
"model_id": "string",
"controlnet_model": "string",
"controlnet_type": "string",
"negative_prompt": "string",
"scheduler": "string",
"safety_checker": "string",
"auto_hint": "string",
"guess_mode": "string",
"strength": "string",
"W": 0,
"H": 0,
"guidance_scale": 0,
"controlnet_conditioning_scale": "string",
"seed": 0,
"multi_lingual": "string",
"use_karras_sigmas": "string",
"tomesd": "string",
"init_image": "string",
"mask_image": null,
"control_image": "string",
"vae": null,
"steps": 0,
"full_url": "string",
"upscale": "string",
"n_samples": 0,
"embeddings": null,
"lora": "string",
"lora_strength": 0,
"temp": "string",
"base64": "string",
"clip_skip": 0,
"file_prefix": "string"
}
}
请求参数
Body 参数application/json
返回响应
修改于 2023-10-30 06:58:49