gemma-4:dune(默认,可省略后缀)主题
语言
文本
Gemma 4 API — 如何接入并付费
一款针对广泛任务进行优化的高性能模型。
输入 ($/1M)
0.1286
输出 ($/1M)
0.4858
缓存:读取 / 写入($/1M)
0.071444 / 0.1286
上下文
262.1K
价格以 USD 计,更新于 2026年10月25日。
运行指标
基于最近 7 天的真实流量聚合。
可用性
数据不足
数据较少
平均延迟
数据不足
至完整响应
TTFT
数据不足
至首个 token
速度
数据不足
流式生成
优势
- OpenAI-compatible access
- Single key for all models
适用场景
- Chat assistants
- Automation
- Text processing
- Product integration
能力
- 上下文
- 262.1K token
- 最大输出
- 16K token
- 输入
- text, images
- Tool calling
- 支持
- JSON mode
- 支持
- 视觉
- 是
- 推理
- 未声明
Multimodal: understands screenshots, documents and charts. Servers in Russia; available weekdays 18:00–07:00 Moscow time and 24 h on weekends.
提供商
该模型公开提供商的对比:价格、可用性、TTFT、速度和缓存。 暂无流量——显示可用探测,否则显示「—」。
提供商
DefaultdefaultServers in Russia
输入 $/1M
0.1286
输出 $/1M
0.4858
上下文
262.1K / 16K
可用性
—
TTFT
—
速度
—
缓存命中
—
Caching
是
| 提供商 | 输入 $/1M | 输出 $/1M | 上下文 | 可用性 | TTFT | 速度 | 缓存命中 | Caching |
|---|---|---|---|---|---|---|---|---|
DefaultdefaultServers in Russia gemma-4:dune(默认,可省略后缀) | 0.1286 | 0.4858 | 262.1K / 16K | — | — | — | — | 是 |
兼容 OpenAI 的 endpoint
POST https://getvibeapi.com/v1/chat/completions鉴权
在 Bearer 请求头中传递 API 密钥。密钥以 sk-pv-.
Authorization: Bearer $GETVIBE_API_KEY第一个请求
所有示例均使用公开模型地址 gemma-4.
curl https://getvibeapi.com/v1/chat/completions \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4",
"messages": [
{
"role": "user",
"content": "用简单的话解释量子计算"
}
],
"stream": false
}'Chat Completions
字段根据服务的实时 OpenAPI schema 生成。
字段
model类型
string
必填
是
描述
Public model ID in vendor/model form (OpenRouter-style), e.g. anthropic/claude-opus-5. The bare claude-opus-5 spelling is accepted as an input alias and bills identically. model:alias pins a channel, e.g. openai/gpt-5.6-sol:yellow. GET /v1/models lists one ID per model by default; ?variants=1 returns the full list.
字段
messages类型
array
必填
是
描述
未提供描述
字段
stream类型
boolean
必填
否
描述
Stream the response as server-sent events (SSE)默认值:false
字段
max_tokens类型
integer
必填
否
描述
Maximum number of tokens in the response
字段
temperature类型
number
必填
否
描述
Sampling randomness, 0–2默认值:1
字段
top_p类型
number
必填
否
描述
未提供描述
字段
reasoning_effort类型
string
必填
否
描述
Reasoning level for Chat Completions. The supported values depend on the model.none · minimal · low · medium · high · xhigh · max
字段
tools类型
array
必填
否
描述
List of tools (function calling)
字段
tool_choice类型
string
必填
否
描述
auto, none, required or a specific tool
字段
response_format类型
object
必填
否
描述
Force JSON output
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
model | string | 是 | Public model ID in vendor/model form (OpenRouter-style), e.g. anthropic/claude-opus-5. The bare claude-opus-5 spelling is accepted as an input alias and bills identically. model:alias pins a channel, e.g. openai/gpt-5.6-sol:yellow. GET /v1/models lists one ID per model by default; ?variants=1 returns the full list. |
messages | array | 是 | 未提供描述 |
stream | boolean | 否 | Stream the response as server-sent events (SSE)默认值:false |
max_tokens | integer | 否 | Maximum number of tokens in the response |
temperature | number | 否 | Sampling randomness, 0–2默认值:1 |
top_p | number | 否 | 未提供描述 |
reasoning_effort | string | 否 | Reasoning level for Chat Completions. The supported values depend on the model.none · minimal · low · medium · high · xhigh · max |
tools | array | 否 | List of tools (function calling) |
tool_choice | string | 否 | auto, none, required or a specific tool |
response_format | object | 否 | Force JSON output |
Gemma 4 API
A high-performance model tuned for a broad range of tasks.
安装
pip install openai快速开始
from openai import OpenAI
client = OpenAI(
api_key="sk-pv-...",
base_url="https://getvibeapi.com/v1",
)
response = client.chat.completions.create(
model="gemma-4",
messages=[{"role": "user", "content": "用简单的话解释量子计算"}],
)
print(response.choices[0].message.content)配置
- base_url
https://getvibeapi.com/v1- model
gemma-4- api_key
- 来自控制台的 GetVibe 密钥
完整文档:getvibeapi.com/docs.
关键事实
实时目录包含 74 个文本模型。
Gemma 4:每 100 万 tokens 输入 0.1286 $,输出 0.4858 $。
关于 Gemma 4 API 的常见问题
Gemma 4 的价格是多少?
Gemma 4 的价格:$0.1286/1M 输入 · $0.4858/1M 输出 tokens。仅为使用的 token 付费,无订阅或包月费。
是否兼容 OpenAI SDK?
是的,API 完全兼容 OpenAI。只需将 base_url 改为 https://getvibeapi.com/v1 并设置密钥——其余代码不变。