gemini-2.5-flash-image

AliasNano Banana
by GoogleImage

Nano Banana is a Google image generation API on TTAPI. Generate or edit images from a text prompt, with optional aspect ratio and reference images.

InputPrompttext
Models4available
FlowAsyncresult URL
Price2 quota/ image
Tokyo street bending upward into a sunlit cylinder worldFolded Tokyo streetExample 01
Elderly Japanese ceramicist inspecting a freshly glazed tea bowlJapanese ceramicistExample 02
Oil painting of a lighthouse struck by lightning in a night stormStorm lighthouse oilExample 03
Misty Tuscan farmhouse at sunrise with cypress-lined roadTuscany farmhouse sunriseExample 04
Examples

Prompt to image, in context

A photorealistic close-up portrait of an elderly Japanese ceramicist with deep, sun-etched wrinkles and a warm, knowing smile. He is carefully inspecting a freshly glazed tea bowl. The setting is his rustic, sun-drenched workshop. The scene is illuminated by soft, golden hour light streaming through a window, highlighting the fine texture of the clay. Captured with an 85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful. Vertical portrait orientation.

Cinematic shot of a major city street in Tokyo during the day. However, the world bends upward at a 90-degree angle. The street doesn't end at the horizon; it curves up into the sky and loops back over the viewer's head, creating a cylinder-world effect (Inception style). Cars and pedestrians are adhered to the road even as it becomes vertical and then upside down above. The lighting is realistic sunlight, casting shadows that defy gravity. Hyper-realistic, 8K.

An action shot of a black lab swimming in an inground suburban swimming pool. The camera is placed meticulously on the water line, dividing the image in half, revealing both the dogs head above water holding a tennis ball in it's mouth, and it's paws paddling underwater.

A kawaii-style sticker of a happy red panda wearing a tiny bamboo hat. It's munching on a green bamboo leaf. The design features bold, clean outlines, simple cel-shading, and a vibrant color palette. The background must be white.

A dramatic oil painting of a lighthouse in a storm at night, with massive waves crashing against the rocks and lightning illuminating the sky

An underwater scene of a coral reef teeming with tropical fish, sea turtles, and rays of sunlight filtering through the crystal clear water

A vintage travel poster for Tokyo, Japan in the style of 1960s airline advertisements, with Mount Fuji in the background and cherry blossoms framing the scene

A breathtaking, National Geographic style photograph of a rustic stone farmhouse in Tuscany, Italy, at sunrise. A gentle morning mist blankets the rolling hills, partially obscuring the cypress trees that line a winding dirt road leading to the house. Warm, golden light from the rising sun breaks through the fog, illuminating the terracotta roof and a small wisp of smoke rising from the chimney. The scene feels timeless and tranquil. Shot on Kodak Portra 400 film for rich colors and soft grain. Wide-angle lens, capturing the grand scale and serene beauty of the landscape.

Man dodging bullets in mid-air, slow motion matrix-style scene, dynamic camera angle from below, intense motion blur on arms and coat, leather trench coat flowing backward, tactical black outfit, realistic skin texture, short styled black hair, sharp facial expression, cinematic green code rain background, glowing matrix lines, neon-lit cyberpunk city, multiple bullets flying past in close proximity with visible motion trails, golden brass bullets in extreme perspective, dramatic rim lighting on face and jacket, soft shadows on face, gritty texture on clothing, volumetric light rays piercing through haze, particles and digital noise in background, ultra photorealistic, hyper-detailed, sharp focus on face with depth of field, 128k ultra hd, moody cinematic look, dark green-blue color grading --ar 9:16 --raw

Capabilities

What you can build with gemini-2.5-flash-image

Prompt driven generation

Submit a concise prompt and get production-ready image output through one TTAPI job.

Core controls only

Keep integration simple with prompt, model, output settings, and callback handling.

Async result flow

Use polling or webhook callbacks so long-running generations do not block your UI.

Ready for product UI

Return Nano Banana results that can be displayed, stored, or passed into downstream workflows.

Pricing

Per-action, in quota

Usage is metered in quota by model, action, and output settings.

Image generationOfficial pricing
ModelPriceUnit
gemini-2.5-flash-image2 quota/ image
API request

Headers and submit parameters

Use the endpoint below with your TTAPI key and the request fields shown.

POSThttps://api.ttapi.org/gemini/image/generate

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

promptstringrequired

Text instruction for generation or editing.

modelstringrequired

Supported Gemini image model identifier.

aspect_ratioenumoptional

Requested output aspect ratio.

image_sizeenumoptional

Requested 1K, 2K, or supported output size.

refer_imagesstring[]optional

Reference image URLs for guided generation or edits.

Open the official TTAPI documentation
Integrate

From key to first result

Copy the resolved endpoint, authentication headers, and request body for this model.

curl --request POST \
  --url https://api.ttapi.org/gemini/image/generate \
  --header 'TT-API-KEY: $TTAPI_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"minimal blank cosmetic bottles arranged on textured stone","model":"gemini-2.5-flash-image","aspect_ratio":"16:9"}'