Google
Gemma 4 31Bโอเพ่นซอร์ส
Google’s strongest open-weights dense model in the Gemma 4 family.
ดัชนีปัญญา
35.0 #478
AAQI 29.0
ความเร็วขาออก
35 t/s
TTFT 1.10 s · ITL 28.6 ms/tok
ราคาเฉลี่ย (3:1)
$0.131 /1M
ขาเข้า $0.075/M · ขาออก $0.3/M
บริบท
262.1K
≈ 655 หน้า A4 · ขาออกสูงสุด 8,192
Quality Domain Radar
6-Axis Frontier Evaluation vs Category Average & Flagship
Gemma 4 31B
Claude Mythos Preview (#1)
Average (68)
แกนเรดาร์ประมาณจากคะแนนหมวดหมู่เมื่อไม่มีการวัดเบนช์มาร์กโดยตรง — ดู ระเบียบวิธี
จุดแข็งและข้อแลกเปลี่ยน
จุดที่ชนะ
- Open weights — self-host, fine-tune and audit with no vendor lock-in
- Very low blended price — $0.131/1M mixed tokens
- Cheap prompt-cache reads at $0.0075/1M
สิ่งที่ต้องระวัง
- Slow generation (35 tok/s) for interactive workloads
กรณีใช้งานเด็ด
Whole-repo analysis
Single-pass ingestion of large codebases, contracts or research corpora.
Deep research
Synthesis across broad knowledge domains with citation-grade recall.
Real-time agents
Low-latency loops for voice, gaming and interactive copilots.
ควิกสตาร์ตสำหรับนักพัฒนาและ API
ตั้งค่า
GEMINI_API_KEY ก่อน — รับคีย์ APIcurl "https://generativelanguage.googleapis.com/v1beta/models/gemma-4-31b:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "content-type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Refactor this function for O(n) time and explain the change."}]}]
}'from google import genai
client = genai.Client() # reads GEMINI_API_KEY
resp = client.models.generate_content(
model="gemma-4-31b",
contents="Refactor this function for O(n) time and explain the change.",
)
print(resp.text)const res = await fetch(
`https://generativelanguage.googleapis.com/v1beta/models/gemma-4-31b:generateContent`,
{
method: "POST",
headers: {
"x-goog-api-key": process.env.GEMINI_API_KEY,
"content-type": "application/json",
},
body: JSON.stringify({ contents: [{ parts: [{ text: "Refactor this function for O(n) time and explain the change." }] }] }),
}
);
console.log((await res.json()).candidates[0].content.parts[0].text);ทรัพยากรและลิงก์อย่างเป็นทางการ
การใช้งาน API
เปรียบเทียบโฮสต์และเวลาแฝง
อัตราความเร็ว TTFT และราคาแคชบน Groq, Cerebras, Together, DeepInfra, Fireworks, Bedrock และ Azure
GroqCerebrasTogether AIDeepInfraFireworks AIAWS BedrockAzure AI
คะแนนแยกตามแหล่งข้อมูล
คะแนนแยกตามหมวดหมู่
ผลการทดสอบ Benchmark
สเปกสดและสถาปัตยกรรม
ภายใต้ฝากระโปรง
Dense · 31B
- Prompt caching supported — cached input reads at $0.0075/1M tokens.
วันที่เปิดตัว
11 มี.ค. 2569
สถาปัตยกรรม
Dense · 31B
พารามิเตอร์
31B
สัญญาอนุญาต
Open Weights
ขนาดคอนเทกซ์
262,100 tokens
เอาต์พุตสูงสุด
8,192 tokens
โมดัลิตี
text + image
ราคาแคช
อ่าน $0.0075 · เขียน $0.0938 /1M
การให้เหตุผล
—
ราคาขาเข้า
$0.075/M
ราคาขาออก
$0.3/M
ความเร็วขาออก
35 t/s
เวลาถึงโทเค็นแรก
1.10 s
อัปเดตข้อมูล
5 ส.ค. 2569
ค่าใช้จ่ายรายเดือนโดยประมาณ
ค่าใช้จ่ายรายเดือนโดยประมาณ
$0.00
กำลังคำนวณการประหยัดเทียบ GPT-4o…
อ้างอิงและฝัง
ป้าย GitHub Markdown
Loading badge markdown...BibTeX
@misc{llmpodium2026gemma431b,
title = {Benchmark Analysis and Intelligence Evaluation of Gemma 4 31B},
author = {LLMPodium Research},
year = {2026},
url = {https://llmpodium.com/models/gemma-4-31b}
}ฝังป้ายคะแนน
เพิ่มป้าย Podium Score แบบสดลงใน README ของ GitHub หรือ Hugging Face — ลิงก์กลับไปยังอันดับสด
ตัวอย่าง
Markdown
Loading badge snippet...HTML
Loading badge snippet...โมเดลอื่นจาก Google
โมเดลทางเลือก
ทางเลือกที่ใกล้เคียงที่สุดสำหรับ Gemma 4 31B โดยอิงตามความสามารถ ราคา และคะแนนเบนช์มาร์ก