Skip to content

创建任务 lucataco/flux-dev-lora

POST https://aiapi.winfull.top/replicate/v1/predictions 官方文档: https://replicate.com/lucataco/flux-dev-lora

请求参数

Authorization 在 Header 添加参数 Authorization ,其值为在 Bearer 之后拼接 Token 示例: Authorization: Bearer ******************** Header 参数 生成代码 Body 参数application/json 生成代码 示例

{
    "version": "lucataco/flux-dev-lora:091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3",
    "input": {
      "prompt": "a beautiful castle frstingln illustration",
      "hf_lora": "alvdansen/frosting_lane_flux",
      "lora_scale": 0.8,
      "num_outputs": 1,
      "aspect_ratio": "1:1",
      "output_format": "webp",
      "guidance_scale": 3.5,
      "output_quality": 80,
      "prompt_strength": 0.8,
      "num_inference_steps": 28
    }
  }

请求示例代码

Shell JavaScript Java Swift Go PHP Python HTTP C C# Objective-C Ruby OCaml Dart R 请求示例请求示例 Shell JavaScript Java Swift cURLcURL-WindowsHttpiewgetPowerShell

curl --location --request POST 'https://aiapi.winfull.top/replicate/v1/predictions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "version": "lucataco/flux-dev-lora:091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3",
    "input": {
      "prompt": "a beautiful castle frstingln illustration",
      "hf_lora": "alvdansen/frosting_lane_flux",
      "lora_scale": 0.8,
      "num_outputs": 1,
      "aspect_ratio": "1:1",
      "output_format": "webp",
      "guidance_scale": 3.5,
      "output_quality": 80,
      "prompt_strength": 0.8,
      "num_inference_steps": 28
    }
  }'

返回响应

🟢200成功 application/json生成代码 Body 生成代码 示例

{
    "id": "c9zn270jk1rj00crans8m6ssjc",
    "model": "lucataco/flux-dev-lora",
    "version": "091495765fa5ef2725a175a57b276ec30dc9d39c22d30410f2ede68a3eab66b3",
    "input": {
        "aspect_ratio": "1:1",
        "guidance_scale": 3.5,
        "hf_lora": "alvdansen/frosting_lane_flux",
        "lora_scale": 0.8,
        "num_inference_steps": 28,
        "num_outputs": 1,
        "output_format": "webp",
        "output_quality": 80,
        "prompt": "a beautiful castle frstingln illustration",
        "prompt_strength": 0.8
    },
    "logs": "",
    "output": null,
    "data_removed": false,
    "error": null,
    "status": "starting",
    "created_at": "2025-07-29T09:09:55.992Z",
    "urls": {
        "cancel": "https://api.replicate.com/v1/predictions/c9zn270jk1rj00crans8m6ssjc/cancel",
        "get": "https://api.replicate.com/v1/predictions/c9zn270jk1rj00crans8m6ssjc",
        "stream": "https://stream.replicate.com/v1/files/qoxq-37kfnrolbp7l2vy5f2ffduf6vyqye4savtprvsiikqzpcjbuejfa",
        "web": "https://replicate.com/p/c9zn270jk1rj00crans8m6ssjc"
    }
}

修改于 2025-08-07 08:43:38

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