Magazine cover Nano Banana 2Example 01gemini-3.1-flash-image
AliasNano Banana 2Nano Banana 2 API by Google on TTAPI uses the gemini-3.1-flash-image model ID for prompt-based image generation and editing with references, aspect ratio, and image size.
Magazine cover Nano Banana 2Example 01
First Rain fragranceExample 02
Midnight ramen posterExample 03
Clos Lucé cubismExample 04Prompt to image, in context
A photo of a glossy magazine cover, the minimal blue cover has the large bold words Nano Banana. The text is in a serif font and fills the view. No other text. In front of the text there is a portrait of a person in a sleek and minimal dress. She is playfully holding the number 2, which is the focal point. Put the issue number and "Feb 2026" date in the corner along with a barcode. The magazine is on a shelf against an orange plastered wall, within a designer store.
Frosted glass bottle; label planar: "First Rain". Shallow pool with crisp caustics. Natural crown from a falling lychee; transparent indigo ribbons; lychees some halved + eucalyptus sprigs ride arcs; base cluster partly submerged for refraction. Condensation 50% 1.2 mm. Light: sun leaf-gobo, silver rim 45°R, cool purple under-kicker, sky fill; clamp highs. Cam: FF 100 mm, f/8, 1/2000, ISO100. 8K; no warp/banding.
High-quality flat lay photography creating a DIY infographic that simply explains how the water cycle works, arranged on a clean, light gray textured background. The visual story flows from left to right in clear steps. Simple, clean black arrows are hand-drawn onto the background to guide the viewer's eye. The overall mood is educational, modern, and easy to understand. The image is shot from a top-down, bird's-eye view with soft, even lighting that minimizes shadows and keeps the focus on the process.
A premium commercial poster for a futuristic night market food truck parked under glowing neon signs in a rainy street, cinematic composition, ultra-detailed stainless steel truck, colorful steam rising from gourmet ramen bowls, diverse crowd in stylish streetwear, reflections on wet pavement, vibrant magenta and cyan lighting, crisp depth, dramatic perspective. Include a large illuminated menu board on the truck with clearly readable text: 'MIDNIGHT RAMEN', 'OPEN LATE', 'TONKOTSU', 'SPICY MISO', 'VEGAN SHOYU'. Add a small hanging sign that reads 'TOKYO LANE'. High-end food photography styling mixed with cyberpunk atmosphere, sharp details, expressive lighting, clean typography, no gibberish text.
Use image search to find accurate images of a resplendent quetzal bird. Create a beautiful 3:2 wallpaper of this bird, with a natural top to bottom gradient and minimal composition.
Cinematic still, evoking a vibrant, dreamlike quality often found in highly stylized musical dramas or whimsical comedies, with a composition style reminiscent of a master of bold, graphic imagery. The camera is positioned slightly low, looking up at the subject, emphasizing their commanding presence and the dramatic flair of their outfit. The color palette is exceptionally bold and high-contrast, dominated by electric blue and shocking pink, with a bright yellow accent. The background is a solid, uniform cerulean blue, providing a stark, graphic backdrop that makes the subject pop. The subject is a young, dark-skinned individual with tightly coiled hair, wearing an incredibly striking suit. The suit's fabric features an audacious pattern of swirling, wavy lines in electric blue, interspersed with large, concentric circles in hot pink, overlapping and radiating outwards. The tailored blazer has wide lapels and bell sleeves, worn over a sharply pressed yellow collared shirt. The matching trousers are wide-legged, dramatically flaring out towards the ground, with sharp creases down the front. The individual wears bright yellow, heart-shaped sunglasses and large, pink, circular earrings. Their hands are placed on their hips in a confident, almost defiant pose, and their gaze, though hidden behind the sunglasses, projects an aura of cool assurance. The ambiance is one of high fashion, playfulness, and unadulterated self-expression, imbued with an almost surreal, pop-art energy.
Create an image of Museum Clos Lucé. In the style of bright colored Synthetic Cubism. No text. Your plan is to first search for visual references, and generate after. Aspect ratio 16:9
A bold retro-futurist arcade poster for a fictional game called 'NEON DRIFT'. A chrome magenta sports hovercar races through a glowing synthwave city at night, giant holographic billboards, electric rain, teal and pink reflections on the street, dramatic cinematic perspective, dense atmosphere, razor-sharp details, expressive lighting, polished poster composition. Include crisp readable title text at the top: 'NEON DRIFT'. Include smaller subtitle text at the bottom: 'MIDNIGHT CIRCUIT CHAMPIONSHIP'. High contrast, premium graphic design, vibrant colors, clean typography, ultra-detailed, visually striking.
Make a photo that is perfectly isometric. It is not a miniature, it is a captured photo that just happened to be perfectly isometric. It is a photo of a beautiful modern garden. There's a large 2 shaped pool and the words: Nano Banana 2.
What you can build with gemini-3.1-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.
Per-action, in quota
Usage is metered in quota by model, action, and output settings.
Headers and submit parameters
Use the endpoint below with your TTAPI key and the request fields shown.
Headers
TT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
Body
promptstringrequiredText instruction for generation or editing.
modelstringrequiredSupported Gemini image model identifier.
aspect_ratioenumoptionalRequested output aspect ratio.
image_sizeenumoptionalRequested 1K, 2K, or supported output size.
refer_imagesstring[]optionalReference image URLs for guided generation or edits.
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-3.1-flash-image","aspect_ratio":"16:9","image_size":"2K"}'