> ## 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.

# Grok 4.20 API

> Venice 上的 Grok 4.20 API：2M 上下文，每 1M tokens 输入 $1.42、输出 $2.83。私密运行，零数据留存。包含定价、规格和代码示例。

> [accordion] 纯文本规格说明
>
> ## Grok 4.20 API
>
> Grok 4.20 是由 xAI 推出的大语言模型，可通过 Venice API 以 `grok-4-20` 调用。它以私密方式运行，零数据留存。
>
> Grok 4.20 是 xAI 的多模态推理模型，具备强大的工具使用能力、结构化输出支持和 2M token 上下文窗口。
>
> ### Grok 4.20 API 价格
>
> | 模型 ID | 变体 | 隐私 | 价格 |
> | - | - | - | - |
> | `grok-4-20` | 标准 | Private | 每 1M $1.42 / $2.83 |
>
> ### Grok 4.20 规格
>
> | 规格 | 值 |
> | - | - |
> | 提供商 | xAI |
> | 发布日期 | 2026年3月12日 |
> | 隐私 | Private |
> | 状态 | 稳定 |
> | 上下文窗口 | 2M tokens |
> | 最大输出 | 128K tokens |
> | 推理强度 | 不可调节 |
>
> ### 如何使用 Grok 4.20 API
>
> 使用 `"model": "grok-4-20"` 和您的 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": "grok-4-20",
>     "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }]
>   }'
> ```
>
> ### 相关模型
>
> * [Grok 4.7 API](https://docs.venice.ai/zh/models/grok-4-7.md): 每 1M $2.27 / $6.80
> * [Grok 4.6 API](https://docs.venice.ai/zh/models/grok-4-6.md): 每 1M $2.27 / $6.80
> * [Grok 4.5 API](https://docs.venice.ai/zh/models/grok-4-5.md): 每 1M $2.27 / $6.80
> * [Grok 4.3 API](https://docs.venice.ai/zh/models/grok-4-3.md): 每 1M $1.42 / $2.83
> * [GPT-5.4 Mini API](https://docs.venice.ai/zh/models/gpt-5-4-mini.md): 每 1M $0.75 / $4.50
> * [GLM 5 Turbo API](https://docs.venice.ai/zh/models/glm-5-turbo.md): 每 1M $1.20 / $4.00
> * [Qwen 3.5 397B API](https://docs.venice.ai/zh/models/qwen-3-5-397b.md): 每 1M $0.75 / $4.50
> * [GLM 5 API](https://docs.venice.ai/zh/models/glm-5.md): 每 1M $1.00 / $3.20


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