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 advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible.
64K コンテキストウィンドウ
64K 最大出力トークン
リリース日: 2026-03-03
対応プロトコル:openaigemini
利用可能なプロバイダー:Vertex
機能:VisionWeb検索
料金
| タイプ | 料金 |
|---|---|
| 入力トークン | $0.5/M |
| 出力トークン | $3/M |
| 画像出力 | $60/M |
| Web検索 | $0.014/R |
コード例
from google import genaiclient = genai.Client(api_key="YOUR_OFOX_API_KEY",http_options={"api_version": "v1beta", "url": "https://api.ofox.ai/gemini"},)response = client.models.generate_content(model="google/gemini-3.1-flash-image-preview",contents="Generate an image of a beautiful sunset over mountains",)print(response.text)
関連モデル
よくある質問
Ofox.aiでのGoogle: Nano Banana 2 (Gemini 3.1 Flash Image Preview)の料金は、入力100万トークンあたり$0.5/M、出力100万トークンあたり$3/Mです。従量課金制、月額料金なし。
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)は64Kトークンのコンテキストウィンドウと最大64Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)は以下の機能に対応:Vision, Web検索。Ofox.ai統合APIですべての機能にアクセスできます。