gemini-3.1-flash-lite-image

AliasNano Banana 2 Lite
by GoogleImage

Nano 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.

InputPrompttext
Models4available
FlowAsyncresult URL
Price2 quota/ image
Astronaut floating in a damaged cabin with Earth through a cracked windowDamaged spacecraft astronautExample 01
Minimalist SLOW MORNINGS coffee poster with a long cup shadowSLOW MORNINGS posterExample 02
Cinematic last-survivor poster of a woman in a ruined city streetPost-apocalyptic survivorExample 03
Backlit WILDFLOWER No. 3 honey jar with a mid-pour ribbonWILDFLOWER honey jarExample 04
Examples

Prompt 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

Capabilities

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.

Pricing

Per-action, in quota

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

Image generationOfficial pricing
ModelPriceUnit
gemini-3.1-flash-lite-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-3.1-flash-lite-image","aspect_ratio":"16:9","image_size":"1K"}'