Seedance 2.0 15% OFF | Video Generator で作成 →
google
google/gemini-3.1-flash-image-preview

google/gemini-3.1-flash-image-preview

リリース日: 2026-02-26

65,536 context · $0.50/M input tokens · $3.00/M output tokens

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. Aspect ratios can be controlled with the image_config API Parameter

料金

従量課金

初期費用なし、使った分だけお支払い

入力$0.50 / M Tokens
出力$3.00 / M Tokens
Image Output$60.00 / M Tokens

モデルを試す

google/gemini-3.1-flash-image-preview
オンライン
google
こんにちは!お手伝いできるAIアシスタントです。何かお手伝いできることはありますか?

API 利用

以下のコード例を使用して API と連携してください:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

モデル紹介

Google 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 v

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. Aspect ratios can be controlled with the image_config API Parameter


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 65536 context window for long document handling
  • Competitive pricing at $0.5/$3.0 per million tokens

Key Features

  • Context Window: 65536 tokens
  • Max Output: 65536 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderGoogle
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window65536 tokens
Max Output65536 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$0.5
Output$3.0

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: google/gemini-3.1-flash-image-preview


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "google/gemini-3.1-flash-image-preview",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: google/gemini-3.1-flash-image-preview
  • Provider: Google

情報

プロバイダーgoogle
タイプllm

対応機能

入力
テキスト画像
出力
テキスト画像
コンテキスト65,536
最大出力65,536
Vision✓ 対応
Function Calling-

API アクセスガイド

Base URLhttps://llm.wavespeed.ai/v1
API エンドポイントchat/completions
モデル IDgoogle/gemini-3.1-flash-image-preview

Gemini 3.1 Flash Image Preview API

google/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 advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible. Aspect ratios can be controlled with the image_config API Parameter

入力

$0.5 /M

出力

$3 /M

コンテキスト

66K

最大出力

66K

Vision

対応

WaveSpeedAIでGemini 3.1 Flash Image Previewを試す

統合APIを通じてGemini 3.1 Flash Image Previewにアクセス — OpenAI互換、コールドスタートなし、透明な料金。

Gemini 3.1 Flash Image Previewに関するよくある質問

Gemini 3.1 Flash Image Preview API の料金はいくらですか?+

WaveSpeedAI の料金: 入力 100 万トークンあたり $0.50、出力 100 万トークンあたり $3.00。プロンプトキャッシュとバッチ処理は別途料金で、長く反復的なワークロードでは実効コストを下げられます。

Gemini 3.1 Flash Image Preview のコンテキストウィンドウはどのくらいですか?+

Gemini 3.1 Flash Image Preview はリクエストあたり最大 66K のコンテキストトークンと最大 66K の出力トークンをサポートします。

Gemini 3.1 Flash Image Preview は OpenAI 互換ですか?+

はい。WaveSpeedAI は OpenAI 互換エンドポイント https://llm.wavespeed.ai/v1 で Gemini 3.1 Flash Image Preview を提供します。公式 OpenAI SDK のベース URL をこちらに変更し WaveSpeedAI の API キーを設定するだけで利用可能です。

Gemini 3.1 Flash Image Preview を使い始めるには?+

WaveSpeedAI にサインインし、Access Keys で API キーを作成して、上に表示されているモデル ID を指定して https://llm.wavespeed.ai/v1/chat/completions にリクエストを送信してください。新規アカウントには Gemini 3.1 Flash Image Preview を試用できる無料クレジットが付与されます。

関連 LLM API