/fal-ai/flux-pro/kontext/max
POST /fal-ai/flux-pro/kontext/max
说明
概览
| Method | POST |
|---|---|
| Path | /fal-ai/flux-pro/kontext/max |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 61445274 |
参数
{ "query": [], "path": [], "cookie": [], "header": [] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "prompt": { "type": "string", "description": "提示词" }, "seed": { "type": "integer" }, "guidance_scale": { "type": "number", "description": "范围值:1-20" }, "sync_mode": { "type": "boolean", "description": "同步模式" }, "num_images": { "type": "integer", "description": "输出图片数量,范围值:1-4" }, "safety_tolerance": { "type": "string", "description": "安全容差" }, "output_format": { "type": "string", "description": "图片输出格式:\"jpeg\",\"png\"" }, "aspect_ratio": { "type": "string", "description": "图片尺寸,枚举值:21:9、16:9、4:3、3:2、1:1、2:3、3:4、9:16、9:21" }, "image_url": { "type": "string", "description": "图片URL" } }, "required": [ "prompt", "output_format", "image_url" ], "x-apifox-orders": [ "prompt", "seed", "guidance_scale", "sync_mode", "num_images", "safety_tolerance", "output_format", "aspect_ratio", "image_url" ] }, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\r\n \"prompt\": \"Put a donut next to the flour.\",\r\n \"seed\": 0,\r\n \"guidance_scale\": 3.5,\r\n \"sync_mode\": false,\r\n \"num_images\": 1,\r\n \"safety_tolerance\": \"2\",\r\n \"output_format\": \"jpeg\",\r\n \"aspect_ratio\": \"string\",\r\n \"image_url\": \"https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png\"\r\n}" } ], "oasExtensions": "" }
响应
[ { "id": 728716658, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {}, "x-apifox-orders": [] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 728716658, "data": "{\r\n \"status\": \"IN_QUEUE\",\r\n \"request_id\": \"e36fc67f-afa7-416a-a288-50d90a630d7a\",\r\n \"response_url\": \"https://queue.fal.run/fal-ai/flux-pro/requests/e36fc67f-afa7-416a-a288-50d90a630d7a\",\r\n \"status_url\": \"https://queue.fal.run/fal-ai/flux-pro/requests/e36fc67f-afa7-416a-a288-50d90a630d7a/status\",\r\n \"cancel_url\": \"https://queue.fal.run/fal-ai/flux-pro/requests/e36fc67f-afa7-416a-a288-50d90a630d7a/cancel\",\r\n \"logs\": null,\r\n \"metrics\": {},\r\n \"queue_position\": 0\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 648879571 } ]