图像生成
获取配置信息
GET https://p0.kamiya.dev/api/image/config图像生成
POST https://p0.kamiya.dev/api/image/generate{
"type": "text2image", //image2image
"prompts": "礼花,气球,红色瞳孔,小巷,看着观众,城市,浮世绘,头发飘起,",
"negativePrompts": "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry",
"step": 28,
"cfg": 12,
"seed": 218506577,
"sampling": "DPM++ 2M Karras",
"width": 768,
"height": 512,
"model": "original", //模型配置见Config
"LoRAs": [ //LoRA配置见Config
{
"id": "bocchiEdStyleLora_bocchiEdStyle",
"weight": 60
}
],
"image": "<base64 url>" //在type为image2image时传递
}任务追踪
列出任务
最后更新于