Retro motel staircaseExample 01gemini-nano-banana-2.1
AliasNano Banana 2.1Nano Banana 2.1 API by Google on TTAPI uses gemini-nano-banana-2.1 for image generation and editing with prompts, references, aspect ratio, and 1K–4K output.
Retro motel staircaseExample 01
Rain-speckled jewel beetleExample 02
Earth layers cutawayExample 03
Wave Form typographyExample 04Prompt to image, in context
Create a horizontal cinematic still of a two-story retro motel. A mustard-yellow exterior staircase cuts diagonally across a flamingo-pink facade while a woman in an emerald-green dress walks down it. Shoot from street level in warm sunlight, keeping the color blocking vivid and the architecture realistic.
Create a high-contrast 16:9 editorial graphic on a pure black background. Set the words WAVE above FORM as large sculptural lettering made from tightly spaced white parallel lines. Curve the lines like folded ribbons so the type has tactile depth while remaining readable.
Create a low-angle cinematic portrait of a person in a blue pinstripe suit and patterned gold tie, holding a worn brown leather suitcase in a sunlit grand room with tall windows. Use dramatic backlight, warm lens flare, and a nostalgic 1970s film mood.
Make an extreme macro photograph of a tiny beetle resting on a wet burgundy leaf. Give it a textured orange head, a pale blue shell with irregular magenta spots, glossy black eyes, and fine antennae. Show sharply focused water droplets and natural detail against a softly blurred dark background.
Create a 16:9 cinematic wide still of a high alpine snow plateau at sunrise. Place one sharp triangular refuge painted fire-engine red against white snowfields and blue glacial peaks. Keep the building small in the vast landscape, with long warm reflections across the frozen ground.
Create an ethereal portrait seen through vertical translucent glass panels that shift from cream and yellow to orange and deep red. Keep the contemplative subject softly focused behind the panels, with layered depth and warm autumn light.
Design a clean educational isometric cutaway of Earth. Clearly label the Crust, Mantle, Outer Core, and Inner Core, with distinct textures and a subtle glow in the center. Use deep earth colors, molten orange and yellow, and cool blue at the surface on a minimal light background.
A surreal cinematic full-body portrait of a woman with short pale-pink hair standing in a golden wheat field. Her voluminous sheer gown has flowing pastel lime, blush, and yellow layers moving in the breeze. Use soft daylight, distant low mountains, and a calm dreamlike mood.
Render a close-up dreamlike image of translucent glass-like neurons connected by thin fibers, with glowing orange cores and warm golden bokeh behind them. Use a shallow depth of field and crystalline micro-texture for a scientific yet magical mood.
What you can build with gemini-nano-banana-2.1
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":"A woman in a green dress descends a yellow staircase against a pink motel facade at golden hour","model":"gemini-nano-banana-2.1","aspect_ratio":"16:9","image_size":"2K"}'