Gemini

Nano Banana 2 Lite

Image
Not available
Generate Now

Google Nano Banana 2 Lite text-to-image. Fast, efficient generation.

Type
Text to Image
Billed
per img
Provider
Google

Pricing

/ img
Price$0.04 / img

Supported parameters

modelSettings
  • Promptprompt
  • Aspect Ratioaspect_ratio

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": "TEXT_TO_IMAGE",
        "prompt": "A serene mountain landscape at sunset",
        "model": "google/nano-banana-2-lite",
        "modelSettings": {
            "aspect_ratio": "16:9"
        }
    },
)
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 2 Lite billed on ModelStack?expand_more
Nano Banana 2 Lite (Text to Image) is billed at a flat, prepaid rate of $0.04 / img — generation pricing has no tier-based discounts. Final request costs are available in the console.
What other generation types does Nano Banana 2 Lite support?expand_more
Besides Text to Image, Nano Banana 2 Lite also supports: Image to Image.
Which parameters does Nano Banana 2 Lite support?expand_more
Nano Banana 2 Lite supports: Prompt, Aspect Ratio.
How can I generate with Nano Banana 2 Lite?expand_more
Use the Generate composer in your dashboard, or call the API directly with model `google/nano-banana-2-lite` and type `TEXT_TO_IMAGE` — see the code example above.