/fal-ai/flux-lora/image-to-image

POST /fal-ai/flux-lora/image-to-image

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

说明

概览

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

参数

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

请求体

{
  "type": "application/json",
  "parameters": [],
  "jsonSchema": {
    "type": "object",
    "properties": {
      "prompt": {
        "type": "string",
        "description": "提示词"
      },
      "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"
      },
      "image_url": {
        "type": "string",
        "description": "图片url,接受的文件类型:jpg、jpeg、png、webp、gif、avif"
      },
      "strength": {
        "type": "number",
        "description": "强度,范围值:0.01-1"
      }
    },
    "required": [
      "prompt",
      "image_url"
    ],
    "x-apifox-orders": [
      "prompt",
      "num_inference_steps",
      "guidance_scale",
      "num_images",
      "enable_safety_checker",
      "output_format",
      "image_url",
      "strength"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "mediaType": "application/json",
      "value": "{\r\n  \"prompt\": \"A photo of a lion sitting on a stone bench\",\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  \"image_url\": \"https://storage.googleapis.com/falserverless/example_inputs/dog.png\",\r\n  \"strength\": 0.85\r\n}"
    }
  ],
  "oasExtensions": ""
}

响应

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

响应示例

[
  {
    "name": "成功示例",
    "responseId": 777672157,
    "data": "{\r\n    \"status\": \"IN_QUEUE\",\r\n    \"request_id\": \"9b54828d-3c2b-4e0e-ac8c-ac234504015e\",\r\n    \"response_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e\",\r\n    \"status_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e/status\",\r\n    \"cancel_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e/cancel\",\r\n    \"logs\": null,\r\n    \"metrics\": {},\r\n    \"queue_position\": 0\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 708599488
  }
]