Documentation Index
Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt
Use this file to discover all available pages before exploring further.
Nano Banana API
This page exists for a very practical reason: teams often talk about these models as Nano Banana, Nano Banana 2, or Nano Banana Pro, while the actual request payload uses Gemini model names. If you have ever had a product manager say “ship it on Nano Banana Pro” while the engineer is staring atgemini-3-pro-image-preview, this is the bridge between those two naming systems.
On TTAPI, the Nano Banana family is the product-facing layer for Gemini image generation models. Use this page to decide which model line you want, then go to the generate endpoint once that choice is clear.
Get Started
Key Features
One product family, multiple model lines
TTAPI groups several Gemini image models under the Nano Banana family. That makes it easier to document them as one product, while still letting engineers choose the exact model variant in the request.Direct response flow
Nano Banana generation is synchronous. You do not submit a job and come back later with a fetch call. The request stays open until the image result is ready, which makes the integration simpler but also means your gateway choice matters more for longer-running requests.Reference-image support
The endpoint supportsrefer_images, so this is not only a plain prompt-to-image surface. It also works well for guided edits, style anchoring, and “make something in the spirit of these references” workflows.
Request-time visual controls
Fields such asaspect_ratio, image_size, and supported search options are handled directly in the request schema. That is useful when your product needs several output shapes without building a separate orchestration layer on top.
Model Family
| Product family | Official model name | How teams usually use it |
|---|---|---|
Nano Banana | gemini-2.5-flash-image | Good default for broad prompt testing and general image generation |
Nano Banana | gemini-2.5-flash-image-preview | Useful when you specifically want the preview line but still want the core Nano Banana behavior |
Nano Banana 2 | gemini-3.1-flash-image-preview | Better fit when you want the newer flash model line rather than the older baseline |
Nano Banana Pro | gemini-3-pro-image-preview | Better fit for art-directed work, higher-end marketing visuals, or cases where quality matters more than iteration speed |
Authentication And Base URL
Nano Banana image generation is synchronous, so the request remains open until the image is ready.- Base URL:
https://api.ttapi.org - Header:
TT-API-KEY: YOUR_API_KEY - Content-Type:
application/json
https://api.ttapi.org for these longer-running image requests. That recommendation matters more here than on lightweight metadata endpoints.
Example Request
aspect_ratio and image_size, optionally pass refer_images, then consume the returned image_url.
Use Cases
- Marketing and e-commerce teams generating polished product stills without building a queue-based image system
- Design assistants that need quick prompt iteration first, then a higher-quality pass on
Nano Banana Pro - Reference-guided generation where users provide style boards, product shots, or composition references through
refer_images - Internal creative tooling where the business side thinks in Nano Banana family names, but engineering needs a precise Gemini model mapping
Choosing The Right Model
- Choose
Nano Bananawhen you want the safest default and a broad baseline for prompt exploration. - Choose
Nano Banana 2when your team wants the newer flash-family behavior specifically. - Choose
Nano Banana Prowhen the output is closer to final deliverable quality than rough ideation.
FAQ
Is Nano Banana the same as Gemini image API on TTAPI?
Nano Banana is the TTAPI product-facing label for a set of Gemini image models. That is why one page talks in Nano Banana family names while the request payload still expects Gemini model values.Does Nano Banana support reference images?
Yes. The endpoint supportsrefer_images, which is why Nano Banana works for guided visual generation and not only plain prompt-only requests.
My team says “use Nano Banana Pro.” What should the API request actually send?
Usegemini-3-pro-image-preview. That is the concrete model value behind the Nano Banana Pro label.