/fal-ai/nano-banana 文生图
POST /fal-ai/nano-banana
说明
概览
| Method | POST |
|---|---|
| Path | /fal-ai/nano-banana |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 65457371 |
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "prompt": { "type": "string", "description": "生成图片的提示词。" }, "num_images": { "type": "integer", "description": "生成图片数量。范围值1-4。默认值:1" } }, "required": [ "prompt" ], "x-apifox-orders": [ "prompt", "num_images" ] }, "required": false, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\r\n \"prompt\": \"An action shot of a black lab swimming in an inground suburban swimming pool. The camera is placed meticulously on the water line, dividing the image in half, revealing both the dogs head above water holding a tennis ball in it's mouth, and it's paws paddling underwater.\",\r\n \"num_images\": 1\r\n}" } ], "oasExtensions": "" }
响应
[ { "id": 755089939, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "status": { "type": "string" }, "request_id": { "type": "string" }, "response_url": { "type": "string" }, "status_url": { "type": "string" }, "cancel_url": { "type": "string" }, "logs": { "type": "null" }, "metrics": { "type": "object", "properties": {} }, "queue_position": { "type": "integer" } }, "required": [ "status", "request_id", "response_url", "status_url", "cancel_url", "logs", "metrics", "queue_position" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 755089939, "data": "{\r\n \"status\": \"IN_QUEUE\",\r\n \"request_id\": \"e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca\",\r\n \"response_url\": \"https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca\",\r\n \"status_url\": \"https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca/status\",\r\n \"cancel_url\": \"https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca/cancel\",\r\n \"logs\": null,\r\n \"metrics\": {},\r\n \"queue_position\": 0\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 671652211 } ]