gemini-3.1-flash-image API Pricing & Access
Nano Banana 2 delivers high-quality image generation and conversational editing at competitive prices with low latency. It is the efficient version of Gemini 3.1 Pro Image, optimized for speed and high-throughput developer use cases.
Pricing by group
See the live price table above for how this model is billed and the price in each group.
Capabilities
- Provider
- Features
- Painting
- API formats
- Gemini generateContent · OpenAI Chat Completions
Quick start
Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.
curl https://api.openlux.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="gemini-3.1-flash-image",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Full parameters in the API docs
FAQ
How do I call the gemini-3.1-flash-image API?
Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use gemini-3.1-flash-image as the model name.
How is the gemini-3.1-flash-image API billed?
The billing method and price depend on the group. See the live price table on this page. Top-ups start at $1.
Is there a Batch API?
Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.
Which API formats does gemini-3.1-flash-image support?
Gemini generateContent, OpenAI Chat Completions.