Skip to content

/fal-ai/nano-banana/edit 图片编辑

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

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

请求参数

Body 参数 (application/json)

参数名类型必需说明
promptstring必需
image_urlsarray[string]必需需要编辑的图片url。
num_imagesinteger可选生成图片数量。范围值1-4。默认值:1

请求示例

json
{
  "prompt": "make a photo of the man driving the car down the california coastline",
  "image_urls": [
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png",
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input-2.png"
  ],
  "num_images": 1
}

cURL 示例

bash
curl --location --request POST 'https://az.gptplus5.com/fal-ai/nano-banana/edit' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "make a photo of the man driving the car down the california coastline",
  "image_urls": [
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png",
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input-2.png"
  ],
  "num_images": 1
}'

返回响应

🟢200成功

响应 Body

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

响应示例

json
{
    "status": "IN_QUEUE",
    "request_id": "f8837f29-26cb-4213-90f5-22b2911a0ea7",
    "response_url": "https://queue.fal.run/fal-ai/nano-banana/requests/f8837f29-26cb-4213-90f5-22b2911a0ea7",
    "status_url": "https://queue.fal.run/fal-ai/nano-banana/requests/f8837f29-26cb-4213-90f5-22b2911a0ea7/status",
    "cancel_url": "https://queue.fal.run/fal-ai/nano-banana/requests/f8837f29-26cb-4213-90f5-22b2911a0ea7/cancel",
    "logs": null,
    "metrics": {},
    "queue_position": 0
}