/fal-ai/wan/v2.2-a14b/image-to-image
POST /fal-ai/wan/v2.2-a14b/image-to-image
说明
概览
| Method | POST |
|---|---|
| Path | /fal-ai/wan/v2.2-a14b/image-to-image |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 61445274 |
参数
{ "query": [], "path": [], "cookie": [], "header": [] }
请求体
{ "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" ] }, "mediaType": "", "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}" } ], "oasExtensions": "" }
响应
[ { "id": 767390789, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {}, "x-apifox-orders": [] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 767390789, "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": 693718396 } ]