/fal-ai/flux-1/schnell/redux

POST /fal-ai/flux-1/schnell/redux

MethodPOST
Path/fal-ai/flux-1/schnell/redux
Typehttp
Status1
Module2102810
Folder61445274

说明

概览

MethodPOST
Path/fal-ai/flux-1/schnell/redux
Typehttp
Status1
Module2102810
Folder61445274

参数

{
  "path": [],
  "query": [],
  "cookie": [],
  "header": []
}

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "image_url": {
        "type": "string",
        "description": "在此处拖放文件,或提供 base64 编码的数据 URL接受的文件类型:jpg、jpeg、png、webp、gif、avif"
      },
      "num_inference_steps": {
        "type": "integer",
        "description": "要执行的推理步骤数。默认值:4 范围值:1-12"
      },
      "image_size": {
        "type": "string",
        "description": "生成图像的大小。默认值:landscape_4_3 范围(3:4、4:3、16:9、9:16)"
      },
      "num_images": {
        "type": "integer",
        "description": "生成的图像数量。默认值:1   范围值1-4"
      },
      "enable_safety_checker": {
        "type": "boolean",
        "description": "如果设置为 true,则启用安全检查器。默认值:true"
      },
      "output_format": {
        "type": "string",
        "description": "生成图片的格式。默认值:\"jpeg\"  支持default、png、jpeg"
      },
      "acceleration": {
        "type": "string",
        "description": "生成速度。速度越高,生成速度越快。默认值:\"regular\"  支持default、none、regular、high"
      }
    },
    "required": [
      "image_url"
    ],
    "x-apifox-orders": [
      "image_url",
      "num_inference_steps",
      "image_size",
      "num_images",
      "enable_safety_checker",
      "output_format",
      "acceleration"
    ]
  },
  "examples": [
    {
      "mediaType": "application/json",
      "value": "{\r\n  \"image_url\": \"https://fal.media/files/kangaroo/acQvq-Kmo2lajkgvcEHdv.png\",\r\n  \"num_inference_steps\": 4,\r\n  \"image_size\": \"landscape_4_3\",\r\n  \"num_images\": 1,\r\n  \"enable_safety_checker\": true,\r\n  \"output_format\": \"jpeg\",\r\n  \"acceleration\": \"regular\"\r\n}"
    }
  ],
  "mediaType": "",
  "oasExtensions": "",
  "required": false,
  "additionalContentTypes": []
}

响应

[
  {
    "id": 728706506,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {},
      "x-apifox-orders": []
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 728706506,
    "data": "{\r\n    \"status\": \"IN_QUEUE\",\r\n    \"request_id\": \"acf05732-7cb3-445b-9f39-fdaeccb1d730\",\r\n    \"response_url\": \"https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730\",\r\n    \"status_url\": \"https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status\",\r\n    \"cancel_url\": \"https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel\",\r\n    \"logs\": null,\r\n    \"metrics\": {},\r\n    \"queue_position\": 0\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 648892734
  }
]