混合画布
POST
https://stablediffusionapi.com/api/v5/mixture_canvas该端点允许您将画布添加到图像并使用提示描述填充画布
POST
向https://stablediffusionapi.com/api/v5/mixture_canvas端点发出请求,并将所需参数作为请求正文传递到端点。
请求参数
Body 参数application/json
key
string
必需
您用于请求授权的 API Key
image
string
必需
要覆盖的图像的 url
prompt
string
必需
文本提示,包含您想要在图像中生成的内容的描述
webhook
null
必需
设置 URL 以在图像生成完成后获取 POST API 调用。
track_id
null
必需
此 ID 在 Webhook API 调用的响应中返回。这将用于识别 Webhook 请求。
示例
{
"key": "",
"image": "https://camo.githubusercontent.com/5591434c42714807553e83644a191816cdf39100648f8d94b28a149dc0bc5cc7/68747470733a2f2f68756767696e67666163652e636f2f64617461736574732f6b616469726e61722f6469666675736572735f726561646d655f696d616765732f7265736f6c76652f6d61696e2f696e7075745f696d6167652e706e67",
"prompt": "best quality, masterpiece, WLOP, sakimichan, art contest winner on pixiv, 8K, intricate details, wet effects, rain drops, ethereal, mysterious, futuristic, UHD, HDR, cinematic lighting, in a beautiful forest, rainy day, award winning, trending on artstation, beautiful confident cheerful young woman, wearing a futuristic sleeveless dress, ultra beautiful detailed eyes, hyper-detailed face, complex, perfect, model, textured, chiaroscuro, professional make-up, realistic, figure in frame,",
"webhook": null,
"track_id": null
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
generationTime
number
必需
id
integer
必需
output
array[string]
必需
meta
object
必需
canvas_height
integer
必需
canvas_width
integer
必需
file_prefix
string
必需
guidance_scale
integer
必需
image
string
必需
negative_prompt
string
必需
outdir
string
必需
pos_x1
integer
必需
pos_x2
integer
必需
pos_y1
integer
必需
pos_y2
integer
必需
prompt
string
必需
seed
integer
必需
steps
integer
必需
strength
integer
必需
示例
{
"status": "success",
"generationTime": 12.331510066986084,
"id": 514,
"output": [
"https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/07eb4e9b-3248-4789-b87f-44a7f64d77fd.png"
],
"meta": {
"canvas_height": 800,
"canvas_width": 360,
"file_prefix": "07eb4e9b-3248-4789-b87f-44a7f64d77fd",
"guidance_scale": 8,
"image": "https://camo.githubusercontent.com/5591434c42714807553e83644a191816cdf39100648f8d94b28a149dc0bc5cc7/68747470733a2f2f68756767696e67666163652e636f2f64617461736574732f6b616469726e61722f6469666675736572735f726561646d655f696d616765732f7265736f6c76652f6d61696e2f696e7075745f696d6167652e706e67",
"negative_prompt": "low quality",
"outdir": "out",
"pos_x1": 0,
"pos_x2": 352,
"pos_y1": 448,
"pos_y2": 800,
"prompt": "best quality, masterpiece, WLOP, sakimichan, art contest winner on pixiv, 8K, intricate details, wet effects, rain drops, ethereal, mysterious, futuristic, UHD, HDR, cinematic lighting, in a beautiful forest, rainy day, award winning, trending on artstation, beautiful confident cheerful young woman, wearing a futuristic sleeveless dress, ultra beautiful detailed eyes, hyper-detailed face, complex, perfect, model, textured, chiaroscuro, professional make-up, realistic, figure in frame,",
"seed": 3843097097,
"steps": 100,
"strength": 1
}
}
最后修改时间: 1 年前