/fal-ai/flux-lora/inpainting
POST /fal-ai/flux-lora/inpainting
说明
概览
| Method | POST |
|---|---|
| Path | /fal-ai/flux-lora/inpainting |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 61445274 |
参数
{ "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" }, "mask_url": { "type": "string", "description": "蒙版url,接受的文件类型:jpg、jpeg、png、webp、gif、avif" } }, "required": [ "prompt", "image_url", "mask_url" ], "x-apifox-orders": [ "prompt", "num_inference_steps", "guidance_scale", "num_images", "enable_safety_checker", "output_format", "image_url", "strength", "mask_url" ] }, "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 \"mask_url\": \"https://storage.googleapis.com/falserverless/example_inputs/dog_mask.png\"\r\n}" } ], "oasExtensions": "" }
响应
[ { "id": 777664223, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {}, "x-apifox-orders": [] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 777664223, "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": 708587588 }, { "name": "成功示例", "responseId": 777664223, "data": "{\r\n \"status\": \"IN_QUEUE\",\r\n \"request_id\": \"72a35804-b407-4b09-894b-3a35559c38f9\",\r\n \"response_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/72a35804-b407-4b09-894b-3a35559c38f9\",\r\n \"status_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/72a35804-b407-4b09-894b-3a35559c38f9/status\",\r\n \"cancel_url\": \"https://queue.fal.run/fal-ai/flux-lora/requests/72a35804-b407-4b09-894b-3a35559c38f9/cancel\",\r\n \"logs\": null,\r\n \"metrics\": {},\r\n \"queue_position\": 0\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 708594841 } ]