图像深度
开发环境
https://stablediffusionapi.com/v1
开发环境
https://stablediffusionapi.com/v1
POST
https://stablediffusionapi.com/api/v5/depth2img
init_image
参数一起传递,并将所需修改的描述添加到参数中prompt
。POST
向 https://stablediffusionapi.com/api/v5/depth2img 接口发出请求,并在请求正文中传递所需的参数。请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://stablediffusionapi.com/api/v5/depth2img' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "",
"init_image" : "https://d1okzptojspljx.cloudfront.net/generations/b3341a09-082e-474e-989f-72ec3f3bf7aa-0.png",
"prompt" : "give him glasses"
}'
响应示例响应示例
{
"status": "string",
"generationTime": 0,
"id": 0,
"output": "string"
}
请求参数
Body 参数application/json