BazaarLinkBazaarLink
Sign in

Gemini 3.1 Flash Image Preview API Pricing & Quick Start

Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...

Pricing

Input Price
$0.50
/ 1M tokens
NT$ 16
Output Price
$3.00
/ 1M tokens
NT$ 95
Context Window
66K
tokens

💱 USD/NTD = 31.60 · before tax · updated 09/11/2026

ProviderGoogle
ReleasedFebruary 2026
Model IDgoogle/gemini-3.1-flash-image-preview

Technical specifications

Context window
66K tokens
Reasoning
Yes
Input
ImageText
Output
ImageText

Quick Start

Use Gemini 3.1 Flash Image Preview via BazaarLink API — just change the base_url:

Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.bazaarlink.ai/v1",
    api_key="sk-bl-YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
TypeScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.bazaarlink.ai/v1",
  apiKey: "sk-bl-YOUR_API_KEY",
});

const response = await client.chat.completions.create({
  model: "google/gemini-3.1-flash-image-preview",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Why use Gemini 3.1 Flash Image Preview via BazaarLink?

  • USD billing (TWD-quoted) + unified invoices — no foreign credit card needed for Taiwan teams
  • OpenAI-compatible API — zero code changes required
  • Automatic failover — multi-provider redundancy for the same model
  • Chinese-language support — local team, instant help
Try Now← All Models

Frequently Asked Questions

What is Gemini 3.1 Flash Image Preview?

Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...

How much does the Gemini 3.1 Flash Image Preview API cost?

Gemini 3.1 Flash Image Preview costs $0.50 per 1M input tokens and $3.00 per 1M output tokens when accessed through BazaarLink.

How do I use Gemini 3.1 Flash Image Preview with the OpenAI SDK?

Set base_url to "https://api.bazaarlink.ai/v1" and use model ID "google/gemini-3.1-flash-image-preview". All OpenAI SDK methods (chat.completions, embeddings, streaming) work without code changes.

What is the context window for Gemini 3.1 Flash Image Preview?

Gemini 3.1 Flash Image Preview supports a context window of 65,536 tokens.

Is Gemini 3.1 Flash Image Preview available for free?

Gemini 3.1 Flash Image Preview is a paid model. BazaarLink offers free trial credits on registration so you can test it without a credit card.

Relay integrity checks

No integrity-check data is available for this model yet.

BazaarLink Probe verifies endpoints that claim to serve this model and flags behavior that differs from the reference baseline.

View the full integrity report →

Related models and links

More from this provider: Google

Gemini 3.7 FlashGemini 3 Pro Image PreviewGemma 3 12b ItGemini 2.5 Pro Preview 05 06Gemini 2.5 FlashGemini 3.1 Pro Preview Customtools
ModelsAPI documentationAPI latency probe
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.