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

> Grok 4.20 API on Venice: 2M context, $1.42 input and $2.83 output per 1M tokens. Private, with zero data retention. Pricing, specs and code examples.

> [accordion] Plain-text specification
>
> ## Grok 4.20 API
>
> Grok 4.20 is a large language model by xAI, available on the Venice API as `grok-4-20`. It runs privately, with zero data retention.
>
> Grok 4.20 is xAI's multimodal reasoning model with strong tool use, structured output support, and a 2M-token context window.
>
> ### Grok 4.20 API pricing
>
> | Model ID | Variant | Privacy | Price |
> | - | - | - | - |
> | `grok-4-20` | Standard | Private | $1.42 / $2.83 per 1M |
>
> ### Grok 4.20 specifications
>
> | Spec | Value |
> | - | - |
> | Provider | xAI |
> | Released | Mar 12, 2026 |
> | Privacy | Private |
> | Status | Stable |
> | Context window | 2M tokens |
> | Max output | 128K tokens |
> | Reasoning effort | Not adjustable |
>
> ### How to use the Grok 4.20 API
>
> Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "grok-4-20"` and your API key.
>
> ```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." }]
>   }'
> ```
>
> ### Related models
>
> * [Grok 4.7 API](https://docs.venice.ai/models/grok-4-7.md): $2.27 / $6.80 per 1M
> * [Grok 4.6 API](https://docs.venice.ai/models/grok-4-6.md): $2.27 / $6.80 per 1M
> * [Grok 4.5 API](https://docs.venice.ai/models/grok-4-5.md): $2.27 / $6.80 per 1M
> * [Grok 4.3 API](https://docs.venice.ai/models/grok-4-3.md): $1.42 / $2.83 per 1M
> * [GPT-5.4 Mini API](https://docs.venice.ai/models/gpt-5-4-mini.md): $0.75 / $4.50 per 1M
> * [GLM 5 Turbo API](https://docs.venice.ai/models/glm-5-turbo.md): $1.20 / $4.00 per 1M
> * [Qwen 3.5 397B API](https://docs.venice.ai/models/qwen-3-5-397b.md): $0.75 / $4.50 per 1M
> * [GLM 5 API](https://docs.venice.ai/models/glm-5.md): $1.00 / $3.20 per 1M


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