# Grok 4.6

> SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM. Builds on Grok 4.5 for long-running agents and visual work.

**ID**: `x-ai/grok-4.6`  
**Creator**: xAI  
**Category**: text  
**Context**: 500K tokens  
**Pricing**: $2.00 / $6.00 per 1M · billed by your provider (BYOK)  
**Released**: 2026-08-12  
**Web page**: https://anyrouter.dev/model/x-ai/grok-4.6

**Input modalities**: text, image  
**Output modalities**: text  

**Tokenizer**: Grok

**Capabilities**: chat, streaming, function-calling, coding, vision

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "x-ai/grok-4.6",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| xai-byok | $2.00/M (list) | $6.00/M (list) |
| openrouter-byok | $2.00/M (list) | $6.00/M (list) |
| commandcode-byok | $2.00/M (list) | $6.00/M (list) |
| router-byok | $2.00/M (list) | $6.00/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Source

- Upstream docs: https://docs.x.ai/developers/models/grok-4.6
