/fal-ai/flux-lora

POST /fal-ai/flux-lora

MethodPOST
Path/fal-ai/flux-lora
Typehttp
Status1
Module2102810
Folder61445274

说明

概览

MethodPOST
Path/fal-ai/flux-lora
Typehttp
Status1
Module2102810
Folder61445274

参数

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

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "description": "提示词"
      },
      "image_size": {
        "type": "string",
        "description": "图片尺寸,枚举值:square、square pro、landscape_4_3、landscape_16_9、portrait_3_4"
      },
      "num_inference_steps": {
        "type": "integer",
        "description": "范围值:1-50"
      },
      "guidance_scale": {
        "type": "number",
        "description": "范围值:0-35"
      },
      "num_images": {
        "type": "integer",
        "description": "图片数量,范围值:1-4"
      },
      "enable_safety_checker": {
        "type": "boolean",
        "description": "启用安全检查,默认值:true"
      },
      "output_format": {
        "type": "string",
        "description": "输出图片格式,支持:jpeg、png"
      }
    },
    "required": [
      "prompt"
    ],
    "x-apifox-orders": [
      "prompt",
      "image_size",
      "num_inference_steps",
      "guidance_scale",
      "num_images",
      "enable_safety_checker",
      "output_format"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "mediaType": "application/json",
      "value": "{\r\n  \"prompt\": \"Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \\\"FLUX\\\" is painted over it in big, white brush strokes with visible texture.\",\r\n  \"image_size\": \"landscape_4_3\",\r\n  \"num_inference_steps\": 28,\r\n  \"guidance_scale\": 3.5,\r\n  \"num_images\": 1,\r\n  \"enable_safety_checker\": true,\r\n  \"output_format\": \"jpeg\"\r\n}"
    }
  ],
  "oasExtensions": ""
}

响应

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

响应示例

[
  {
    "name": "成功示例",
    "responseId": 777680348,
    "data": "{\r\n    \"status\": \"IN_QUEUE\",\r\n    \"request_id\": \"07e0be22-3380-4699-a377-48729443435c\",\r\n    \"response_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c\",\r\n    \"status_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/status\",\r\n    \"cancel_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/cancel\",\r\n    \"logs\": null,\r\n    \"metrics\": {},\r\n    \"queue_position\": 0\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 708602734
  }
]