gemini-3.1-flash-image

AliasNano Banana 2
by GoogleImage

gemini-3.1-flash-image is available through TTAPI. Gemini-powered generation and text-instructed image editing at a low cost.

InputPrompttext
Models4available
FlowAsyncresult URL
Price4 quota/ image
Minimal blue fashion poster featuring a man beneath the title STILLSTILL fashion posterExample 01
Minimal green fashion poster featuring a woman beneath the title BREATHEBREATHE fashion posterExample 02
Luxury summer fashion editorial photographed in a European old townEuropean summer editorialExample 03
Black-and-white four-frame fashion photo booth stripVintage photo boothExample 04
Examples

Prompt to image, in context

01 · STILL fashion postergemini-3.1-flash-image
Prompt

Minimal editorial fashion poster, a stylish man in a navy turtleneck and charcoal overcoat standing with folded arms against a solid midnight blue background, bold handwritten title ‘STILL’ positioned above, monochromatic blue color harmony, clean negative space, cinematic studio lighting, confident expression, premium fashion styling, ultra-clean composition, soft shadows, modern magazine cover aesthetic, luxury advertising campaign, sharp focus, minimalist poster design, vertical composition.

02 · BREATHE fashion postergemini-3.1-flash-image
Prompt

Minimal editorial fashion poster, a confident woman wearing an emerald green off-shoulder sweater and tailored black trousers, standing against a solid emerald green background, bold handwritten title ‘BREATHE’ positioned above, monochromatic green color harmony, clean negative space, cinematic studio lighting, calm yet powerful expression, premium fashion styling, ultra-clean composition, subtle soft shadows, modern magazine cover aesthetic, high-end advertising campaign, sharp focus, minimalist luxury design, vertical poster composition.

03 · European summer editorialgemini-3.1-flash-image
Prompt

Luxury summer fashion editorial, [subject] wearing stylish [color] linen clothing and contemporary summer accessories, photographed from a dramatic low-angle in a beautiful European old town, sunlit historic architecture softly blurred in the background, designer sunglasses, relaxed confident pose, vibrant summer color palette, bright blue sky with soft clouds, warm golden sunlight, cinematic shallow depth of field, premium magazine photography, crisp facial detail, natural movement, luxury vacation aesthetic, resort wear styling, ultra-realistic photography, high-end travel fashion campaign.

Capabilities

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.

Pricing

Per-action, in quota

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

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