创建任务 black-forest-labs/flux-1.1-pro-ultra

POST /replicate/v1/models/black-forest-labs/flux-1.1-pro-ultra/predictions

MethodPOST
Path/replicate/v1/models/black-forest-labs/flux-1.1-pro-ultra/predictions
Typehttp
Status1
Module2102810
Folder62419371

说明

概览

MethodPOST
Path/replicate/v1/models/black-forest-labs/flux-1.1-pro-ultra/predictions
Typehttp
Status1
Module2102810
Folder62419371

参数

{
  "query": [],
  "path": [],
  "cookie": [],
  "header": [
    {
      "required": false,
      "description": "",
      "type": "string",
      "id": "GTujCrB2It",
      "enable": true,
      "name": "Authorization",
      "sampleValue": "Bearer {{YOUR_API_KEY}}"
    }
  ]
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "input": {
        "type": "object",
        "properties": {
          "raw": {
            "type": "boolean",
            "description": "生成处理程度更低、更自然的图像。默认值:false。"
          },
          "prompt": {
            "type": "string",
            "description": "图像生成的文字提示。"
          },
          "aspect_ratio": {
            "type": "string",
            "description": "生成图像的长宽比,默认值:“1:1”。"
          },
          "output_format": {
            "type": "string",
            "description": "输出图像的格式。默认值:“jpg”。"
          },
          "safety_tolerance": {
            "type": "integer",
            "description": "安全容差。1 表示最严格,6 表示最宽松。默认值:2。"
          },
          "image_prompt_strength": {
            "type": "number",
            "description": "提示与图像提示之间的混合。最小值:0,最大值:1。"
          }
        },
        "required": [
          "prompt"
        ],
        "x-apifox-orders": [
          "raw",
          "prompt",
          "aspect_ratio",
          "output_format",
          "safety_tolerance",
          "image_prompt_strength"
        ]
      }
    },
    "x-apifox-orders": [
      "input"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "value": "{\n    \"input\": {\n      \"raw\": false,\n      \"prompt\": \"a majestic snow-capped mountain peak bathed in a warm glow of the setting sun\",\n      \"aspect_ratio\": \"3:2\",\n      \"output_format\": \"jpg\",\n      \"safety_tolerance\": 2,\n      \"image_prompt_strength\": 0.1\n    }\n  }",
      "mediaType": "application/json",
      "description": ""
    }
  ],
  "oasExtensions": ""
}

响应

[
  {
    "id": 729460006,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "input": {
          "type": "object",
          "properties": {
            "aspect_ratio": {
              "type": "string"
            },
            "image_prompt_strength": {
              "type": "number"
            },
            "output_format": {
              "type": "string"
            },
            "prompt": {
              "type": "string"
            },
            "raw": {
              "type": "boolean"
            },
            "safety_tolerance": {
              "type": "integer"
            }
          },
          "required": [
            "prompt"
          ],
          "x-apifox-orders": [
            "aspect_ratio",
            "image_prompt_strength",
            "output_format",
            "prompt",
            "raw",
            "safety_tolerance"
          ]
        }
      },
      "required": [
        "input"
      ],
      "x-apifox-orders": [
        "input"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 729460006,
    "data": "{\n    \"id\": \"brgfcps121rm80crajvr2x4jg4\",\n    \"model\": \"black-forest-labs/flux-1.1-pro-ultra\",\n    \"version\": \"hidden\",\n    \"input\": {\n        \"aspect_ratio\": \"3:2\",\n        \"image_prompt_strength\": 0.1,\n        \"output_format\": \"jpg\",\n        \"prompt\": \"a majestic snow-capped mountain peak bathed in a warm glow of the setting sun\",\n        \"raw\": false,\n        \"safety_tolerance\": 2\n    },\n    \"logs\": \"\",\n    \"output\": null,\n    \"data_removed\": false,\n    \"error\": null,\n    \"status\": \"starting\",\n    \"created_at\": \"2025-07-29T05:45:44.464Z\",\n    \"urls\": {\n        \"cancel\": \"https://api.replicate.com/v1/predictions/brgfcps121rm80crajvr2x4jg4/cancel\",\n        \"get\": \"https://api.replicate.com/v1/predictions/brgfcps121rm80crajvr2x4jg4\",\n        \"stream\": \"https://stream.replicate.com/v1/files/bcwr-bx7iokgbhtcqohbyy7i5lnli25grd3mhcljqvwxliud4o7ov7mgq\",\n        \"web\": \"https://replicate.com/p/brgfcps121rm80crajvr2x4jg4\"\n    }\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 649931425
  }
]