/fal-ai/qwen-image-edit-plus

POST /fal-ai/qwen-image-edit-plus

MethodPOST
Path/fal-ai/qwen-image-edit-plus
Typehttp
Status1
Module2102810
Folder61445274

说明

概览

MethodPOST
Path/fal-ai/qwen-image-edit-plus
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_hd、landscape_4_3、landscape_16_9、portrait_3_4、portrait_9_16"
      },
      "num_inference_steps": {
        "type": "integer",
        "description": "范围值:2-100"
      },
      "guidance_scale": {
        "type": "integer",
        "description": "范围值:0-20"
      },
      "num_images": {
        "type": "integer",
        "description": "生成图片数量,范围值:1-4"
      },
      "enable_safety_checker": {
        "type": "boolean",
        "description": "启用安全检查,默认值:true"
      },
      "output_format": {
        "type": "string",
        "description": "输出图片格式,支持:jpeg、png"
      },
      "image_urls": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "图片url"
      },
      "negative_prompt": {
        "type": "string"
      }
    },
    "required": [
      "prompt",
      "image_urls"
    ],
    "x-apifox-orders": [
      "prompt",
      "image_size",
      "num_inference_steps",
      "guidance_scale",
      "num_images",
      "enable_safety_checker",
      "output_format",
      "image_urls",
      "negative_prompt"
    ]
  },
  "mediaType": "",
  "examples": [
    {
      "mediaType": "application/json",
      "value": "{\r\n  \"prompt\": \"Close shot portrait of a woman in front of this car on this highway\",\r\n  \"image_size\": \"square_hd\",\r\n  \"num_inference_steps\": 50,\r\n  \"guidance_scale\": 4,\r\n  \"num_images\": 1,\r\n  \"enable_safety_checker\": true,\r\n  \"output_format\": \"png\",\r\n  \"image_urls\": [\r\n    \"https://v3.fal.media/files/monkey/i3saq4bAPXSIl08nZtq9P_ec535747aefc4e31943136a6d8587075.png\",\r\n    \"https://v3.fal.media/files/penguin/BCOZp6teRhSQFuOXpbBOa_da8ef9b4982347a2a62a516b737d4f21.png\",\r\n    \"https://v3.fal.media/files/tiger/sCoZhBksx9DvwSR4_U3_C_3d1f581441874005908addeae9c10d0f.png\"\r\n  ],\r\n  \"negative_prompt\": \"blurry, ugly\"\r\n}"
    }
  ],
  "oasExtensions": ""
}

响应

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

响应示例

[
  {
    "name": "成功示例",
    "responseId": 775922281,
    "data": "{\r\n    \"status\": \"IN_QUEUE\",\r\n    \"request_id\": \"9c08e7d8-312c-402d-a691-c207a9cb8121\",\r\n    \"response_url\": \"https://queue.fal.run/fal-ai/qwen-image-edit-plus/requests/9c08e7d8-312c-402d-a691-c207a9cb8121\",\r\n    \"status_url\": \"https://queue.fal.run/fal-ai/qwen-image-edit-plus/requests/9c08e7d8-312c-402d-a691-c207a9cb8121/status\",\r\n    \"cancel_url\": \"https://queue.fal.run/fal-ai/qwen-image-edit-plus/requests/9c08e7d8-312c-402d-a691-c207a9cb8121/cancel\",\r\n    \"logs\": null,\r\n    \"metrics\": {},\r\n    \"queue_position\": 0\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 708599502
  }
]