Gemini 3.7 Flash (gemini-3.7-flash) เป็นโมเดล Flash รุ่นก่อนหน้าในซีรีส์ Gemini 3 ซึ่งปัจจุบันเลิกใช้งานแล้วและเปลี่ยนเส้นทางไปยัง Gemini 3.8 Flash โดยอัตโนมัติ
คู่มือนี้จะเก็บไว้เพื่อใช้อ้างอิงและบันทึกความสามารถและการเปลี่ยนแปลงที่นำมาใช้ใน Gemini 3.7 Flash
ภาพรวมโมเดล
| โมเดล | รหัสโมเดล | ระดับการคิดเริ่มต้น | คำอธิบาย |
|---|---|---|---|
| Gemini 3.7 Flash (เลิกใช้งานแล้ว) | gemini-3.7-flash |
medium |
โมเดล Flash รุ่นก่อนหน้าซึ่งสร้างขึ้นสำหรับการเขียนโค้ด เวิร์กโฟลว์แบบ Agentic และการดำเนินการหลายขั้นตอน ถูกแทนที่ด้วย Gemini 3.8 Flash |
Gemini 3.7 Flash รองรับหน้าต่างบริบทขนาด 1 ล้านโทเค็น, โทเค็นเอาต์พุตสูงสุด 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
- การเขียนโค้ดและงานแบบ Agentic: คุณภาพสูงขึ้นอย่างเห็นได้ชัดในการทดสอบประสิทธิภาพด้านวิศวกรรมซอฟต์แวร์และ Agentic ในโลกจริง ซึ่งช่วยปรับปรุงการแก้ปัญหาและลดการวนซ้ำของ Agent ที่ล้มเหลว
- การพัฒนาเว็บและความเท่าเทียมกันในการออกแบบที่ดียิ่งขึ้น: สร้างโค้ดเดสก์ท็อปและเว็บแอปพลิเคชันที่มีความเที่ยงตรงสูงขึ้นโดยตรงจากภาพจำลองการออกแบบ พร้อมการปรับปรุงที่สำคัญในการปฏิบัติตามการออกแบบและการตรวจสอบฐานโค้ดที่มีอยู่เทียบกับภาพจำลองเพื่อยืนยันความเท่าเทียมกันในการออกแบบแบบ 1:1
ทำความเข้าใจระดับการให้เหตุผล
Gemini 3.7 Flash ช่วยให้นักพัฒนาแอปควบคุมเวลาในการตอบสนองและความฉลาดได้อย่างยืดหยุ่นโดยการปรับระดับการคิดของโมเดล
- การประมวลผลความคิดต่ำ: ลดเวลาในการตอบสนองสำหรับงานที่สำคัญต่อเวลาในการตอบสนอง เช่น ไปป์ไลน์การตอบสนองต่อเหตุการณ์, แชทแบบเรียลไทม์, การเขียนฉบับร่าง และการวิเคราะห์ข้อมูลอย่างรวดเร็ว
- ปานกลาง (ค่าเริ่มต้น): คุณภาพดีที่สุดสำหรับงานส่วนใหญ่ แนะนำให้ใช้กับโค้ดที่ซับซ้อนและกรณีการใช้งานแบบ Agentic โดยมีความแม่นยำในการผ่านครั้งแรกสูงขึ้น
- การประมวลผลความคิดระดับสูง: เพิ่มความสามารถของโมเดลในการคิดและใช้เครื่องมือให้ได้มากที่สุด เหมาะที่สุดสำหรับการให้เหตุผลที่ซับซ้อน, คณิตศาสตร์ที่ยาก และงานเขียนโค้ดและ Agent ที่ยาก อนุญาตให้คิดและเรียกใช้ฟังก์ชันได้นานขึ้น โดยมีการใช้โทเค็นและค่าใช้จ่ายสูงขึ้น
วิธีกำหนดค่าระดับการคิดใน 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
การรองรับ Agent ของ Antigravity
Gemini 3.7 Flash ได้เปิดตัวการรองรับการขับเคลื่อน Agent ของ Antigravity ใน Gemini Managed Agents และ Google Antigravity SDK
ดูตัวอย่างโค้ดปัจจุบันและการกำหนดค่า Agent เริ่มต้นล่าสุดได้ที่คู่มือ Agent ของ Antigravity และคู่มือ Gemini 3.8 Flash
โมเดลอื่นๆ
ขั้นตอนถัดไป
- อ่านข้อมูลจำเพาะของ API ใน ภาพรวมโมเดล
- สำรวจการประสานงานแบบหลาย Agent ในคู่มือ Interactions API
- ทดสอบและปรับแต่งพรอมต์ใน Google AI Studio