xAI
LLMGrok 4.6 享官方价 1.44 折(-85.6%),同步支持 500K 上下文的 Grok 4.5 与 Grok 4.7。
xAI 全系列模型价格矩阵
查看单价、上下文/分辨率规格及输入输出模态,点击表头可切换升序/降序。
xAI 快速接入
使用同一个 OpenDesign Go API Key 调用 grok-4.6 或上方任意 xAI 模型 ID。
curl https://amr-link.open-design.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "grok-4.6",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Refactor this API handler for streaming responses." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://amr-link.open-design.ai/v1",
api_key=os.environ["COROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="grok-4.6",
max_tokens=1024,
messages=[
{"role": "user", "content": "Refactor this API handler for streaming responses."}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://amr-link.open-design.ai/v1",
apiKey: process.env.COROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "grok-4.6",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(response.choices[0].message.content);import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://amr-link.open-design.ai",
apiKey: process.env.COROUTER_API_KEY,
});
const message = await client.messages.create({
model: "grok-4.6",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(message.content);xAI 常见问题
OpenDesign Go 共收录 3 款 xAI 模型(LLM),均可通过同一个 OpenDesign Go API Key 调用。
xAI 最低起步价为 $0.28886/1M (-85.6% / $2)。符合条件的 xAI 模型在 OpenDesign Go 直接享受最高立省 85.6% 的折扣价。
复杂推理与多文件编码推荐 Grok 4.6(grok-4.6);高并发低成本场景推荐 Grok 4.5(grok-4.5)。
将请求发往 https://amr-link.open-design.ai/v1,在 Header 中携带 Authorization: Bearer $COROUTER_API_KEY,并直接传入上方矩阵中的精确 Model ID(如 grok-4.6),无需添加厂商前缀。
xAI 模型命中 Prompt 缓存读取最高可省 75%。其中 1 款模型在总输入超过阈值后切换为长上下文档费率。
可以。全部 17 家厂商共 88 款模型共用一个 API Key 与统一余额,并严格执行零数据留存(不存储提示词、输出或媒体文件)。