Nano Banana 2 API (Gemini 3.1 Flash Image)
Nano Banana 2 is the familiar name for Gemini 3.1 Flash Image. Use the exact Gemini ID on this page for concept images, thumbnail drafts and initial product creative. The published output dimensions and reference-image limits below determine whether a requested editing workflow is available.
google/gemini-3.1-flash-image-preview · Google · Image
Availability and pricing
Published contract · ready
$0.018 per image
Prices shown use the public default price group. Your account price and the request quote determine the amount reserved and charged.
Published verification: 2026-10-05T20:53:28.214Z
Pricing revision: rev_77d43bdb-40af-4037-b1c9-ad4a29d977a4
Supported inputs and limits
tasks
- max References
- 0
- expected Outputs
- 1
- units
- [1]
- resolutions
- ["1K"]
- aspects
- ["1:1"]
- delivery Spec
- {"width":1024,"aspect":"1:1","height":1024,"quality":"standard"}
- edit
- Not enabled
- video References
- Not enabled
- extension
- Not enabled
- audio Control
- Not enabled
- silent Output Verified
- Not enabled
{
"kind": "image",
"modes": [
"generate"
],
"qualities": [
"standard"
],
"units": [
1
],
"aspects": [
"1:1"
],
"resolutions": [
"1K"
],
"maxReferences": 0,
"expectedOutputs": 1,
"deliverySpec": {
"width": 1024,
"aspect": "1:1",
"height": 1024,
"quality": "standard"
}
}Limitations
- Draft only until live verification and actual cost reconciliation pass. Single text-to-image draft; exact archived dimensions still require live confirmation.
API request example
Use your own API key. This is a request body; asynchronous tasks also require checking their status and output.
POST /v1/tasks
{
"model": "google/gemini-3.1-flash-image-preview",
"prompt": "A quiet orbit",
"mode": "generate",
"units": 1,
"quality": "standard",
"maxCost": 1000000,
"idempotencyKey": "replace-with-a-new-business-key"
}Open API examplesIs Nano Banana Pro the same request?
These are distinct model variants. Use this page’s exact Gemini 3.1 Flash Image identifier and its configured settings rather than parameters copied from another variant.
Try this model
Sign in and check your available credits before sending a request.
Open Playground Compare models API documentation