Product imageCrop 1Nano Banana
Gemini-powered generation and text-instructed image editing at a low cost.
Product imageCrop 1
Product imageCrop 2
Product imageCrop 3
Product imageCrop 4Prompt to image, in context
minimal blank cosmetic bottles arranged on textured stone
- Aspect
- 16:9
- Size
- 2K
Product image
A clean packaging still life with blank bottles, stone texture, and warm neutral light.
What you can build with Nano Banana
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-pro-image-preview","aspect_ratio":"16:9","image_size":"2K"}'