Reference image list. Omitting or passing an empty array means text-to-image mode; passing images switches to image-to-image / style reference mode. Up to 14 images.
When reference images are provided and this parameter is omitted, the model automatically infers the aspect ratio from the reference images and uses it as the output ratio.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"imini API","colors":{"primary":"#0070f3","light":"#60a5fa","dark":"#1d4ed8"},"logo":{"light":"https://s3.imini.ai/logo/light-logo.png","dark":"https://s3.imini.ai/logo/dark-logo.png","href":"https://www.imini.ai"},"favicon":"https://mintcdn.com/nexuslinelimited-1d434f54/GCBcSZh24foUV7UM/favicon.png?fit=max\u0026auto=format\u0026n=GCBcSZh24foUV7UM\u0026q=85\u0026s=b680557d291e930caac6ae9a9bcba31c","api":{"openapi":["zh/openapi/images/nano-banana.yaml","zh/openapi/images/nano-banana-pro.yaml","zh/openapi/images/nano-banana-2.yaml","zh/openapi/images/gpt-image-2.yaml","zh/openapi/images/task-query.yaml","zh/openapi/videos/kling-v3.yaml","zh/openapi/videos/kling-v3-omni.yaml","zh/openapi/videos/kling-v3-motion-control.yaml","zh/openapi/videos/seedance-2-0.yaml","zh/openapi/videos/seedance-2-0-fast.yaml","zh/openapi/videos/happyhorse-1-0.yaml","zh/openapi/videos/wan3-0-video.yaml","zh/openapi/videos/task-query.yaml","en/openapi/images/nano-banana.yaml","en/openapi/images/nano-banana-pro.yaml","en/openapi/images/nano-banana-2.yaml","en/openapi/images/gpt-image-2.yaml","en/openapi/images/task-query.yaml","en/openapi/videos/kling-v3.yaml","en/openapi/videos/kling-v3-omni.yaml","en/openapi/videos/kling-v3-motion-control.yaml","en/openapi/videos/seedance-2-0.yaml","en/openapi/videos/seedance-2-0-fast.yaml","en/openapi/videos/happyhorse-1-0.yaml","en/openapi/videos/wan3-0-video.yaml","en/openapi/videos/task-query.yaml"],"playground":{"display":"interactive"}},"background":{"decoration":"grid"},"navbar":{"primary":{"type":"button","label":"Get Started","href":"https://imini.ai"}},"footer":{"socials":{"website":"https://imini.ai"},"links":[{"header":"Model","items":[{"label":"Images","href":"https://imini.ai/tools/ai-image"},{"label":"Videos","href":"https://imini.ai/tools/ai-video"}]},{"header":"Docs","items":[{"label":"Guide","href":"/en/guide/introduction"},{"label":"API Reference","href":"/en/api-reference/images/nano-banana"},{"label":"Changelog","href":"/en/changelog/index"}]},{"header":"About","items":[{"label":"Privacy Policy","href":"/en/legal/privacy"},{"label":"Terms of Service","href":"/en/legal/terms"}]}]},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"en/guide/introduction"},{"language":"zh","href":"zh/guide/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nexuslinelimited-1d434f54","hasAudioNarration":false,"actualSubdomain":"nexuslinelimited-1d434f54","customDomains":["docs.imini.ai"],"gitSource":{"type":"github","owner":"imini-ai","repo":"imini-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ab26370bfea4537890440fc","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"en","tag":"API Reference","count":13},{"language":"zh","tag":"API 手册","count":13},{"language":"en","tag":"Video Models","count":8},{"language":"zh","tag":"视频模型 API","count":8},{"language":"en","tag":"Image Models","count":5},{"language":"zh","tag":"图像模型 API","count":5},{"language":"en","tag":"Terms \u0026 Policies","count":4},{"language":"zh","tag":"条款与协议","count":4},{"language":"en","tag":"Guide","count":3},{"language":"en","tag":"Quickstart","count":3},{"language":"zh","tag":"用户指南","count":3},{"language":"zh","tag":"快速开始","count":3},{"language":"en","tag":"Changelog","count":2},{"language":"zh","tag":"更新公告","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"[data-component-part=\"localization-select-trigger\"] .relative.size-4,[data-radix-popper-content-wrapper] [data-component-part] .relative.size-4{display:none}"}],"page":{"pagePath":"en/api-reference/images/nano-banana-2","slug":"/en/api-reference/images/nano-banana-2","pageMetadata":{"title":"Nano Banana 2","description":"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.","openapi":"en/openapi/images/nano-banana-2.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana-2"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Nano Banana 2","description":"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.","openapi":"en/openapi/images/nano-banana-2.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana-2"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Nano Banana 2","operationId":"generateNanoBanana2","security":["3dc814c9-0b24-4d72-8594-f82502fbc7cd"],"description":"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.","requestBody":"d4a65fa1-3de2-40cd-9954-6f0784e2a330","responses":{"200":"a96fc50b-e82d-43d2-b724-da44afa34ab3","400":"2b849469-2e9e-44dc-9f16-c49ab88a9dcc"},"method":"post","type":"path","servers":["4170a78f-ccd8-4269-9ea8-81448203eb50"],"path":"/v1/images/generate","baseUrlOptions":["https://openapi.imini.ai/imini/router"],"title":"Nano Banana 2","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","prompt"],"properties":{"model":{"type":"string","description":"Fixed value `google/nano-banana-2`.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"prompt":{"type":"string","description":"The prompt. Up to **6000** characters. Supports English and Chinese; detail-rich descriptions yield better results.","example":"A cute shiba inu in a spacesuit standing on the moon, 3D cartoon style","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"images":{"type":"array","description":"Reference image list. **Omitting or passing an empty array** means text-to-image mode; passing images switches to image-to-image / style reference mode. Up to **14** images.","items":{"type":"object","properties":{"url":{"type":"string","description":"Reference image address, in one of two forms: **1)** A publicly accessible URL (starting with `http://` or `https://`); **2)** A Data URI base64 encoding (starting with `data:image/`, e.g., `data:image/png;base64,iVBORw0KGgo...`). Supported formats: `png` / `jpg` / `webp`, decoded size up to **10MB**.","uniqueKey":"images.items.[INDEX].url","typeLabel":"string"},"reference_type":{"type":"string","description":"Reference type:\n- `asset` — content reference\n- `style` — style reference","default":"asset","enum":["asset","style"],"uniqueKey":"images.items.[INDEX].reference_type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"images.items.[INDEX]","typeLabel":"object"},"maxItems":14,"uniqueKey":"images","typeLabel":"object[]"},"aspect_ratio":{"type":"string","description":"Output aspect ratio. Supports **14 values**:\n`1:1` `2:3` `3:2` `3:4` `4:3` `4:5` `5:4` `9:16` `16:9` `21:9` `1:4` `1:8` `4:1` `8:1`\n\n> When reference images are provided and this parameter is omitted, the model automatically infers the aspect ratio from the reference images and uses it as the output ratio.","default":"1:1","enum":["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","21:9","1:4","1:8","4:1","8:1"],"uniqueKey":"aspect_ratio","typeLabel":"enum\u003cstring>"},"resolution":{"type":"string","description":"Output quality tier: `512` / `1K` / `2K` / `4K`.\n\n> `512` is an exclusive low-resolution tier for this model family, ideal for quick previews or prototype validation — the lowest cost and fastest option.","default":"1K","enum":["512","1K","2K","4K"],"uniqueKey":"resolution","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Text to Image":{"title":"Text to Image","value":{"model":"google/nano-banana-2","prompt":"A cute shiba inu in a spacesuit standing on the moon, 3D cartoon style","aspect_ratio":"1:1","resolution":"512"}},"Image Edit":{"title":"Image Edit","value":{"model":"google/nano-banana-2","prompt":"A cute shiba inu in a spacesuit standing on the moon, 3D cartoon style","images":[{"url":"https://example.com/input.jpg","reference_type":"asset"}],"aspect_ratio":"16:9","resolution":"4K"}},"Image Edit (base64)":{"title":"Image Edit (base64)","value":{"model":"google/nano-banana-2","prompt":"A cute shiba inu in a spacesuit standing on the moon, 3D cartoon style","images":[{"url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...","reference_type":"asset"}],"aspect_ratio":"16:9","resolution":"4K"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"a96fc50b-e82d-43d2-b724-da44afa34ab3":{"description":"Submitted successfully","content":{"application/json":{"schema":{"type":"object","title":"Submit Success (Pending)","properties":{"task_id":{"type":"string","description":"Unique task ID, used for subsequent polling","example":"task_2041350318103396352","uniqueKey":"task_id","typeLabel":"string"},"model":{"type":"string","description":"The model ID used for this task","example":"google/nano-banana","uniqueKey":"model","typeLabel":"string"},"created_at":{"type":"string","description":"Task creation time","example":"2026-04-07T03:00:17.062Z","uniqueKey":"created_at","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID","example":"285f20ce-8158-401b-945c-7bc6a7ef6ead","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"Submit Success (Pending) · object"},"examples":{"Example":{"title":"Example","value":{"task_id":"task_2041350318103396352","model":"google/nano-banana","created_at":"2026-04-07T03:00:17.062Z","request_id":"285f20ce-8158-401b-945c-7bc6a7ef6ead"}}},"exampleType":"generated"}},"exampleType":"generated"},"2b849469-2e9e-44dc-9f16-c49ab88a9dcc":{"description":"Validation Error (e.g. invalid parameter, invalid prompt)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code, e.g., INVALID_PROMPT","example":"INVALID_PROMPT","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Error message details","example":"Prompt contains disallowed content","uniqueKey":"error.message","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code","example":400,"uniqueKey":"error.status","typeLabel":"integer"},"request_id":{"type":"string","description":"Unique request identifier","example":"req_abc123","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INVALID_PROMPT","message":"Prompt contains disallowed content","status":400,"request_id":"req_abc123"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3dc814c9-0b24-4d72-8594-f82502fbc7cd":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Pass `Authorization: Bearer \u003cYOUR_API_KEY>` in the request header. Go to the [API Keys management page](https://imini.ai/api-keys) to create and manage API Keys.\n","scopes":[]}}},"servers":{"4170a78f-ccd8-4269-9ea8-81448203eb50":{"url":"https://openapi.imini.ai/imini/router"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Pass `Authorization: Bearer \u003cYOUR_API_KEY>` in the request header. Go to the [API Keys management page](https://imini.ai/api-keys) to create and manage API Keys.\n","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Pass `Authorization: Bearer \u003cYOUR_API_KEY>` in the request header. Go to the [API Keys management page](https://imini.ai/api-keys) to create and manage API Keys.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"en/openapi/images/nano-banana-2.yaml"},"subdomain":"nexuslinelimited-1d434f54","siteName":"imini API","title":"Nano Banana 2 - imini API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/images/nano-banana-2","matchLevel":0},"zh":{"href":"/zh/api-reference/images/nano-banana-2","matchLevel":1}}},"lastModified":"2026-04-20T09:44:32.621Z","originalFileLocation":"en/api-reference/images/nano-banana-2.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"imini API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Nano Banana 2 - imini API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"imini API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nexuslinelimited-1d434f54.mintlify.site/_mintlify/api/og/v2?division=Image+Models\u0026amp;title=Nano+Banana+2\u0026amp;description=Google+Gemini+3.1+Flash+Image+%E2%80%94+the+most+fully+featured+Flash+model%2C+with+14+aspect+ratios+and+512p+to+4K+resolutions.\u0026amp;theme=c12d0a0a12aeb7d40999b664\u0026amp;signature=047edba5338d277d8b5e5dac6b8c9448ad4ada7e119ba58fa89abd5db2743898\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Nano Banana 2 - imini API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nexuslinelimited-1d434f54.mintlify.site/_mintlify/api/og/v2?division=Image+Models\u0026amp;title=Nano+Banana+2\u0026amp;description=Google+Gemini+3.1+Flash+Image+%E2%80%94+the+most+fully+featured+Flash+model%2C+with+14+aspect+ratios+and+512p+to+4K+resolutions.\u0026amp;theme=c12d0a0a12aeb7d40999b664\u0026amp;signature=047edba5338d277d8b5e5dac6b8c9448ad4ada7e119ba58fa89abd5db2743898\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nexuslinelimited-1d434f54/JvxomuF8W3hNJ1Ya/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"imini API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0070f3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/images/nano-banana-2.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.imini.ai/zh/api-reference/images/nano-banana-2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.imini.ai/#organization\",\"name\":\"imini API\",\"url\":\"https://docs.imini.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://s3.imini.ai/logo/light-logo.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.imini.ai#website\",\"name\":\"imini API\",\"url\":\"https://docs.imini.ai\",\"publisher\":{\"@id\":\"https://docs.imini.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2#webpage\",\"url\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\",\"name\":\"Nano Banana 2\",\"description\":\"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.\",\"dateModified\":\"2026-04-20T09:44:32.621Z\",\"isPartOf\":{\"@id\":\"https://docs.imini.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Image Models\",\"item\":\"https://docs.imini.ai/en/api-reference/images/task-query\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nano Banana 2\",\"item\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2#apireference\",\"headline\":\"Nano Banana 2\",\"name\":\"Nano Banana 2\",\"description\":\"Google Gemini 3.1 Flash Image — the most fully featured Flash model, with 14 aspect ratios and 512p to 4K resolutions.\",\"url\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2\",\"mainEntityOfPage\":{\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana-2#webpage\"},\"dateModified\":\"2026-04-20T09:44:32.621Z\",\"publisher\":{\"@id\":\"https://docs.imini.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.imini.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"imini API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"imini API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/images/nano-banana-2.md","siteName":"imini API","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Guide","pages":[{"title":"Guide","href":"/en/guide/introduction"}]},{"tab":"API Reference","groups":[{"group":"Image Models","pages":[{"title":"Get Task","openapi":"en/openapi/images/task-query.yaml GET /v1/images/tasks/{task_id}","href":"/en/api-reference/images/task-query"},{"title":"Nano Banana","openapi":"en/openapi/images/nano-banana.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana"},{"title":"Nano Banana Pro","description":"Google Gemini 3 Pro image generation model. Up to 4K output and up to 14 reference images.","openapi":"en/openapi/images/nano-banana-pro.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana-pro"},{"title":"Nano Banana 2","openapi":"en/openapi/images/nano-banana-2.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana-2"},{"title":"GPT Image 2","description":"OpenAI gpt-image-2 image generation model. 1K / 2K / 4K resolutions with three quality tiers, up to 6 reference images.","openapi":"en/openapi/images/gpt-image-2.yaml POST /v1/images/generate","href":"/en/api-reference/images/gpt-image-2"}]},{"group":"Video Models","pages":[{"title":"Get Task","openapi":"en/openapi/videos/task-query.yaml GET /v1/videos/tasks/{task_id}","href":"/en/api-reference/videos/task-query"},{"title":"Seedance 2.0","openapi":"en/openapi/videos/seedance-2-0.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/seedance-2-0"},{"title":"Seedance 2.0 Fast","openapi":"en/openapi/videos/seedance-2-0-fast.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/seedance-2-0-fast"},{"title":"HappyHorse 1.0","openapi":"en/openapi/videos/happyhorse-1-0.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/happyhorse-1-0"},{"title":"Wan 3.0 Video","openapi":"en/openapi/videos/wan3-0-video.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/wan3-0-video"},{"title":"Kling v3","openapi":"en/openapi/videos/kling-v3.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/kling-v3"},{"title":"Kling v3 Omni","openapi":"en/openapi/videos/kling-v3-omni.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/kling-v3-omni"},{"title":"Kling v3 Motion Control","openapi":"en/openapi/videos/kling-v3-motion-control.yaml POST /v1/videos/generate","href":"/en/api-reference/videos/kling-v3-motion-control"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/en/changelog"}]},{"tab":"Terms \u0026 Policies","pages":[{"title":"Terms \u0026 Policies","href":"/en/legal/privacy"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/images/nano-banana-2"}]}]},"basePath":"","title":"Nano Banana 2 - imini API","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}