官方文档: https://fal.ai/models/fal-ai/flux-lora
POST
/fal-ai/flux-lora/fal-ai/flux-lora
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/fal-ai/flux-lora \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"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.",
"image_size": "landscape_4_3",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"num_images": 1,
"enable_safety_checker": true,
"output_format": "jpeg"
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
prompt | JSON body | string | 是 | 提示词 | - |
image_size | JSON body | string | 否 | 图片尺寸,枚举值:square、square pro、landscape_4_3、landscape_16_9、portrait_3_4 | - |
num_inference_steps | JSON body | integer | 否 | 范围值:1-50 | - |
guidance_scale | JSON body | number | 否 | 范围值:0-35 | - |
num_images | JSON body | integer | 否 | 图片数量,范围值:1-4 | - |
enable_safety_checker | JSON body | boolean | 否 | 启用安全检查,默认值:true | - |
output_format | JSON body | string | 否 | 输出图片格式,支持:jpeg、png | - |
返回响应 (200)
此部分没有定义参数。
响应示例
{
"status": "IN_QUEUE",
"request_id": "07e0be22-3380-4699-a377-48729443435c",
"response_url": "https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c",
"status_url": "https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/status",
"cancel_url": "https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/cancel",
"logs": null,
"metrics": {},
"queue_position": 0
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899903,
"name": "/fal-ai/flux-lora",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档: https://fal.ai/models/fal-ai/flux-lora",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/fal-ai/flux-lora",
"tags": [],
"status": 1,
"requestBody": {
"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"
]
},
"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}"
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": []
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 125496254,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 125496254,
"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": "019fc09b-0b33-76be-8db4-109c05ad80c4"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436089,
"ordering": 108,
"responsibleId": 0,
"commonResponseStatus": {},
"advancedSettings": {
"disabledSystemHeaders": {}
},
"customApiFields": {},
"oasExtensions": "",
"mockScript": {},
"createdAt": "2026-08-02T03:53:34.000Z",
"updatedAt": "2026-08-05T14:40:24.000Z",
"creatorId": 2863449,
"editorId": 2863449,
"creatorUserId": 2863449,
"editorUserId": 2863449,
"responseChildren": [
"BLANK.125496254"
],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}