发起AI作画
POST
/ai/pro/create发起AI作画
请求参数
Body 参数application/json
No schema defined
示例
{
"model_code": 116,
"prompt": "一个美丽的女孩",
"width": 512,
"height": 512,
"supersize_multiple": 1,
"prefine_multiple": 1,
"batch_count": 1,
"option_param": {
"model_fusion": [
{
"key": "mf-可爱的线条平涂风",
"weight": 0.6
}
],
"character": [
"c-机械朋克"
]
},
"advanced_param": {
"uc_prompt": "低分辨率,不良解剖结构,文本,低质量,(突变,绘制不良:1.2),肥胖,不良比例",
"restore_faces": false,
"tilling": false,
"seed": "-1",
"vae_file": "'Anything-V3.0.vae.pt'",
"cfg": 7,
"sampler_steps": 20,
"sampler_index": 17,
"clip_skip": 5,
"ensd": 0,
"hires_fix_param": {
"denoising_strength": 0.7
}
},
"img_to_img_param": {
"init_image_url": "https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png",
"creativity_degree": 50,
"resize_mode": 0
},
"control_net_params": [
{
"type": 0,
"preprocessor": 0,
"model": 0,
"control_weight": 1,
"starting_control_step": 0,
"ending_control_step": 1,
"control_mode": 0,
"image_url": "https://cdn.wujiebantu.com/B2381E03D5701D2EEEDCD19DDD624D74/1695093967/FsEkOaB1rQhSBP1qNWg-iVVA-z3m.jpg",
"image_width": 512,
"image_height": 512,
"mask_url": "https://cdn.wujiebantu.com/F4DA2BBBB4CCAD30ADE5274F8F9E7F08/controlnet/1692757097/FlSmnxPMRok9tkYAu0--CMkOlfo8.png",
"processor_res": 512,
"threshold_a": 8,
"threshold_b": 8,
"resize_mode": 1,
"pixel_perfect": true
}
],
"inpainting_plugin_d_t_o": {
"enabled": true,
"mask_zone_image_url": "www.levi-kihn.net",
"mask_blur": 4,
"inpainting_fill": 1,
"inpainting_mask_invert": 0,
"inpaint_full_res_padding": 32,
"inpaint_full_res": true
},
"tiled_diffusion_d_t_o": {
"enabled": true,
"draw_background": false,
"bbox_control_states": [
{
"enabled": true,
"x": 0.5,
"y": 0.5,
"w": 0.5,
"h": 0.5,
"prompt": "ug8p7a",
"neg_prompt": "himemg",
"blend_mode": "Background",
"seed": -1,
"option_param": {
"model_fusion": [
{
"key": "mf-可爱的线条平涂风",
"weight": 0.6
}
],
"character": [
"c-机械朋克"
]
}
}
]
},
"face_editor_d_t_o": {
"enabled": true,
"use_minimal_area": true,
"affected_areas": [
"Face"
],
"mask_size": 0,
"mask_blur": 0,
"max_face_count": 20,
"confidence": 0.97,
"face_margin": 1.6,
"face_size": 512,
"ignore_larger_faces": true,
"strength1": 0.4,
"apply_inside_mask_only": true,
"strength2": 0,
"prompt_for_face": "llhf6w"
},
"ultimate_upscale_d_t_o": {
"enabled": true,
"target_size_type": 0,
"upscaler_index": 0,
"redraw_mode": 0,
"tile_width": 512,
"tile_height": 512,
"mask_blur": 8,
"seams_fix_type": 0,
"seams_fix_width": 64,
"seams_fix_denoise": 0.35,
"seams_fix_padding": 32
},
"adetailer_d_t_o_s": [
{
"enabled": true,
"ad_model": "None",
"ad_negative_prompt": "2jq2i6",
"ad_prompt": "fdt00k"
}
],
"callback_url": "www.levi-kihn.net"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON*/*
OK
数据结构
No schema defined
示例test data
{
"code": "200",
"message": "success",
"data": {
"results": [
{
"key": "C5B5FE8DBF3679D9049342C130341BD9",
"expected_second": 12,
"batch_task_key": "14DBBD0743C8715D92183756E3FB398C"
}
]
}
}
最后修改时间: 8 天前