Google: Gemma 4 12B InstructAPI pricing
Gemma 4 12B Instruct is Google DeepMind's encoder-free multimodal model in the Gemma 4 open family, licensed Apache 2.0. It takes text, image, video and audio input, replies in text, and offers configurable thinking and native function calling for agentic tasks.
- 每100万枚代币的价格
- $0.05 / $0.25input / output
- 缓存的输入
- $0.025per 1M tokens
- 上下文
- 131K tokens32K max output
- 服务提供商
- 2
服务提供商
2 providers ·
131K 上下文 · 32K 最大输出
支持的参数10
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
- 1 more provider through partner hosts · from $0.053 in · $0.26 out
价格走势
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-12b", "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-12b",
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-12b",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 Gemma 4 12B Instruct 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/gemma-4-12b;其余代码保持不变。
About Gemma 4 12B Instruct
- 请求示例
- $0.0007510,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 12B Instruct costs from $0.05 per 1M input tokens and $0.25 per 1M output tokens on OpenCheap, with cached input at $0.025 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00075, and 1,000 such requests about $0.75.
2 providers serve Gemma 4 12B Instruct on OpenCheap. Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.
Gemma 4 12B Instruct is one of 102 Google models on OpenCheap.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the Gemma 4 12B Instruct API cost per 1M tokens?
Gemma 4 12B Instruct costs from $0.05 per 1M input tokens and $0.25 per 1M output tokens on OpenCheap, with cached input at $0.025 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.
What does one Gemma 4 12B Instruct request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.00075, and 1,000 such requests about $0.75. Every answer reports its own cost in usage.cost.
Which providers serve Gemma 4 12B Instruct?
2 providers serve Gemma 4 12B Instruct 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 12B Instruct?
其上下文窗口为131K个令牌(131,072),单次请求中可容纳约98,000个英语单词。
How do I call the Gemma 4 12B Instruct API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gemma-4-12b. One OpenCheap key works for every model; the rest of your code stays the same.
更多来自 Google 的内容
- 杰玛 4 26B A4B 它gemma-4-26b-a4b每100万·26.2千上下文 $0.01 / $0.03
- 杰玛 4 31B 它gemma-4-31b每100万·26.2万上下文 $0.012 / $0.036
- 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
- Gemini 2.5 Flash 预览版 05-20(无需思考)gemini-2.5-flash-preview-05.20:nothink每1M·1M上下文 $0.30 / $2.50
类似型号
- DeepSeek V3.2DeepSeek · 163K context$0.22 / $0.34 per 1M
- GLM 4.6Zhipu · 202K context$0.044 / $0.18 per 1M27 % cheaper
- GLM 5.2Zhipu · 1M context$0.07 / $0.22 per 1M9 % cheaper
- deepseek-ai/DeepSeek-V3.1DeepSeek · 163K context$0.065 / $0.24 per 1M
- Llama 4 MaverickMeta · 100万上下文$0.20 / $0.20 per 1M
- Sarvam 105BSarvam AI · 131K context$0.054 / $0.21 per 1M14 % cheaper
Compare Gemma 4 12B Instruct with any model →Cheapest LLM API