Google: Gemma 4 31B It (free)API 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.
- Price
- Free10 requests a minute and 200 a day per key
- 上下文
- 262K tokens
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:free", "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:free",
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:free",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 Gemma 4 31B It (free) 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/gemma-4-31b:free;其余代码保持不变。
About Gemma 4 31B It (free)
- 标价
- $0.20 / $0.40in / out per 1M
- 实验室
- 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 (free) is free to call on OpenCheap (10 requests a minute and 200 a day per key). Its list price is $0.20 per 1M input tokens and $0.40 per 1M output tokens.
Its context window is 262K tokens (262,144), room for roughly 200,000 words of English in one request.
Gemma 4 31B It (free) is one of 102 Google models on OpenCheap.
关于定价的问题
How much does the Gemma 4 31B It (free) API cost?
Gemma 4 31B It (free) is free to call on OpenCheap (10 requests a minute and 200 a day per key). Its list price is $0.20 per 1M input tokens and $0.40 per 1M output tokens.
What is the context window of Gemma 4 31B It (free)?
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 (free) API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gemma-4-31b:free. One OpenCheap key works for every model; the rest of your code stays the same.
更多来自 Google 的内容
- 杰玛 4 31B 它gemma-4-31b每100万·26.2万上下文 $0.012 / $0.036
- 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$1.50 / $9.00 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