← All models
Google · Language + Image model
Nano Banana (Gemini 2.5 Flash Image)
google/gemini-2.5-flash-image- Language
- Image
Gemini 2.5 Flash Image, a.k.a. "Nano Banana," is now generally available. It is a state of the art image generation model with contextual understanding. It is capable of image generation,...
As a language model
Specifications
- Context window
- 32,768 tokens
- Max output
- 8,192 tokens
- Input
- image, text
- Output
- image, text
- Tokenizer
- Gemini
- Knowledge cutoff
- 2025-01-31
Supported parameters
Accepted by the model and forwarded as-is by the gateway.
- max_tokens
- response_format
- seed
- stop
- structured_outputs
- temperature
- top_p
Use it
POST /api/v1/chat/completions · MCP chat · full reference
curl https://omnirail.org/api/v1/chat/completions \
-H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
-d '{"model":"google/gemini-2.5-flash-image","messages":[{"role":"user","content":"Hello"}],"max_tokens":300}'As an image model
Specifications
- Input
- image, text
- Output
- image, text
- Editing
- yes, up to 3 reference images
- Images per call
- 1
- Served by
- Google AI Studio, Google Vertex
Request options
Validated against these values; anything else returns 400 with the allowed list.
- aspect_ratio
- 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Use it
POST /api/v1/images · /images/edits · MCP generate_image · edit_image · full reference
curl https://omnirail.org/api/v1/images \
-H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
-d '{"model":"google/gemini-2.5-flash-image","prompt":"a lighthouse at dawn, 35mm film","aspect_ratio":"1:1"}'