# Nano Banana Pro — Edit > Nano Banana Pro is Google's new state-of-the-art image generation and editing model ## Overview - **Endpoint**: `https://api.runflow.io/v1/run/google/nano-banana-pro/edit` - **Model ID**: `google/nano-banana-pro/edit` - **Provider**: Google - **License**: commercial - **Last Updated**: 2026-04-06 ## Pricing - **Base price**: $0.15/image - **Note**: Usage-based, per image ## Input Schema ### `prompt` (string, required) The prompt for image editing. ### `aspect_ratio` (string, optional) The aspect ratio of the generated image. - **Default**: `auto` ### `enable_web_search` (boolean, optional) Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image. - **Default**: `false` ### `resolution` (string, optional) The resolution of the image to generate. - **Default**: `1K` - **Options**: `1K`, `2K`, `4K` ### `num_images` (integer, optional) The number of images to generate. - **Default**: `1` - **Min**: 1 - **Max**: 4 ### `output_format` (string, optional) The format of the generated image. - **Default**: `png` - **Options**: `jpeg`, `png`, `webp` ### `sync_mode` (boolean, optional) If `True`, the media will be returned as a data URI and the output data won't be available in the request history. - **Default**: `false` ### `safety_tolerance` (string, optional) The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. - **Default**: `4` - **Options**: `1`, `2`, `3`, `4`, `5`, `6` ### `seed` (integer, optional) The seed for the random number generator. ### `image_urls` (array, required) The URLs of the images to use for image-to-image generation or image editing. ### `limit_generations` (boolean, optional) Experimental parameter to limit the number of generations from each round of prompting to 1. Set to `True` to to disregard any instructions in the prompt regarding the number of images to generate. - **Default**: `false` ## Usage Examples ### cURL ```bash curl -X POST https://api.runflow.io/v1/run/google/nano-banana-pro/edit \ -H "Authorization: Bearer $RUNFLOW_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A professional headshot, soft studio lighting", "output_format": "png" }' ``` ### Python ```python import requests response = requests.post( "https://api.runflow.io/v1/run/google/nano-banana-pro/edit", headers={"Authorization": "Bearer RUNFLOW_API_KEY"}, json={ "prompt": "A professional headshot, soft studio lighting", "output_format": "png", }, ) data = response.json() print(data["images"][0]["url"]) ``` ### JavaScript ```javascript const response = await fetch( "https://api.runflow.io/v1/run/google/nano-banana-pro/edit", { method: "POST", headers: { "Authorization": "Bearer RUNFLOW_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A professional headshot, soft studio lighting", output_format: "png", }), } ); const data = await response.json(); console.log(data.images[0].url); ``` ## Additional Resources - [Playground](https://www.runflow.io/models/google/nano-banana-pro/edit) - [API Reference](https://www.runflow.io/models/google/nano-banana-pro/edit/api) - [Documentation](https://www.runflow.io/docs)