Gemini 3.1 Flash Image (Nano Banana 2)
Google · Image
Google Gemini's native image model Nano Banana 2, a fast variant for high-frequency generation. Billed per generation through getmodel's image group. Gemini 3.1 Flash Image (Nano Banana 2) is available on GetModel via an OpenAI-compatible API, billed pay-as-you-go. Get one key and call it from any OpenAI SDK.
Pricing
| Item | Price |
|---|---|
| Per generation | $0.018 |
How to call
curl https://getmodel.ai/v1/chat/completions \
-H "Authorization: Bearer $GETMODEL_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://getmodel.ai/v1", api_key="$GETMODEL_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)