init_image
参数一起传递,并将所需修改的描述添加到参数中prompt
。POST
向 https://stablediffusionapi.com/api/v5/depth2img 接口发出请求,并在请求正文中传递所需的参数。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"
}