gemini-3.1-flash-image-preview API Pricing & Access
Nano Banana 2 delivers high-quality image generation and conversational editing at mainstream prices with low latency.
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-preview",
"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-preview",
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-preview 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-preview as the model name.
How is the gemini-3.1-flash-image-preview 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-preview support?
Gemini generateContent, OpenAI Chat Completions.