# Nano Banana Pro

## nano-banana-pro-image-to-image

> Nano Banana Pro (a.k.a Nano Banana 2) is Google's new state-of-the-art image generation and editing model

```json
{"openapi":"3.1.0","info":{"title":"API Reference","version":"1.0.0"},"tags":[{"name":"nano-banana-pro"}],"servers":[{"url":"https://image.onerouter.pro","description":"Image"}],"security":[],"paths":{"/v1/images/edits":{"post":{"summary":"nano-banana-pro-image-to-image","deprecated":false,"description":"Nano Banana Pro (a.k.a Nano Banana 2) is Google's new state-of-the-art image generation and editing model","tags":["nano-banana-pro"],"parameters":[{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"model is the model name"},"prompt":{"type":"string","description":"The text prompt to generate an image from."},"size":{"type":"string","description":"The aspect ratio of the generated image. Default value: `auto`\n\nPossible enum values: `auto`, `21:9`, `16:9`, `3:2`, `4:3`, `5:4`, `1:1`, `4:5`, `3:4`, `2:3`, `9:16`","enum":["auto","21:9","16:9","3:2","4:3","5:4","1:1","4:5","3:4","2:3","9:16"],"default":"auto"},"image_urls":{"type":"array","items":{"type":"string"},"description":"The URLs of the images to use for image-to-image generation or image editing."},"resolution":{"type":"string","description":"The resolution of the image to generate. Default value: `\"1K\"`\n\nPossible enum values: `1K`, `2K`, `4K`","enum":["1K","2K","4K"],"default":"1K"},"enable_web_search":{"type":"boolean","description":"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."},"n":{"type":"integer","description":"The number of images to generate. Default value: `1`","default":1,"enum":[1,2,3,4]},"output_format":{"type":"string","description":"output_format indicate the output format, default value is `url`.","enum":["url","b64_json"],"default":"url"}},"required":["model","prompt","image_urls"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"b64_json":{"type":"string"},"revised_prompt":{"type":"string"}}}},"created":{"type":"integer"}},"required":["data","created"]}}},"headers":{}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infronai.gitbook.io/docs/media-apis/image-to-image-api/nano-banana-pro.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
