主题
/fal-ai/nano-banana 文生图
POST
https://az.gptplus5.com/fal-ai/nano-banana
官方文档: https://fal.ai/models/fal-ai/nano-banana
请求参数
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
prompt | string | 必需 | |
num_images | integer | 可选 | 生成图片数量。范围值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
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
status | string | 必需 | |
request_id | string | 必需 | |
response_url | string | 必需 | |
status_url | string | 必需 | |
cancel_url | string | 必需 | |
logs | null | 必需 | |
metrics | object | 必需 | |
queue_position | integer | 必需 |
响应示例
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
}