# grok-4.6

Grok 4.6 is xAI's smartest model with frontier performance on coding, knowledge work, and STEM. It features a 500,000-token context window with support for text, image, and file inputs, making it well suited for complex reasoning, software engineering, data analysis, and multi-step agentic workflows.

Grok 4.6 是 xAI 目前最强的模型，在编码、知识工作与 STEM 领域达到前沿水平。它提供 50 万 token 上下文窗口，支持文本、图像和文件输入，适合复杂推理、软件工程、数据分析与多步骤智能体任务。

- Provider: xAI
- Billing Mode: Pay as you go
- Label: 学术, 金融, 医疗, 法律, 营销, 搜索优化, 编程, 角色扮演, 科学, 技术, 翻译, 百科
- Model ID: `grok-4.6`
- Web: https://en.llmoxy.com/models/grok-4.6

## Pricing

Prices are in Chinese yuan (CNY, ￥); pay-as-you-go prices are per 1M tokens.

| Token Group | In | Out | Cache read | vs. official API price |
| --- | --- | --- | --- | --- |
| Grok | ￥0.50 | ￥1.50 | ￥0.125 | 96% lower |

Official API price (USD): In $2.00 / 1M tokens, Out $6.00 / 1M tokens, Cache read $0.50 / 1M tokens. “vs. official API price” converts at 1 USD = 7 CNY before comparing.

## Quick start

Set the LLMOXY_KEY environment variable to your API key before running.

### cURL

```bash
curl https://llmoxy.com/v1/chat/completions \
  -H "Authorization: Bearer $LLMOXY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.6",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

### Python

```python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://llmoxy.com/v1",
    api_key=os.environ["LLMOXY_KEY"],
)

resp = client.chat.completions.create(
    model="grok-4.6",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
```

### Node.js

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://llmoxy.com/v1",
  apiKey: process.env.LLMOXY_KEY,
});

const resp = await client.chat.completions.create({
  model: "grok-4.6",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);
```

## Endpoints

- Chat Completions: `POST https://llmoxy.com/v1/chat/completions`

## FAQ

### How much does grok-4.6 cost on LLMoxy?

Pay as you go. Price in the “Grok” token group: In ￥0.50 / 1M tokens, Out ￥1.50 / 1M tokens. That is 96% below the official API price.

### How do I call grok-4.6?

Create an API key in the LLMoxy console, set model to grok-4.6, and send the request to: Chat Completions POST https://llmoxy.com/v1/chat/completions. You can also use the OpenAI SDK directly with the base URL set to https://llmoxy.com/v1.

### Which token groups can I use with grok-4.6?

The token group sets the price you pay: you pick a group when you create an API key in the console, and every call made with that key is billed at that group’s price. Groups available for grok-4.6: Grok.

### Do I need an international credit card?

No. Top up your balance in the console first; each call is then deducted from the balance based on actual usage. Payment methods: Alipay, WeChat Pay, Visa / MasterCard, Apple Pay, and crypto such as USDT, BTC, SOL, and TRX. Multi-currency support.

## More from xAI

- [grok-4.5](https://en.llmoxy.com/models/grok-4.5.md): In ￥0.50 / 1M
- [grok-4.7](https://en.llmoxy.com/models/grok-4.7.md): In ￥0.50 / 1M

## Links

- [All model prices](https://en.llmoxy.com/pricing.md)
- [Documentation](https://en.llmoxy.com/docs/api-reference/api-overview.md)
- [llms.txt](https://en.llmoxy.com/llms.txt)

This is the markdown version of https://en.llmoxy.com/models/grok-4.6.
