## Basic tool info Model name: google/nano-banana-2-lite Model description: Google’s Nano Banana 2 Lite generates and edits 1K images from text, with optional multi-image references. It’s built for rapid iteration and draft assets. Model cover: https://cdn.wiro.ai/uploads/models/google-nano-banana-2-lite-cover.webp Model categories: - tool - partner - google - image-to-image - quick-showcase - text-to-image - price-list - fast-inference - image-editing - use-agent - nogpu-pipeline Model tags: - google Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/google/nano-banana-2-lite Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Model Inputs: - name: inputImage label: Input Image help: Gemini 3.1 Flash Lite Image lets you mix up to 14 reference images of objects with high fidelity to include in the final image. Not optimized for character consistency or multi-turn sequential editing. type: combinefileinput default: google-nano-banana-2-lite-input-1.jpg - name: prompt label: prompt help: The prompt to generate the image. type: textarea default: A detailed, photorealistic photograph of the 1960s American four-door sedan from image, viewed from the exact same front three-quarter perspective on the gravel lot. The car is no longer derelict but has been completely and meticulously restored to factory-new condition. All surface rust is gone, replaced by a flawless, deep, lustrous coat of classic midnight-blue paint with a high-gloss finish. The chrome grille, front bumper, all trim, wheel covers, and window surrounds are polished to a mirror-like sheen, gleaming under the golden hour light (which remains soft and clean). The glass is crystal clear. The interior is pristine, featuring newly upholstered classic vinyl. The specific license plate is clear and legible. The overall composition and background elements, including the autumn-colored trees and power lines, remain identical, but from a pristine version of the scene. - name: aspectRatio label: Aspect Ratio help: Aspect Ratio of the output image. Gemini 3.1 Flash Lite Image only supports 1K resolution. type: select default: auto options: - value: "auto" label: auto - value: "1:1" label: 1:1 (1K)1024x1024 - value: "2:3" label: 2:3 (1K)848x1264 - value: "3:2" label: 3:2 (1K)1264x848 - value: "3:4" label: 3:4 (1K)896x1200 - value: "4:3" label: 4:3 (1K)1200x896 - value: "4:5" label: 4:5 (1K)928x1152 - value: "5:4" label: 5:4 (1K)1152x928 - value: "9:16" label: 9:16 (1K)768x1376 - value: "16:9" label: 16:9 (1K)1376x768 - value: "21:9" label: 21:9 (1K)1584x672 - name: safetySetting label: Safety Setting help: Safety Setting type: select default: OFF options: - value: "BLOCK_LOW_AND_ABOVE" label: BLOCK_LOW_AND_ABOVE - value: "BLOCK_MEDIUM_AND_ABOVE" label: BLOCK_MEDIUM_AND_ABOVE - value: "BLOCK_ONLY_HIGH" label: BLOCK_ONLY_HIGH - value: "BLOCK_NONE" label: BLOCK_NONE - value: "OFF" label: OFF ## Model Parameter Inspires: - prompt: An adorable fluffy baby owl wearing tiny steampunk goggles, perched on an antique brass telescope in a cozy dusty attic, warm golden hour sunlight streaming through a circular window, macro photography, hyper-detailed texture, depth of field. - inputImage: - prompt: A wide-angle architectural photograph of a modern, minimalist living room at twilight. Floor-to-ceiling glass windows look out onto a dense, misty pine forest. Inside, the room features a low-profile charcoal grey linen sofa, a matte black steel coffee table, and a glowing warm-toned floor lamp casting a soft amber pool of light. The polished concrete floor subtlely reflects the ambient light from the lamp and the cool blue light from the twilight outside. Photorealistic, captured with a Canon EOS R5, 16mm lens, f/8, crisp edges, architectural digest style, perfectly balanced exposure. - inputImage: - prompt: Extreme macro food photography of a freshly baked, steaming slice of cherry pie on a rustic, chipped ceramic plate. A scoop of melting vanilla bean ice cream sits on top, with tiny, distinct black vanilla specks visible in the cream. The pie features a flaky, golden-brown lattice crust with glistening, rich dark-red cherry filling slowly oozing onto the plate. Resting on a dark, heavily textured reclaimed oak table. Directional backlighting from a softbox highlights the wisps of steam and the glossy texture of the filling. Shot with a Sony A7R IV, 100mm macro lens, f/5.6, razor-sharp focus. - inputImage: - prompt: A National Geographic style wildlife photograph of a red fox mid-stride, trotting through a dense, frost-covered meadow during the freezing early morning blue hour. Crisp, delicate white frost coats the individual blades of tall, dormant grass. The fox\'s thick winter coat is a vibrant, highly detailed orange-red, contrasting sharply against the muted, cold blue tones of the environment. A small puff of condensation is visible from the fox\'s breath in the freezing air. Captured with a telephoto 400mm lens, f/4, 1/1000s shutter speed, sharp focus directly on the fox\'s amber eyes, smooth bokeh background. - inputImage: - prompt: A detailed, photorealistic photograph of the 1960s American four-door sedan from image, viewed from the exact same front three-quarter perspective on the gravel lot. The car is no longer derelict but has been completely and meticulously restored to factory-new condition. All surface rust is gone, replaced by a flawless, deep, lustrous coat of classic midnight-blue paint with a high-gloss finish. The chrome grille, front bumper, all trim, wheel covers, and window surrounds are polished to a mirror-like sheen, gleaming under the golden hour light (which remains soft and clean). The glass is crystal clear. The interior is pristine, featuring newly upholstered classic vinyl. The specific license plate is clear and legible. The overall composition and background elements, including the autumn-colored trees and power lines, remain identical, but from a pristine version of the scene. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/google-nano-banana-2-lite-input-1.jpg - prompt: A nocturnal, high-contrast photograph of the view from inside the dark stone ruin as seen in image, retaining the dark stone frame and the foreground rubble. The irregular opening through the stone arch now looks out upon a clear, dark night scene. The distant mountains are a rugged silhouette against a deep indigo and black star-filled night sky. The large, leafless tree remains in the same position, now silhouetted against the night sky, with its branches delicately illuminated by soft moonlight catching the edges. The bright sun starburst is entirely gone, replaced by a prominent crescent moon and visible stars over the mountain range. The ground outside is no longer bright green, but a deep, dew-covered meadow in cool, blue-white moonlight. The high-contrast, framed view is preserved, with a new nocturnal atmosphere. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/google-nano-banana-2-lite-input-2.jpg ## Integration Header Prepare ```bash # Sign up Wiro dashboard and create project export YOUR_API_KEY="{{useSelectedProjectAPIKey}}"; export YOUR_API_SECRET="XXXXXXXXX"; # unix time or any random integer value export NONCE=$(date +%s); # hmac-SHA256 (YOUR_API_SECRET+Nonce) with YOUR_API_KEY export SIGNATURE="$(echo -n "${YOUR_API_SECRET}${NONCE}" | openssl dgst -sha256 -hmac "${YOUR_API_KEY}")"; ``` ## Run Command - Make HTTP Post Request ```bash curl -X POST "https://api.wiro.ai/v1/Run/google/nano-banana-2-lite" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "inputImage": "google-nano-banana-2-lite-input-1.jpg", "prompt": "A detailed, photorealistic photograph of the 1960s American four-door sedan from image, viewed from the exact same front three-quarter perspective on the gravel lot. The car is no longer derelict but has been completely and meticulously restored to factory-new condition. All surface rust is gone, replaced by a flawless, deep, lustrous coat of classic midnight-blue paint with a high-gloss finish. The chrome grille, front bumper, all trim, wheel covers, and window surrounds are polished to a mirror-like sheen, gleaming under the golden hour light (which remains soft and clean). The glass is crystal clear. The interior is pristine, featuring newly upholstered classic vinyl. The specific license plate is clear and legible. The overall composition and background elements, including the autumn-colored trees and power lines, remain identical, but from a pristine version of the scene.", "aspectRatio": "auto", "safetySetting": "OFF", "callbackUrl": "You can provide a callback URL; Wiro will send a POST request to it when the task is completed." }'; ``` ## Run Command - Response ```json { "errors": [], "taskid": "2221", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "result": true } ``` ## Get Task Detail - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "taskid": "2221" }'; ``` ## Get Task Detail - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "tasktoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt" }'; ``` ## Get Task Detail - Response ```json { "total": "1", "errors": [], "tasklist": [ { "id": "2221", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "parameters": {}, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_postprocess_end", "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Kill Task - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "taskid": "534574" }'; ``` ## Kill Task - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE" }'; ``` ## Kill Task - Response ```json { "errors": [], "tasklist": [ { "id": "534574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Cancel Task - Make HTTP Post Request (For tasks on queue) ```bash curl -X POST "https://api.wiro.ai/v1/Task/Cancel" -H "Content-Type: multipart/form-data" -H "x-api-key: ${YOUR_API_KEY}" -H "x-nonce: ${NONCE}" -H "x-signature: ${SIGNATURE}" -d '{ "taskid": "634574" }'; ``` ## Cancel Task - Response ```json { "errors": [], "tasklist": [ { "id": "634574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Task Status Information This section defines the possible task status values returned by the API when polling for task completion. ### Completed Task Statuses (Polling can stop) These indicate that the task has reached a terminal state — either success or failure. Once any of these is received, polling should stop. - task_postprocess_end : Task completed successfully and post-processing is done. - task_cancel : Task was cancelled by the user or system. ### Running Task Statuses (Continue polling) These statuses indicate that the task is still in progress. Polling should continue if one of these is returned. - task_queue : Task is waiting in the queue. - task_accept : Task has been accepted for processing. - task_assign : Task is being assigned to a worker. - task_preprocess_start : Preprocessing is starting. - task_preprocess_end : Preprocessing is complete. - task_start : Task execution has started. - task_output : Output is being generated.