Create Task Stability AI/Stable Diffusion Inpainting
official文档: https://replicate.com/stability-ai/stable-diffusion-inpainting
Endpoint
POST http://v98store.com/replicate/v1/predictions cURL Command
curl -X POST 'http://v98store.com/replicate/v1/predictions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "version": "stability-ai/stable-diffusion-inpainting:95b7223104132402a9ae91cc677285bc5eb997834bd2349fa486f53910fd68b3", "input": { "mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png", "image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png", "width": 512, "height": 512, "prompt": "Face of a yellow cat, high resolution, sitting on a park bench", "scheduler": "DPMSolverMultistep", "num_outputs": 1, "guidance_scale": 7.5, "num_inference_steps": 25 } }' Parameters
| Name | In | Description | Required |
|---|---|---|---|
| Authorization | header | No |
Request Body
Example
{
"version": "stability-ai/stable-diffusion-inpainting:95b7223104132402a9ae91cc677285bc5eb997834bd2349fa486f53910fd68b3",
"input": {
"mask": "https://replicate.delivery/pbxt/HtGQBqO9MtVbPm0G0K43nsvvjBB0E0PaWOhuNRrRBBT4ttbf/mask.png",
"image": "https://replicate.delivery/pbxt/HtGQBfA5TrqFYZBf0UL18NTqHrzt8UiSIsAkUuMHtjvFDO6p/overture-creations-5sI6fQgYIuo.png",
"width": 512,
"height": 512,
"prompt": "Face of a yellow cat, high resolution, sitting on a park bench",
"scheduler": "DPMSolverMultistep",
"num_outputs": 1,
"guidance_scale": 7.5,
"num_inference_steps": 25
}
} Responses
200 -
Example
undefined