Nano Banana 2 Lite API
by Google
Generate and edit images with Google's Nano Banana 2 Lite through one unified API, the fastest, most cost-efficient model in the Nano Banana family. A single REST endpoint, async jobs, and webhooks, with no Google Cloud setup to manage.
- ~5s
- Avg. generation
- 4 credits
- From
Image · example Playground
Try Nano Banana 2 Lite right here.
Your output lands here. Hit generate to run this request in Studio.
Pricing
Simple per-generation pricing.
4 credits per generation ≈ $0.04
- You only pay for successful generations. Failed jobs are refunded automatically.
- One credit balance across every model on Apiframe, no per-model plans.
- Start with free credits. No subscription required.
- Volume discounts on larger plans.
Specs
At a glance.
Quickstart
How to call the Nano Banana 2 Lite API.
Send one POST /v2/images/generate request with your API key. The call returns a jobId you can poll, or pass a webhook_url and the result is pushed to you the moment it's ready.
Swap nano-banana-2-lite for any other model and nothing else changes.
const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
"model": "nano-banana-2-lite",
"nanoBananaParams": {
"image_input": "https://example.com/input.jpg",
"output_format": "jpg",
"google_search": false,
"image_search": false
}
}),
});
const { jobId } = await response.json();
console.log(jobId); Input schema
Every field Nano Banana 2 Lite accepts, with types and defaults. The full reference lives in the docs.
| Field | Type | Description |
|---|---|---|
| prompt required | string | Text description of what to generate. |
| model required | string | The model identifier for this endpoint. Default:"nano-banana-2-lite" · "nano-banana-2-lite" |
| nanoBananaParams.image_input | string (URL) | Compose with or edit a reference image. |
| nanoBananaParams.output_format | string | Output format Default:"jpg" · "jpg", "png", "webp" |
| nanoBananaParams.google_search | boolean | Google search grounding Default:false |
| nanoBananaParams.image_search | boolean | Image search grounding Default:false |
The Nano Banana flagship
Nano Banana 2 Lite is one of 4 Nano Banana image models on Apiframe. The full editorial page (showcase, comparison, and use cases) lives on the flagship.
Pro-level quality at Flash speed.
Explore Nano Banana 2 All image modelsNano Banana 2 Lite questions
What teams ask before shipping with Nano Banana 2 Lite. Everything else lives in the docs.
What is Nano Banana 2 Lite?
Google's Gemini 3.1 Flash Lite Image, the fastest and most cost-efficient model in the Nano Banana family, built for high-velocity, high-volume image generation.
How is it different from Nano Banana 2?
It is around 2.7x faster and cheaper, and generates at 1K resolution only, whereas Nano Banana 2 goes up to 4K and is better for the most demanding work.
What resolution does it produce?
1K resolution across 14 aspect ratios. There is no resolution parameter, it is optimized for speed and scale.
How fast is it?
Roughly 4 seconds per image, making it well suited to prototyping, real-time apps, and batch generation.
Can it edit images and use reference inputs?
Yes. Pass one or more image URLs to edit or compose, and optionally enable Google Search or Image Search grounding for real-world context.
Where can you access it?
Through Apiframe, as well as Google AI Studio, the Gemini API, and Gemini Enterprise Agent Platform.
Related models
All image modelsFlux 2 Max
by Black Forest Labs
Highest-quality Flux 2 tier.
View modelMidjourney
by Midjourney
Iconic stylised, cinematic look.
View modelSeedream 5.0 Pro
by ByteDance
Flagship ByteDance model with sharp 1K/2K output and up to 10 reference images.
View modelIdeogram v4 Quality
by Ideogram
Highest-quality Ideogram v4 tier for production-ready images.
View model9,800+
developers & companies
Official partner of
Power your next AI product with Apiframe.
Instant access to 70+ media models through a single API. Start free and scale when you're ready.