Gemini

Nano Banana Pro

Image
Not available
Generate Now

Google Nano Banana Pro image-to-image - professional grade with up to 8 reference images.

Type
Image to Image
Billed
per img
Provider
Google

Pricing

/ img
Resolution: 1K$0.15 / img
Resolution: 2K$0.15 / img
Resolution: 4K$0.20 / img

Supported parameters

modelSettings
  • Promptprompt
  • Image Inputimage_input
  • Aspect Ratioaspect_ratio
  • Resolutionresolution
  • Output Formatoutput_format

Code examples

POST /v1/generations

Generations are async — the request returns immediately with an id; poll for the result.

python
import requests

response = requests.post(
    "https://api.modelstack.cc/v1/generations",
    headers={"Authorization": "Bearer sk_YOUR_API_KEY"},
    json={
        "type": "IMAGE_TO_IMAGE",
        "prompt": "A serene mountain landscape at sunset",
        "model": "google/nano-banana-pro",
        "modelSettings": {
            "aspect_ratio": "16:9",
            "resolution": "1K"
        }
    },
)
generation_id = response.json()["data"]["id"]

# Poll for the result
result = requests.get(
    f"https://api.modelstack.cc/v1/generations/{generation_id}",
    headers={"Authorization": "Bearer sk_YOUR_API_KEY"},
).json()
print(result["data"]["status"])

Related models

Frequently asked questions

How is Nano Banana Pro billed on ModelStack?expand_more
Nano Banana Pro (Image to Image) is billed at a flat, prepaid rate of $0.15 / img — generation pricing has no tier-based discounts. Final request costs are available in the console.
What other generation types does Nano Banana Pro support?expand_more
Besides Image to Image, Nano Banana Pro also supports: Text to Image.
Which parameters does Nano Banana Pro support?expand_more
Nano Banana Pro supports: Prompt, Image Input, Aspect Ratio, Resolution, Output Format.
How can I generate with Nano Banana Pro?expand_more
Use the Generate composer in your dashboard, or call the API directly with model `google/nano-banana-pro` and type `IMAGE_TO_IMAGE` — see the code example above.