
具有128K上下文,140+语言的开源视觉语言模型,改进了 math/reasoning,结构化输出,功能调用.
具有128K上下文,140+语言的开源视觉语言模型,改进了 math/reasoning,结构化输出,功能调用.
也称为 Google Gemma 3 27B, Gemma-3-27B
gemma-3-27b/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/gemma-3-27b:generateContentgemma-3-27b-itgoogle/gemma-3-27b来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。
Gemma 3 27B 提供 OpenAI 兼容的 Chat Completions API。用你的 EmpirioLabs API 密钥把任意 OpenAI SDK 指向 https://api.empiriolabs.ai/v1,并使用模型 ID gemma-3-27b。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-3-27b",
"messages": [
{"role": "user", "content": "Write a haiku about the ocean."}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.empiriolabs.ai/v1",
api_key="YOUR_EMPIRIOLABS_API_KEY",
)
response = client.chat.completions.create(
model="gemma-3-27b",
messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)EmpirioLabs 上 Gemma 3 27B API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| temperature | number | 0.7 | 0 到 2 | 采样温度 |
| top_p | number | 1 | 0 到 1 | 核抽样 |
| max_tokens | number | 4096 | 1 到 65536 | 最大输出令牌 |
| frequency_penalty | number | 0 | -2 到 2 | 重复使用代币的惩罚。>0减少重复,<0鼓励重复。 |
| presence_penalty | number | 0 | -2 到 2 | 新标记与已见标记的惩罚。>0鼓励新话题,<0鼓励保持主题。 |
| stop | string | - | - | 逗号分隔的塞音序列 |
| web_search_linkup | boolean | false | - | 可选的网页搜索由Linkup提供。启用后,最近的网页源会通过最新的用户消息作为查询检索,并作为额外上下文提供给模型。每次调用时,在模型正常的令牌成本基础上额外增加$0.013。默认为禁用。 |
| disable_formatting | boolean | false | - | 启用后,网关不会在使用Linkup网页搜索的助理响应中附加“来源”脚部。当模型输出被传输到另一个不需要装饰的系统时,这很有用。 |
在 EmpirioLabs,Gemma 3 27B 按量计费:每个消息 $0.0040 固定; Web Search (Linkup) $0.013 per call when invoked。本页的实时价格表始终与 API 的实际计费一致。
Gemma 3 27B 支持 128K token 的上下文窗口,每次响应最多 8,192 个输出 token。
兼容。Gemma 3 27B 提供 OpenAI 兼容的 Chat Completions API,现有 OpenAI SDK 只需把 base_url 指向 https://api.empiriolabs.ai/v1 并把模型 ID 设为 gemma-3-27b 即可使用。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Gemma 3 27B,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。