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 — 获取 API 密钥curl "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 部署
对比托管商与延迟
Groq、Cerebras、Together、DeepInfra、Fireworks、Bedrock 与 Azure 的吞吐量、TTFT 和缓存定价。
GroqCerebrasTogether AIDeepInfraFireworks AIAWS BedrockAzure AI
各榜单得分
分类能力得分
基准测试分项
实时规格与架构
底层解析
Dense · 31B
- Prompt caching supported — cached input reads at $0.0075/1M tokens.
发布日期
2026年3月11日
架构
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
首Token延迟
1.10 s
数据更新
2026年8月5日
每月账单预估
每月预估支出
$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 评分徽章添加到 GitHub 或 Hugging Face README —— 链接回实时排名。
预览
Markdown
Loading badge snippet...HTML
Loading badge snippet...更多 Google 模型
替代模型推荐
基于能力、定价和基准测试得分与 Gemma 4 31B 最接近的替代模型。