← Back to Models

google/nano-banana-pro-edit

Nano Banana Pro (a.k.a Nano Banana 2) image-to-image / image editing model. Edit one or more input images based on a prompt.

image image-to-image

Pricing

Base: 11 credits per image

Adjustments:

Example Pricing:

Base request: 14 credits
Range: 11 - 11 credits

Input Parameters

Prompt required string

The prompt for image editing.

Image URLs required array

The URLs of the images to use for image-to-image generation or image editing.

Number of Images integer

The number of images to generate.

Default: 1

Aspect Ratio string

The aspect ratio of the generated image.

Default: auto

Options: auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16

Output Format string

The format of the generated image.

Default: png

Options: jpeg, png, webp

Resolution string

The resolution of the image to generate.

Default: 1K

Options: 1K, 2K, 4K

Sync Mode boolean

If true, the media will be returned as a data URI and the output data won't be available in the request history.

Default:

Limit Generations boolean

Experimental. Limit the number of generations from each round of prompting to 1.

Default:

Enable Web Search boolean

Enable web search for the image generation task.

Default:

Directives

Advanced Keys:
output_format sync_mode limit_generations enable_web_search
Hidden Keys:
output_format
Raw JSON
{
    "identifier": "google/nano-banana-pro-edit",
    "fal_endpoint": "fal-ai/nano-banana-pro/edit",
    "type": "image",
    "category": "image-to-image",
    "description": "Nano Banana Pro (a.k.a Nano Banana 2) image-to-image / image editing model. Edit one or more input images based on a prompt.",
    "pricing": {
        "version": 1,
        "base": {
            "unit": "image",
            "credits": 11
        },
        "adjustments": [],
        "display": {
            "min_credits": 11,
            "max_credits": 11
        }
    },
    "directives": {
        "advancedKeys": [
            "output_format",
            "sync_mode",
            "limit_generations",
            "enable_web_search"
        ],
        "hiddenKeys": [
            "output_format"
        ],
        "imageArrayKeys": [
            "image_urls"
        ],
        "preRunLogs": [
            "Tip: set input_key=image_urls to pass uploaded images to this model"
        ]
    },
    "fal": {
        "input_transforms": [
            {
                "type": "set_default",
                "key": "output_format",
                "value": "png"
            }
        ]
    },
    "inputSchema": {
        "type": "object",
        "title": "Input",
        "required": [
            "prompt",
            "image_urls"
        ],
        "properties": {
            "prompt": {
                "type": "string",
                "title": "Prompt",
                "x-order": 0,
                "description": "The prompt for image editing."
            },
            "image_urls": {
                "type": "array",
                "title": "Image URLs",
                "x-order": 1,
                "description": "The URLs of the images to use for image-to-image generation or image editing.",
                "items": {
                    "type": "string",
                    "format": "uri"
                }
            },
            "num_images": {
                "type": "integer",
                "title": "Number of Images",
                "default": 1,
                "minimum": 1,
                "x-order": 2,
                "description": "The number of images to generate."
            },
            "aspect_ratio": {
                "enum": [
                    "auto",
                    "21:9",
                    "16:9",
                    "3:2",
                    "4:3",
                    "5:4",
                    "1:1",
                    "4:5",
                    "3:4",
                    "2:3",
                    "9:16"
                ],
                "type": "string",
                "title": "Aspect Ratio",
                "description": "The aspect ratio of the generated image.",
                "default": "auto",
                "x-order": 3
            },
            "output_format": {
                "enum": [
                    "jpeg",
                    "png",
                    "webp"
                ],
                "type": "string",
                "title": "Output Format",
                "description": "The format of the generated image.",
                "default": "png",
                "x-order": 4
            },
            "resolution": {
                "enum": [
                    "1K",
                    "2K",
                    "4K"
                ],
                "type": "string",
                "title": "Resolution",
                "description": "The resolution of the image to generate.",
                "default": "1K",
                "x-order": 5
            },
            "sync_mode": {
                "type": "boolean",
                "title": "Sync Mode",
                "default": false,
                "x-order": 6,
                "description": "If true, the media will be returned as a data URI and the output data won't be available in the request history."
            },
            "limit_generations": {
                "type": "boolean",
                "title": "Limit Generations",
                "default": false,
                "x-order": 7,
                "description": "Experimental. Limit the number of generations from each round of prompting to 1."
            },
            "enable_web_search": {
                "type": "boolean",
                "title": "Enable Web Search",
                "default": false,
                "x-order": 8,
                "description": "Enable web search for the image generation task."
            }
        }
    },
    "outputSchema": {
        "type": "object",
        "title": "Output",
        "properties": {
            "images": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "file_name": {
                            "type": "string"
                        },
                        "content_type": {
                            "type": "string"
                        },
                        "url": {
                            "type": "string",
                            "format": "uri"
                        },
                        "file_size": {
                            "type": "integer"
                        },
                        "width": {
                            "type": "integer"
                        },
                        "height": {
                            "type": "integer"
                        }
                    }
                }
            },
            "description": {
                "type": "string"
            }
        }
    }
}