官方文档: https://fal.ai/models/fal-ai/wan/v2.2-a14b/image-to-image
POST
/fal-ai/wan/v2.2-a14b/image-to-image/fal-ai/wan/v2.2-a14b/image-to-image
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/fal-ai/wan/v2.2-a14b/image-to-image \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://storage.googleapis.com/falserverless/example_inputs/wan-image-to-image-input.png",
"prompt": "A cinematic shot of an ancient city at sunset, intricate stone buildings, warm golden light",
"strength": 0.5,
"aspect_ratio": "auto",
"num_inference_steps": 27,
"enable_safety_checker": true,
"enable_prompt_expansion": false,
"acceleration": "regular",
"guidance_scale": 3.5,
"guidance_scale_2": 4,
"shift": 2,
"image_format": "jpeg"
}'请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
image_url | JSON body | string | 是 | 图片URL | - |
prompt | JSON body | string | 是 | 提示词 | - |
strength | JSON body | number | 否 | 强度,范围值:0-1 | - |
aspect_ratio | JSON body | string | 否 | 图片尺寸 | - |
num_inference_steps | JSON body | integer | 否 | 范围值:2-40 | - |
enable_safety_checker | JSON body | boolean | 否 | 启用安全检查,默认值:true | - |
enable_prompt_expansion | JSON body | boolean | 否 | 启用提示扩展 | - |
acceleration | JSON body | string | 否 | 图片生成速度,枚举值:"regular","none" | - |
guidance_scale | JSON body | number | 否 | 范围值:1-10 | - |
guidance_scale_2 | JSON body | integer | 否 | 范围值:1-10 | - |
shift | JSON body | integer | 否 | 范围值:1-10 | - |
image_format | JSON body | string | 否 | 图片输出格式:"jpeg","png" | - |
返回响应 (200)
此部分没有定义参数。
响应示例
{
"status": "IN_QUEUE",
"request_id": "f88f1b41-b325-4f23-926b-da51481bf6c6",
"response_url": "https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6",
"status_url": "https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/status",
"cancel_url": "https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/cancel",
"logs": null,
"metrics": {},
"queue_position": 0
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899894,
"name": "/fal-ai/wan/v2.2-a14b/image-to-image",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "官方文档: https://fal.ai/models/fal-ai/wan/v2.2-a14b/image-to-image",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/fal-ai/wan/v2.2-a14b/image-to-image",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"image_url": {
"type": "string",
"description": "图片URL"
},
"prompt": {
"type": "string",
"description": "提示词"
},
"strength": {
"type": "number",
"description": "强度,范围值:0-1"
},
"aspect_ratio": {
"type": "string",
"description": "图片尺寸"
},
"num_inference_steps": {
"type": "integer",
"description": "范围值:2-40"
},
"enable_safety_checker": {
"type": "boolean",
"description": "启用安全检查,默认值:true"
},
"enable_prompt_expansion": {
"type": "boolean",
"description": "启用提示扩展"
},
"acceleration": {
"type": "string",
"description": "图片生成速度,枚举值:\"regular\",\"none\""
},
"guidance_scale": {
"type": "number",
"description": "范围值:1-10"
},
"guidance_scale_2": {
"type": "integer",
"description": "范围值:1-10"
},
"shift": {
"type": "integer",
"description": "范围值:1-10"
},
"image_format": {
"type": "string",
"description": "图片输出格式:\"jpeg\",\"png\""
}
},
"required": [
"image_url",
"prompt"
],
"x-apifox-orders": [
"image_url",
"prompt",
"strength",
"aspect_ratio",
"num_inference_steps",
"enable_safety_checker",
"enable_prompt_expansion",
"acceleration",
"guidance_scale",
"guidance_scale_2",
"shift",
"image_format"
]
},
"examples": [
{
"mediaType": "application/json",
"value": "{\r\n \"image_url\": \"https://storage.googleapis.com/falserverless/example_inputs/wan-image-to-image-input.png\",\r\n \"prompt\": \"A cinematic shot of an ancient city at sunset, intricate stone buildings, warm golden light\",\r\n \"strength\": 0.5,\r\n \"aspect_ratio\": \"auto\",\r\n \"num_inference_steps\": 27,\r\n \"enable_safety_checker\": true,\r\n \"enable_prompt_expansion\": false,\r\n \"acceleration\": \"regular\",\r\n \"guidance_scale\": 3.5,\r\n \"guidance_scale_2\": 4,\r\n \"shift\": 2,\r\n \"image_format\": \"jpeg\"\r\n}"
}
],
"mediaType": "",
"oasExtensions": "",
"required": false,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": []
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 107384938,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": [],
"oasExtensions": ""
}
],
"responseExamples": [
{
"name": "成功示例",
"responseId": 107384938,
"data": "{\r\n \"status\": \"IN_QUEUE\",\r\n \"request_id\": \"f88f1b41-b325-4f23-926b-da51481bf6c6\",\r\n \"response_url\": \"https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6\",\r\n \"status_url\": \"https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/status\",\r\n \"cancel_url\": \"https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/cancel\",\r\n \"logs\": null,\r\n \"metrics\": {},\r\n \"queue_position\": 0\r\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fc09b-0b32-74f2-944a-e7d71e699e84"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436089,
"ordering": 54,
"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.107384938"
],
"visibility": "INHERITED",
"securityScheme": {},
"callbacks": ""
}