Runflow
Back to Gallery

google/nano-banana-pro/edit

Nano Banana Pro is Google's new state-of-the-art image generation and editing model

$0.15/image 2026-04-06

Install

pip install requests

Run the model

import requests

response = requests.post(
    "https://api.runflow.io/v1/run/nano-banana-pro/edit",
    headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
    json={
    "prompt": "Convert to Studio Ghibli anime style: soft watercolor textures, warm pastel l...",
    "image_urls": [
        "https://public.runflow.io/images/models/_shared/base-engineer.png"
    ]
    },
)

data = response.json()
print(data["images"][0]["url"])

Input schema

ParameterTypeDescription
promptstringThe prompt for image editing.
aspect_ratiostringThe aspect ratio of the generated image.
enable_web_searchbooleanEnable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image.
resolutionstringThe resolution of the image to generate.
num_imagesintegerThe number of images to generate.
output_formatstringThe format of the generated image.
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.
safety_tolerancestringThe safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict.
seedintegerThe seed for the random number generator.
image_urlsarrayThe URLs of the images to use for image-to-image generation or image editing.
limit_generationsbooleanExperimental 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.

Output schema

FieldTypeDescription
imagesjsonThe edited images.
descriptionstringThe description of the generated images.

Related models

Start generating with Nano Banana Pro — Edit

Get API access in minutes. No GPU setup, no infrastructure to manage.