Skip to content

创建任务 stability-ai/stable-diffusion-img2img

概览

认证

  • Header: Authorization: Bearer <token>

请求参数

  • Header: Authorization: Bearer <token>
  • Body 类型: application/json
{
      "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
    }
  }

请求示例

curl --location --request POST 'https://api.winfull.cloud-ip.cc/replicate/v1/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
      "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
    }
  }'

返回示例

🟢200成功 示例

{
    "created": 1589478378,
    "data": [
        {
            "url": "https://..."
        },
        {
            "url": "https://..."
        }
    ]
}

最后更新:2025-08-07 08:43:26

🚀 伝富AI-API文档 - 强大的AI接口平台