Gemini 3.7 Flash の新機能

最新モデル その他のモデル

Gemini 3.7 Flash(gemini-3.7-flash)は、Gemini 3 シリーズの旧世代の Flash モデルです。現在は非推奨となり、Gemini 3.8 Flash に自動的にルーティングされます。

このガイドは参照用に保存されており、Gemini 3.7 Flash で導入された機能と変更について説明しています。

モデルの概要

モデル モデル ID デフォルトの思考レベル 説明
Gemini 3.7 Flash(非推奨) gemini-3.7-flash medium コーディング、Agentic Workflows、マルチステップ実行向けに構築された前世代の Flash モデル。Gemini 3.8 Flash に置き換えられました。

Gemini 3.7 Flash は、100 万トークンのコンテキスト ウィンドウ、最大 64,000 個の出力トークン、調整可能な思考レベル(low、medium、high)、3.6 Flash と同じ一連の組み込みツールをサポートしています。

仕様の詳細については、Gemini 3.7 Flash モデルのページをご覧ください。

クイックスタート

Python

from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.7-flash",
    input="Write a responsive navigation component in React with smooth animations and dark mode toggle."
)

print(interaction.output_text)

JavaScript

import { GoogleGenAI } from "@google/genai";

const client = new GoogleGenAI({});

const interaction = await client.interactions.create({
  model: "gemini-3.7-flash",
  input: "Write a responsive navigation component in React with smooth animations and dark mode toggle.",
});

console.log(interaction.output_text);

Java

import com.google.genai.Client;
import com.google.genai.gaos.models.interactions.CreateModelInteraction;
import com.google.genai.gaos.models.interactions.Interaction;
import com.google.genai.gaos.models.interactions.InteractionsInput;
import com.google.genai.gaos.models.interactions.Model;
import com.google.genai.gaos.models.operations.CreateInteractionRequestBody;

Client client = new Client();
CreateModelInteraction req = CreateModelInteraction.builder()
    .model(Model.of("gemini-3.7-flash"))
    .input(InteractionsInput.of("Write a responsive navigation component in React with smooth animations and dark mode toggle."))
    .build();
Interaction interaction =
    client.interactions.create(CreateInteractionRequestBody.of(req)).interaction().get();
System.out.println(interaction.outputText().orElse(""));

REST

curl "https://generativelanguage.googleapis.com/v1beta/interactions" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H 'Content-Type: application/json' \
  -X POST \
  -d '{
    "model": "gemini-3.7-flash",
    "input": "Write a responsive navigation component in React with smooth animations and dark mode toggle."
  }'

Gemini 3.7 Flash の新機能

  • コーディングとエージェント タスク: 実際のソフトウェア エンジニアリングとエージェント ベンチマークで品質が大幅に向上し、問題解決が改善され、エージェント ループの失敗が減少しました。
  • ウェブ開発とデザインの一致度の向上: デザインモックから直接、より忠実度の高いデスクトップ アプリケーションとウェブ アプリケーションのコードを生成します。デザインの忠実度が大幅に向上し、既存のコードベースをモックと照合して監査し、1:1 のデザインの一致度を検証できます。

推論レベルについて

Gemini 3.7 Flash では、モデルの思考レベルを調整することで、レイテンシとインテリジェンスを柔軟に制御できます。

  • 思考労力を軽減: インシデント対応パイプライン、リアルタイム チャット、下書きの作成、高速データ分析など、レイテンシが重要なタスクの回答時間を短縮します。
  • 中(デフォルト): ほとんどのタスクに最適な品質です。複雑なコードやエージェント ユースケースに推奨。初回パスの精度が向上。
  • 高い思考労力: モデルの思考能力とツール使用能力を最大限に高めます。複雑な推論、難しい数学、難しいコーディングやエージェント タスクに最適です。拡張された思考と関数呼び出しを可能にします。トークン消費量と費用が増加します。

Gemini 3.7 Flash で思考レベルを構成するには:

Python

from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.7-flash",
    input="Analyze this payment processing pipeline for race conditions during retry attempts and rewrite the transaction locks safely.",
    generation_config={
        "thinking_level": "medium"  # Balanced reasoning effort for complex tasks
    }
)

print(interaction.output_text)

多言語コードの例(JavaScript、Java、Go、REST)と推論のコンセプトの詳細については、Gemini 3.8 Flash の推論レベルについてをご覧ください。

Antigravity エージェントのサポート

Gemini 3.7 Flash では、Gemini Managed Agents の Antigravity エージェントと Google Antigravity SDK のサポートが導入されました。

現在のコードサンプルと最新のデフォルト エージェント構成については、Antigravity エージェント ガイドと Gemini 3.8 Flash ガイドをご覧ください。

その他のモデル

次のステップ