Nano Banana
Gemini Flash Image 2.5, commonly known as Nano Banana, generates and edits images from rich prompts and multi image inputs. It maintains character identity across frames. It supports targeted edits and completions that use strong world knowledge. Ideal for visual apps that need speed and control.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»referenceImagesreferenceImages
array of strings min items: 1max items: 8 -
List of reference images (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: google:4@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 2 max: 3000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
Width of the generated media in pixels.
Learn more 2 resources
-
Height of the generated media in pixels.
Learn more 2 resources
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.google object.
providerSettings.google object.-
providerSettings»google»safetyTolerancesafetyTolerance
string default: none -
Safety filter tolerance level. Use
offto use Google's defaults.Allowed values 5 values
Subterranean Fungal Tram Station
{
"taskType": "imageInference",
"taskUUID": "b5a975f7-5e51-4a35-acf7-f4f8006cff34",
"model": "google:4@1",
"positivePrompt": "A vast underground tram platform carved into volcanic stone, transformed into a public transit hub beneath a forest of colossal amber and indigo mushrooms. Sleek ceramic tram cars wait beside tracks that curve into a glowing tunnel, while commuters in practical weathered coats carry woven baskets, mechanical tool cases, and paper parcels. The ceiling is crowded with hanging roots, mineral drips, ventilation ducts, and suspended lantern globes shaped like seed pods. Small maintenance robots roll along the platform, reflecting warm highlights on wet basalt. Moss-covered signage uses elegant geometric symbols, benches are made from polished dark wood and cast metal, and puddles mirror the luminous caps overhead. Atmosphere of hushed wonder and everyday routine, cinematic depth, ultra-detailed textures, believable scale, volumetric haze, high dynamic range, wide-angle environmental shot, imaginative but grounded science-fantasy realism.",
"width": 1344,
"height": 768,
"providerSettings": {
"google": {
"safetyTolerance": "off"
}
}
}{
"taskType": "imageInference",
"taskUUID": "b5a975f7-5e51-4a35-acf7-f4f8006cff34",
"imageUUID": "be8792b6-c4e1-4c21-b1fd-c2b92141e4be",
"imageURL": "https://im.runware.ai/image/os/a22d05/ws/2/ii/be8792b6-c4e1-4c21-b1fd-c2b92141e4be.jpg",
"seed": 963629215,
"cost": 0.039
}Rainy Rooftop Kite Workshop
{
"taskType": "imageInference",
"taskUUID": "b7848026-d92e-4c2d-be54-57fa65e520e9",
"model": "google:4@1",
"positivePrompt": "Using the reference images as visual guidance, create a cinematic wide scene of a rainy rooftop kite workshop in an old coastal city. Blend the shed interior details, wet roof textures, and manta-shaped kite design into one believable environment. Show a partially open workshop with handmade flying machines hanging from beams, worktables covered in brushes, lacquer bowls, cut paper, bamboo spars, and tangled string. Outside, slick roof tiles reflect the gray sky and shallow puddles ripple in light drizzle. Feature one large manta-inspired kite being assembled near the doorway, with intricate indigo fabric panels, translucent fins, and copper joints. Mood is quiet, inventive, and slightly windswept. Emphasize tactile materials, layered depth, atmospheric perspective, realistic lighting, and crisp fine-detail rendering.",
"width": 1248,
"height": 832,
"providerSettings": {
"google": {
"safetyTolerance": "off"
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/0e5fca34-715c-4833-8a78-faf80483d54e.jpg",
"https://assets.runware.ai/assets/inputs/f6f959be-0328-451e-81dd-94a741678ab2.jpg",
"https://assets.runware.ai/assets/inputs/1fc7bab6-893d-48bf-a70c-1c51008900df.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "b7848026-d92e-4c2d-be54-57fa65e520e9",
"imageUUID": "f9defe1a-45bc-4dfc-b7a9-d9b3415a6edc",
"imageURL": "https://im.runware.ai/image/os/a09d21/ws/2/ii/f9defe1a-45bc-4dfc-b7a9-d9b3415a6edc.jpg",
"seed": 1807705428,
"cost": 0.039
}Clockwork Aviary Winter Atrium
{
"taskType": "imageInference",
"taskUUID": "5d034aaf-9912-4d37-940c-a9aae4f74c89",
"model": "google:4@1",
"positivePrompt": "Using the reference images as inspiration, create a richly detailed wide scene inside a vast winter conservatory transformed into a clockwork aviary. Brass-and-ivory mechanical birds perch among bare branches and suspended rings, with intricate gears and tiny winding keys integrated into their bodies. Frost traces the glass ceiling, soft daylight filters through misty panes, and the tiled floor reflects scattered gold highlights. Blend botanical architecture with precise horological craftsmanship, emphasizing elegant scale, believable materials, crisp fine detail, cinematic depth, and a quiet wonder-filled mood. No text, no people.",
"width": 1248,
"height": 832,
"providerSettings": {
"google": {
"safetyTolerance": "off"
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/f141620d-fed3-4049-826d-72b5fc4d1622.jpg",
"https://assets.runware.ai/assets/inputs/ded3e076-979b-4765-ba90-fec8ac5c0662.jpg",
"https://assets.runware.ai/assets/inputs/b116a184-727b-4eac-8d7e-dfa28e784ce6.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "5d034aaf-9912-4d37-940c-a9aae4f74c89",
"imageUUID": "419b04b5-332e-409b-9e95-8f2f099c9727",
"imageURL": "https://im.runware.ai/image/os/a22d05/ws/2/ii/419b04b5-332e-409b-9e95-8f2f099c9727.jpg",
"seed": 307836537,
"cost": 0.039
}Windworn Desert Aerostat Encampment
{
"taskType": "imageInference",
"taskUUID": "4f6c3357-a8e0-42d5-ae64-09be3432afff",
"model": "google:4@1",
"positivePrompt": "Using the reference images, create a sweeping adventure scene in a remote desert camp beneath towering red sandstone arches. Feature the same explorer as the central figure, preserving the layered robe silhouette, goggles, and travel gear from the character reference. Incorporate the patched aerostat design from the vehicle reference, moored with heavy ropes beside tents and supply crates. Blend the canyon landscape from the environment reference into a believable world with drifting dust, long afternoon shadows, faded textiles, scattered navigation instruments, and signs of a long expedition. Emphasize rich texture, grounded realism, dynamic composition, and a sense of quiet anticipation before departure.",
"width": 1248,
"height": 832,
"providerSettings": {
"google": {
"safetyTolerance": "off"
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/e5039b30-c30e-4c85-aa63-d139b28040c8.jpg",
"https://assets.runware.ai/assets/inputs/8533714f-7fa7-4b66-a08c-8d07b5006270.jpg",
"https://assets.runware.ai/assets/inputs/e51c44ec-9856-47c4-867c-27cf5f5c8eb3.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "4f6c3357-a8e0-42d5-ae64-09be3432afff",
"imageUUID": "07691e39-275c-4a09-a99d-e8f3eb453237",
"imageURL": "https://im.runware.ai/image/os/a17d13/ws/2/ii/07691e39-275c-4a09-a99d-e8f3eb453237.jpg",
"seed": 861121150,
"cost": 0.039
}