魔术混合接口
开发环境
https://stablediffusionapi.com/v1
开发环境
https://stablediffusionapi.com/v1
POST
https://stablediffusionapi.com/api/v5/magic_mix
POST
向 https://stablediffusionapi.com/api/v3/magic_mix 接口发出请求,并将所需参数作为请求正文传递到接口。请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/v5/magic_mix' \
--header 'Content-Type: application/json' \
--data-raw '{
"key":"",
"prompt":"Bed",
"height":768,
"width":768,
"image":"https://user-images.githubusercontent.com/59410571/209578593-141467c7-d831-4792-8b9a-b17dc5e47816.jpg",
"kmax":0.5,
"kmin":0.3,
"mix_factor":0.5,
"samples":1,
"negative_prompt":"low quality",
"seed":1829183163,
"steps":20,
"webhook": null,
"track_id": null
}'
响应示例响应示例
{
"status": "string",
"generationTime": 0,
"id": 0,
"output": [
"string"
],
"meta": {
"H": 0,
"W": 0,
"file_prefix": "string",
"image": "string",
"kmax": 0,
"kmin": 0,
"mix_factor": 0,
"n_samples": 0,
"negative_prompt": "string",
"outdir": "string",
"prompt": "string",
"seed": 0,
"steps": 0
}
}
请求参数
Body 参数application/json