Google: Gemma 4 31B ItAPI pricing
Google's Gemma 4 31B is a dense open-weight model of 30.7B parameters, the largest in the Gemma 4 family. Licensed under Apache 2.0, it reads text and images, writes text, supports tool use for agents, and can think before answering.
- 每100万枚代币的价格
- $0.031 / $0.11input / output−72%
- 缓存的输入
- $0.013per 1M tokens
- 上下文
- 262K tokens235K max output
- 服务提供商
- 21
- 最快
- 605 tok/sInfercom SCS
服务提供商
21 providers ·
256K context · 128K max output
支持的参数8
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
response_format结构化输出- 工具
工具工具选择- 未确认
停止
262K context · 131K max output
支持的参数9
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
response_format结构化输出- 工具
工具工具选择- 未确认
停止
262K context
支持的参数13
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择
262K context · 235K max output
支持的参数14
- 抽样
温度top_ptop_k种子- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数14
- 抽样
温度top_ptop_k- 处罚
重复惩罚频率惩罚存在惩罚- 输出
response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
262K context · 131K max output
支持的参数13
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
256K context · 16K max output
支持的参数10
- 抽样
温度top_ptop_k- 处罚
存在惩罚- 输出
停止response_format- 工具
工具工具选择- 推理
推理include_reasoning
13.1K 上下文 · 6.5K 最大输出
支持的参数14
- 抽样
温度top_ptop_k种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数14
- 抽样
温度top_p种子- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
- Route 1 · fp4262K context · 16K max outputCache $0.079 · 0.43 s · 56 tok/s · 100 %0.43 s · 56 tok/sInput $0.14Cache read $0.079Output $0.54Latency 0.43 sSpeed 56 tok/sUptime 100 %$0.14 in$0.54 out
支持的参数14
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
- Route 2 · fp8262K context · 235K max outputCache $0.17* · 1.47 s · 22 tok/s · 99.9 %1.47 s · 22 tok/sInput $0.17Cache read $0.17 (no cache discount: the input price)Output $0.34Latency 1.47 sSpeed 22 tok/sUptime 99.9 %$0.17 in$0.34 out
支持的参数12
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 推理
推理include_reasoning- 未确认
工具
- Route 3 · fp8262K context · 16K max outputCache $0.21* · 0.50 s · 22 tok/s · 99.7 %0.50 s · 22 tok/sInput $0.21Cache read $0.21 (no cache discount: the input price)Output $0.42Latency 0.50 sSpeed 22 tok/sUptime 99.7 %$0.21 in$0.42 out
支持的参数14
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
- Route 4 · fp8262K context · 235K max outputCache $0.32* · 0.52 s · 25 tok/s · 99.4 %0.52 s · 25 tok/sInput $0.32Cache read $0.32 (no cache discount: the input price)Output $0.63Latency 0.52 sSpeed 25 tok/sUptime 99.4 %$0.32 in$0.63 out
支持的参数12
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 推理
推理include_reasoning- 未确认
工具
259K context · 233K max output
支持的参数12
- 抽样
温度top_ptop_klogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 8.1K max output
支持的参数15
- 抽样
温度top_ptop_kmin_p种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数15
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
13.1K 上下文 · 8.1K 最大输出
支持的参数12
- 抽样
温度top_ptop_kmin_p种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format- 工具
工具工具选择
262K context · 131K max output
支持的参数12
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
262K context · 16K max output
支持的参数15
- 抽样
温度top_ptop_kmin_p种子- 处罚
存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
13.1K 上下文 · 13.1K 最大输出
支持的参数17
- 抽样
温度top_ptop_kmin_p种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
13.1万上下文 · 11.7万最大输出量
支持的参数12
- 抽样
温度top_ptop_k- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
65K context · 65K max output
支持的参数10
- 抽样
温度top_p种子- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
13.1万上下文 · 11.7万最大输出量
支持的参数8
- 抽样
温度top_ptop_k- 输出
停止- 工具
工具工具选择- 推理
推理include_reasoning
262K context · 235K max output
支持的参数9
- 抽样
温度top_ptop_k- 输出
response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning- 未确认
停止
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/gemma-4-31b", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gemma-4-31b",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gemma-4-31b",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 杰玛 4 31B 它 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/gemma-4-31b;其余代码保持不变。
About Gemma 4 31B It
- 标价
- $0.20 / $0.40in / out per 1M
- 保存与列表
- 74 %on a 1 : 3 input-to-output mix
- 请求示例
- $0.0004210,000 in + 1,000 out
- 实验室
- 102 个谷歌模型
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
Gemma 4 31B It costs from $0.031 per 1M input tokens and $0.11 per 1M output tokens on OpenCheap, with cached input at $0.013 per 1M tokens. Its list price is $0.20 per 1M input tokens and $0.40 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 74 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00042, and 1,000 such requests about $0.42. It can also be called free as gemma-4-31b:free (10 requests a minute and 200 a day per key).
21 providers serve Gemma 4 31B It on OpenCheap. Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.
Gemma 4 31B It is one of 102 Google models on OpenCheap.
The public list price is $0.20 per 1M input tokens and $0.40 per 1M output tokens. OpenCheap is from $0.031 and $0.11, as of 2026-12-04 09:18 UTC.
Prices as of 2026-12-04 09:18 UTC.
关于定价的问题
How much does the Gemma 4 31B It API cost per 1M tokens?
Gemma 4 31B It costs from $0.031 per 1M input tokens and $0.11 per 1M output tokens on OpenCheap, with cached input at $0.013 per 1M tokens. Prices as of 2026-12-04 09:18 UTC.
What does one Gemma 4 31B It request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.00042, and 1,000 such requests about $0.42. Every answer reports its own cost in usage.cost.
Is Gemma 4 31B It cheaper on OpenCheap than its list price?
Its list price is $0.20 per 1M input tokens and $0.40 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 74 % less here.
Is there a free version of Gemma 4 31B It?
Yes. It can be called free as gemma-4-31b:free (10 requests a minute and 200 a day per key).
Which providers serve Gemma 4 31B It?
21 providers serve Gemma 4 31B It on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of Gemma 4 31B It?
Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.
How do I call the Gemma 4 31B It API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gemma-4-31b. One OpenCheap key works for every model; the rest of your code stays the same.
更多来自 Google 的内容
- Gemma 4 31B It (free)gemma-4-31b:freeFree · 262K context
- Gemma 4 31B Thinkinggemma-4-31b:thinking$0.10 / $0.34 per 1M · 262K context
- 杰玛 4 26B A4B 它gemma-4-26b-a4b每100万·26.2千上下文 $0.01 / $0.03
- google/gemma-3-27b-itgemma-3-27b每100万·13.1万上下文 $0.02 / $0.05
- Gemini 3.5 Flashgemini-3.5-flash$0.042 / $0.17 per 1M · 1M context
- DiffusionGemmadiffusiongemma每100万·26.2万上下文 $0.05 / $0.15
- Nano Banana(Gemini 2.5 闪存镜像)gemini-2.5-flash-image每 1M · 32K 上下文 $0.32 / $2.63
- Gemini 2.5 Flash Litegemini-2.5-flash-lite每1M·1M上下文 $0.10 / $0.40
类似型号
- GLM 4.7Zhipu · 202K context$0.032 / $0.14 per 1M
- gpt-oss-120bOpenAI · 131K context$0.019 / $0.074 per 1M33 % cheaper
- GLM 4.6Zhipu · 202K context$0.044 / $0.18 per 1M
- Xiaomi Mimo V2.6 Pro小米 · 1M 上下文$0.054 / $0.11 per 1M
- Qwen3.6 27BQwen · 26.2万语境$0.0053 / $0.053 per 1M54 % cheaper
- Ternary Bonsai2 9BPrismML · 262K context$0.08 / $0.13 per 1M