Damaged spacecraft astronautExample 01gemini-3.1-flash-lite-image
AliasNano Banana 2 LiteNano Banana 2 Lite is a Google image generation API on TTAPI. Generate or edit images from a text prompt, with aspect ratio, 1K image size, and reference images.
Damaged spacecraft astronautExample 01
SLOW MORNINGS posterExample 02
Post-apocalyptic survivorExample 03
WILDFLOWER honey jarExample 04Prompt to image, in context
A minimalist launch poster for a coffee roaster, the words "SLOW MORNINGS" set large in a heavy serif across the top third, a single ceramic cup on a warm cream background casting one long shadow, the line "Single origin. Roasted this week." in small type near the bottom edge, generous empty space between the elements.
A character sheet for an animated short, a small round robot with a dented copper shell and one oversized blue eye, drawn in six poses across a single page: standing, mid-stride, jumping, powered down, waving, hauling a crate twice its size. Flat cel shading, identical proportions in every pose, a faint grid background with "PIP-7" hand lettered in the top corner. 16:9.
A ceramicist's workbench photographed from directly above, a freshly thrown bowl still wet at the center of the wheel head, trimming tools fanned out to the right, slip smeared across the worn wood. Overcast daylight from a tall window at the top of the frame, soft shadows, muted greys against warm clay tones. The restrained look of an editorial spread in a craft magazine.
A glass jar of wildflower honey on a slab of raw oak, backlit so the honey glows amber from within, a thin ribbon of honey suspended mid-pour from a wooden dipper above the rim, black background swallowing the edges of the frame, the label facing camera and reading "WILDFLOWER No. 3" in clean serif type. 4:5.
Change to two small bananas, and the text says "Nano Banana 2 lite"
A quiet street in Lisbon just after sunrise painted in loose gouache, tram rails catching the first light, laundry strung between balconies, thick visible brushwork, a restrained palette of ochre, teal, chalk white, and slate. 3:2.
A foreign astronaut floating inside a damaged spacecraft cabin, red emergency lights flashing, Earth visible through a cracked window, loose objects drifting around him, microphone near his mouth, helmet visor reflecting warning screens, claustrophobic sci-fi composition, emotional final-message storytelling, cinematic realism
Transform this portrait into a cinematic post-apocalyptic survivor poster. Keep the woman's face, identity, pose, and jacket structure consistent. Add dust and subtle scratches on her face, change the background into a ruined city street with smoke, broken buildings, orange sunset light, and a red emergency flare glow from one side. Make her expression determined and emotional. Realistic cinematic lighting, gritty survival atmosphere, no gore, no face distortion.
A close-up, vertical shot features a {argument name="monster description" default="fluffy, blue monster"} with {argument name="eyes" default="wide, green eyes"} and a large, open mouth revealing two small teeth. The monster is bursting through a {argument name="wall description" default="cracked, lime-green wall"}, with pieces of the wall scattered around its head and body. Playful, energetic, colorful, 3D cartoon style, high detail, cinematic lighting
What you can build with gemini-3.1-flash-lite-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-lite-image","aspect_ratio":"16:9","image_size":"1K"}'