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 3 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","slug":"/en/api-reference/images/nano-banana","pageMetadata":{"title":"Nano Banana","description":"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.","openapi":"en/openapi/images/nano-banana.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana"},"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 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.\"\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","description":"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.","openapi":"en/openapi/images/nano-banana.yaml POST /v1/images/generate","href":"/en/api-reference/images/nano-banana"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Nano Banana","operationId":"generateNanoBanana","security":["099d674b-86c8-42c7-9154-7c7400da4559"],"description":"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.","requestBody":"1b35cd0b-4fcf-4b7b-bb66-ad59bd0f317e","responses":{"200":"16c18c48-da46-4eb2-9078-c5df6be349ca","400":"1f24a52a-2fca-4ba3-8d84-ec544548aab8"},"method":"post","type":"path","servers":["9a8671a8-975a-48f9-8e61-f5be731bb922"],"path":"/v1/images/generate","baseUrlOptions":["https://openapi.imini.ai/imini/router"],"title":"Nano Banana","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`.","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":"An orange cat napping under a cherry blossom tree, watercolor style, soft lighting","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 **3** 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":3,"uniqueKey":"images","typeLabel":"object[]"},"aspect_ratio":{"type":"string","description":"Output aspect ratio. Allowed values:\n\n`1:1` `2:3` `3:2` `3:4` `4:3` `4:5` `5:4` `9:16` `16:9` `21:9`\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"],"uniqueKey":"aspect_ratio","typeLabel":"enum\u003cstring>"},"resolution":{"type":"string","description":"Output quality tier. Currently only `1K` is supported; other values will be downgraded.","default":"1K","enum":["1K"],"uniqueKey":"resolution","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Text to Image":{"title":"Text to Image","value":{"model":"google/nano-banana","prompt":"A cute shiba inu in a spacesuit standing on the moon, 3D cartoon style","aspect_ratio":"1:1","resolution":"1K"}},"Image Edit":{"title":"Image Edit","value":{"model":"google/nano-banana","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":"1K"}},"Image Edit (base64)":{"title":"Image Edit (base64)","value":{"model":"google/nano-banana","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":"1K"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"16c18c48-da46-4eb2-9078-c5df6be349ca":{"description":"Submitted successfully (asynchronous mode)","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"},"1f24a52a-2fca-4ba3-8d84-ec544548aab8":{"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":{"099d674b-86c8-42c7-9154-7c7400da4559":{"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":{"9a8671a8-975a-48f9-8e61-f5be731bb922":{"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.yaml"},"subdomain":"nexuslinelimited-1d434f54","siteName":"imini API","title":"Nano Banana - imini API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/images/nano-banana","matchLevel":0},"zh":{"href":"/zh/api-reference/images/nano-banana","matchLevel":1}}},"lastModified":"2026-04-20T09:44:32.627Z","originalFileLocation":"en/api-reference/images/nano-banana.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 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.\">\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 - imini API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.\">\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\">\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\u0026amp;description=Google+Gemini+2.5+Flash+image+generation+model.+Fast+and+low-cost%2C+supporting+both+text-to-image+and+image-to-image.\u0026amp;theme=c12d0a0a12aeb7d40999b664\u0026amp;signature=4d65601a366019c6dbda284920c841b8d31f2ca7a9538d2441310628c44d579e\">\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 - imini API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nexuslinelimited-1d434f54.mintlify.site/_mintlify/api/og/v2?division=Image+Models\u0026amp;title=Nano+Banana\u0026amp;description=Google+Gemini+2.5+Flash+image+generation+model.+Fast+and+low-cost%2C+supporting+both+text-to-image+and+image-to-image.\u0026amp;theme=c12d0a0a12aeb7d40999b664\u0026amp;signature=4d65601a366019c6dbda284920c841b8d31f2ca7a9538d2441310628c44d579e\">\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\">\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.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.imini.ai/en/api-reference/images/nano-banana\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.imini.ai/zh/api-reference/images/nano-banana\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.imini.ai/en/api-reference/images/nano-banana\">\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#webpage\",\"url\":\"https://docs.imini.ai/en/api-reference/images/nano-banana\",\"name\":\"Nano Banana\",\"description\":\"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.\",\"dateModified\":\"2026-04-20T09:44:32.627Z\",\"isPartOf\":{\"@id\":\"https://docs.imini.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana#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\",\"item\":\"https://docs.imini.ai/en/api-reference/images/nano-banana\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana#apireference\",\"headline\":\"Nano Banana\",\"name\":\"Nano Banana\",\"description\":\"Google Gemini 2.5 Flash image generation model. Fast and low-cost, supporting both text-to-image and image-to-image.\",\"url\":\"https://docs.imini.ai/en/api-reference/images/nano-banana\",\"mainEntityOfPage\":{\"@id\":\"https://docs.imini.ai/en/api-reference/images/nano-banana#webpage\"},\"dateModified\":\"2026-04-20T09:44:32.627Z\",\"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.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","description":"Query the status and result of an asynchronous image generation 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","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"}]}]},"basePath":"","title":"Nano Banana - 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"]}