Nano Banana 3.1 Flash API
Fast AI image generation via Nano Banana 3.1 Flash. Generate and edit images up to 4K resolution.
Fast, high-volume image generation via Google's Nano Banana 3. Generates and edits images from text prompts with reference images, aspect ratios, and resolutions up to 4K.
No credit card required. Takes 30 seconds.
Nano Banana 3.1 Flash API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Billing | Price |
|---|---|
| Rate | $1.00/1M input |
| Rate (~$0.19 est.) | $120.00/1M output |
2,400+
Developers
1.2M+
API calls served
100+
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Enter a prompt and generate an image with Nano Banana 3.1 Flash.
Drop image or click to upload
For image-to-image editing

Sample output — run the API to generate your own
Nano Banana 3.1 Flash specs
| Provider | |
|---|---|
| Model ID | google/nano-banana-3-flash |
| Endpoint | /v1/media/queue |
| Type | Image Generation |
| Context window | 66K tokens |
| Max output | 66K tokens |
How to get a Nano Banana 3.1 Flash API key
- 1
Create a free account
Sign up at yepapi.com with Google or email. It takes about 30 seconds and needs no card.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Nano Banana 3.1 Flash
Send a request to /v1/media/queue with the x-api-key header and model "google/nano-banana-3-flash".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Nano Banana 3.1 Flash generates images from text prompts, supporting aspect ratios and resolutions up to 4K.
It edits existing images using reference images and text instructions, not just creating new ones from scratch.
Built for high-volume, fast image generation, making it suited to producing many images quickly.
It can output high-resolution images up to 4K, suitable for detailed, production-quality visuals.
Quick start
Copy this snippet and start making calls with Nano Banana 3.1 Flash.
// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/nano-banana-3-flash",
"prompt": "A hyper-detailed miniature world inside a cracked geode crystal — tiny glowing trees, waterfalls of molten gold, bioluminescent mushrooms, dramatic volumetric light rays piercing through the crystal shell",
"options": {
"aspectRatio": "1:1"
}
}),
});
const { data } = await res.json();
const jobId = data.jobId;
// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }Nano Banana 3.1 Flash vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Nano Banana 3.1 Flash | $1.00/1M input, $120.00/1M output (~$0.19 est.) | 66K | |
| Gemini 3.1 Flash Lite Image | from $0.08/image | — | |
| Gemini 2.5 Flash Image | from $0.09/image | — | |
| Nano Banana 3 Pro | $4.00/1M input, $240.00/1M output (~$0.32 est.) | 66K | |
| FLUX 3 Image Klein | Black Forest Labs | from $0.02/image | — |
| GPT Image 2 | OpenAI | from $0.02/image | — |
| GPT Image 1 Mini | OpenAI | from $0.02/image | — |
| GPT-5.4 Image 2 | OpenAI | from $0.02/image | — |
Why use Nano Banana 3.1 Flash through YepAPI?
Nano Banana 3.1 Flash API: fast AI image generation up to 4K
Nano Banana 3.1 Flash is Google's fast, high-volume image model, generating and editing images from text prompts with reference images, aspect ratios, and resolutions up to 4K. It is built for speed, making it well suited to producing large batches of images quickly.
Through YepAPI you access Nano Banana 3.1 Flash with one API key. That same key also reaches text and other models plus YepAPI's SEO, SERP, and web-scraping endpoints, so you can research, write, and generate visuals from a single account.
What is Nano Banana 3.1 Flash?
Nano Banana 3.1 Flash is Google's fast image-generation model in the Nano Banana 3 family. It creates images from text prompts and can also edit existing images using reference images, text instructions, chosen aspect ratios, and resolutions up to 4K. Built for high-volume, low-latency generation, it is designed to produce many images quickly rather than to maximize per-image render time. It is well suited to product imagery, concept art, marketing visuals, and creative experimentation where speed and resolution both matter. Pricing is token-based: $1.00/1M input, $120.00/1M output (~$0.19 est.) per generation.
Build with Nano Banana 3.1 Flash via YepAPI
Submit image jobs to YepAPI's /v1/media/queue endpoint with your API key, providing a text prompt and optional reference images, aspect ratio, and resolution up to 4K. The queue model lets you fire off generations and retrieve results as they complete, which suits batch and high-volume image workloads. One key also unlocks text models and YepAPI's SEO, SERP, and scraping APIs, so you can, for example, scrape product data, write copy, and generate matching imagery through a single integration.
Nano Banana 3.1 Flash API pricing — token-based, ~$0.19 per image
Nano Banana 3.1 Flash uses token-based pricing: $1.00/1M input, $120.00/1M output (~$0.19 est.) per generated image. Rather than a fixed per-image fee, cost reflects the tokens consumed by the prompt and the generated output, with a typical image landing around ten cents. That makes high-volume generation predictable and affordable, especially when you produce many variations or edits in a batch.
Nano Banana 3.1 Flash for high-volume product imagery
The model is built for generating and editing images at scale: product shots in multiple aspect ratios, marketing creative variations, concept art, and edited versions of existing assets using reference images. Its speed lets you produce large batches quickly, and 4K output supports production-quality results. Paired with YepAPI's scraping and SEO tools on the same key, it fits content pipelines that gather data and produce matching visuals together.
Try Nano Banana 3.1 Flash free
New YepAPI accounts include $5 in free credit with no card required. At roughly ten cents per image, that covers dozens of generations and edits, so you can test Nano Banana 3.1 Flash on your own prompts and reference images before committing.
Start generating in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Fast, high-volume image generation via Google's Nano Banana 3. Generates and edits images from text prompts with reference images, aspect ratios, and resolutions up to 4K.
Nano Banana 3.1 Flash costs $1.00/1M input, $120.00/1M output (~$0.19 est.) through YepAPI, billed per request with no monthly fee.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Nano Banana 3.1 Flash and every other model — no separate Google account or waitlist.
New YepAPI accounts in most countries get free signup credit, enough to test Nano Banana 3.1 Flash without a card. After that you pay per request at the rates above — there is no subscription.
Use "google/nano-banana-3-flash" as the model on /v1/media/queue. The short alias "nano-banana" also works.
Ready to use Nano Banana 3.1 Flash?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
Nano Banana 3 Pro
GoogleNano Banana API for AI image generation. Generate photorealistic images from text prompts — an AI image generator API and Midjourney alternative via simple REST API.
Gemini 3.1 Flash Lite Image
GoogleGemini 3.1 Flash Lite Image from $0.08 — fast Google image generation with 14 aspect ratios.
Gemini 2.5 Flash Image
GoogleGemini 2.5 Flash Image — the original Nano Banana — from $0.09 per image via one REST call.
GPT Image 1 Mini
OpenAIGPT Image 1 Mini from $0.02 per image — the budget OpenAI image tier for drafts and volume.
Riverflow 2 Pro
SourcefulRiverflow 2 Pro from $0.32 per image — the previous-generation Sourceful flagship, still available.
GPT-5.4 Image 2
OpenAIGPT-5.4 Image 2 from $0.02 per image — reasoning-led image generation on the unified media endpoint.
More Image Generation models
- Krea K3 Edit API · Krea
- GPT Image 1 API · OpenAI
- GPT Image 2 API · OpenAI
- Riverflow 2.5 Pro API · Sourceful
- Recraft V4 Pro API · Recraft
- Riverflow 2 Fast API · Sourceful
- FLUX.2 Flex API · Black Forest Labs
- Recraft V4 Styles API · Recraft
- FLUX.2 Max API · Black Forest Labs
- Recraft V4 Styles Vector API · Recraft
- FLUX.2 Pro API · Black Forest Labs
- Meta Muse Image API · Meta