> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Gemma 4 31B Instruct API

> Venice 上的 Google Gemma 4 31B Instruct API：256K 上下文，每 1M tokens 输入 $0.12、输出 $0.36。私密运行，零数据留存。

> [accordion] 纯文本规格说明
>
> ## Google Gemma 4 31B Instruct API
>
> Google Gemma 4 31B Instruct 是由 Google 推出的大语言模型，可通过 Venice API 以 `google-gemma-4-31b-it` 调用。它以私密方式运行，零数据留存。
>
> Gemma 4 31B 是 Google DeepMind 推出的稠密模型，拥有 31B 参数，提供前沿水平的推理性能。它支持文本、图像和视频输入，支持 256K 上下文、函数调用和可配置的思考模式。
>
> ### Google Gemma 4 31B Instruct API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `google-gemma-4-31b-it` | 标准 | Private | 每 1M $0.12 / $0.36 |
>
> ### Google Gemma 4 31B Instruct 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | Google |
> | 发布日期 | 2026年4月3日 |
> | 隐私 | Private |
> | 状态 | 稳定 |
> | 开放权重 | 是 |
> | 上下文窗口 | 256K tokens |
> | 最大输出 | 16K tokens |
> | 推理强度 | none, low, medium, high |
> | 服务精度 | FP4 |
>
> ### 如何使用 Google Gemma 4 31B Instruct API
>
> 使用 `"model": "google-gemma-4-31b-it"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/chat/completions` 发送请求。
>
> ```bash theme={"system"}
> curl https://api.venice.ai/api/v1/chat/completions \
>   -H "Authorization: Bearer $VENICE_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "google-gemma-4-31b-it",
>     "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
>     "reasoning_effort": "low"
>   }'
> ```
>
> ### 相关模型
>
> * [Google Gemma 3 27B Instruct API](https://docs.venice.ai/zh/models/google-gemma-3-27b-instruct.md): 每 1M $0.12 / $0.20
> * [DeepSeek V4 Flash 0423 API](https://docs.venice.ai/zh/models/deepseek-v4-flash-0423.md): 每 1M $0.138 / $0.275
> * [GLM 4.7 Flash Heretic API](https://docs.venice.ai/zh/models/glm-4-7-flash-heretic.md): 每 1M $0.07 / $0.40
> * [DeepSeek V4 Flash 0731 API](https://docs.venice.ai/zh/models/deepseek-v4-flash-0731.md): 每 1M $0.13 / $0.26
> * [GPT-6 Luna API](https://docs.venice.ai/zh/models/gpt-6-luna.md): 每 1M $0.10 / $0.50


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.