Create Task Stability AI/Stable Diffusion Img2Img

official文档: https://replicate.com/stability-ai/stable-diffusion-img2img

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-img2img:15a3689ee13b0d2616e98820eca31d4c3abcd36672df6afce5cb6feb1d66087d", "input": { "image": "https://replicate.delivery/pbxt/HtKMvJSvuGWDn2B35mM396QGzcrgCNkcgSko8JxtXux4aX9H/sketch-mountains-input.jpeg", "prompt": "A fantasy landscape, trending on artstation", "scheduler": "DPMSolverMultistep", "num_outputs": 1, "guidance_scale": 7.5, "prompt_strength": 0.8, "num_inference_steps": 25 } }'

Parameters

NameInDescriptionRequired
AuthorizationheaderNo

Request Body

Example

{
  "version": "stability-ai/stable-diffusion-img2img:15a3689ee13b0d2616e98820eca31d4c3abcd36672df6afce5cb6feb1d66087d",
  "input": {
    "image": "https://replicate.delivery/pbxt/HtKMvJSvuGWDn2B35mM396QGzcrgCNkcgSko8JxtXux4aX9H/sketch-mountains-input.jpeg",
    "prompt": "A fantasy landscape, trending on artstation",
    "scheduler": "DPMSolverMultistep",
    "num_outputs": 1,
    "guidance_scale": 7.5,
    "prompt_strength": 0.8,
    "num_inference_steps": 25
  }
}

Responses

200 -

Example

undefined