# grok-4.5

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

- 供应商: xAI
- 计费方式: 按量计费
- 标签: 学术，金融，医疗，法律，营销，搜索优化，编程，角色扮演，科学，技术，翻译，百科
- 模型 ID: `grok-4.5`
- 网页版: https://llmoxy.com/models/grok-4.5

## 价格

价格以人民币（￥）计；按量计费的价格按每 1M tokens 计。

| API Key 分组 | 输入 | 输出 | 缓存读取 | 较官方 API 价 |
| --- | --- | --- | --- | --- |
| Grok | ￥0.50 | ￥1.50 | ￥0.125 | 低 96% |

官方 API 价（美元）：输入 $2.00 / 1M tokens，输出 $6.00 / 1M tokens，缓存读取 $0.50 / 1M tokens。「较官方 API 价」按 1 美元 = 7 元换算后比较。

## 快速调用

运行前先把环境变量 LLMOXY_KEY 设成你的 API 密钥。

### cURL

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

### 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.5",
    messages=[{"role": "user", "content": "你好"}],
)
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.5",
  messages: [{ role: "user", content: "你好" }],
});
console.log(resp.choices[0].message.content);
```

## 接口

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

## 常见问题

### grok-4.5 在 LLMoxy 上怎么收费？

按量计费，令牌分组「Grok」的价格：输入 ￥0.50 / 1M tokens，输出 ￥1.50 / 1M tokens。比官方 API 价格低 96%。

### 怎么调用 grok-4.5？

在 LLMoxy 控制台创建 API 密钥，请求时把 model 设为 grok-4.5，发到以下接口：Chat Completions POST https://llmoxy.com/v1/chat/completions。也可以直接用 OpenAI SDK，把 base URL 设为 https://llmoxy.com/v1。

### grok-4.5 可以用哪些令牌分组？

令牌分组决定调用价格：在控制台创建 API 密钥时选择分组，用这个密钥的调用都按该分组的价格计费。grok-4.5 可用的分组：Grok。

### 需要海外信用卡吗？

不需要。先在控制台充值余额，调用时按实际用量从余额扣费。支持的付款方式：支付宝、微信支付、Visa/MasterCard、Apple Pay，以及 USDT、BTC、SOL、TRX 等加密货币。多币种支持。

## xAI 的其他模型

- [grok-4.6](https://llmoxy.com/models/grok-4.6.md): 输入 ￥0.50 / 1M
- [grok-4.7](https://llmoxy.com/models/grok-4.7.md): 输入 ￥0.50 / 1M

## 相关链接

- [全部模型价格](https://llmoxy.com/pricing.md)
- [文档](https://llmoxy.com/docs/api-reference/api-overview.md)
- [llms.txt](https://llmoxy.com/llms.txt)

本文是 https://llmoxy.com/models/grok-4.5 的 markdown 版本。
