opencheap.si
鸣谢

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.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 %$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.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.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
    未确认
    停止

* 无缓存折扣:缓存代币按输入价格计费。

路由

按价格筛选的请求 (:floor) 或按速度 (provider.sort, :nitro),或为每秒代币数量设定下限. 路由的工作原理

支持的参数

根据该模型支持的参数,从其已发布的列表以及我们针对参数是否生效所进行的测试结果中,选择一个提供商。测试结果仅为某个时刻的快照,并非保证; provider.require_parameters 仅向支持其设置的所有参数的服务提供商发送请求。 必填参数

价格走势

未选择服务提供商
正在加载……

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" }] }'

致电 杰玛 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
端点
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 的内容

全部 102 个 Google 模型 →

类似型号

Compare Gemma 4 31B It with any model →Cheapest LLM API