官方文档: https://fal.ai/models/fal-ai/flux-lora/image-to-image
POST
/fal-ai/flux-lora/image-to-image/fal-ai/flux-lora/image-to-image
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/fal-ai/flux-lora/image-to-image \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A photo of a lion sitting on a stone bench",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"num_images": 1,
"enable_safety_checker": true,
"output_format": "jpeg",
"image_url": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"strength": 0.85
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
prompt | JSON body | string | 是 | 提示词 | - |
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 | - |
image_url | JSON body | string | 是 | 图片url,接受的文件类型:jpg、jpeg、png、webp、gif、avif | - |
strength | JSON body | number | 否 | 强度,范围值:0.01-1 | - |
返回响应 (200)
此部分没有定义参数。
响应示例
{
"status": "IN_QUEUE",
"request_id": "9b54828d-3c2b-4e0e-ac8c-ac234504015e",
"response_url": "https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e",
"status_url": "https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e/status",
"cancel_url": "https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e/cancel",
"logs": null,
"metrics": {},
"queue_position": 0
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899904,
"name": "/fal-ai/flux-lora/image-to-image",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档: https://fal.ai/models/fal-ai/flux-lora/image-to-image",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/fal-ai/flux-lora/image-to-image",
"tags": [],
"status": 1,
"requestBody": {
"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"
]
},
"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}"
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": []
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 118174020,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 118174020,
"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": "019fc09b-0b33-76be-8db4-15959f67ef88"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436089,
"ordering": 114,
"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.118174020"
],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}