Skip to content

/fal-ai/nano-banana 文生图

POST https://az.gptplus5.com/fal-ai/nano-banana

官方文档: https://fal.ai/models/fal-ai/nano-banana

请求参数

Body 参数 (application/json)

参数名类型必需说明
promptstring必需
num_imagesinteger可选生成图片数量。范围值1-4。默认值:1

请求示例

json
{
    "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.",
    "num_images": 1
}

cURL 示例

bash
curl --location --request POST 'https://az.gptplus5.com/fal-ai/nano-banana' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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.",
    "num_images": 1
}'

返回响应

🟢200成功

响应 Body

参数名类型必需说明
statusstring必需
request_idstring必需
response_urlstring必需
status_urlstring必需
cancel_urlstring必需
logsnull必需
metricsobject必需
queue_positioninteger必需

响应示例

json
{
    "status": "IN_QUEUE",
    "request_id": "e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca",
    "response_url": "https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca",
    "status_url": "https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca/status",
    "cancel_url": "https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca/cancel",
    "logs": null,
    "metrics": {},
    "queue_position": 0
}