xAI
LLMGrok 4.6 を公式定価から 85.6% オフで提供。500K コンテキスト対応の Grok 4.5・Grok 4.7 も収録。
xAI モデル料金マトリクス
料金、コンテキスト/解像度仕様、入出力モダリティを一覧比較できます。列見出しクリックで並び替え可能です。
xAI クイックスタート
1 つの OpenDesign Go API キーで 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)を 1 つの API キーで呼び出せます。
xAI の最安単価は $0.28886/1M (-85.6% / $2) からです。対象モデルは OpenDesign Go 上で最大 85.6% オフの割引単価が適用されます。
高度な推論や複雑なコーディングには Grok 4.6(grok-4.6)、高スループット・低コスト用途には Grok 4.5(grok-4.5)が適しています。
リクエスト先を https://amr-link.open-design.ai/v1 に設定し、Authorization: Bearer $COROUTER_API_KEY とマトリクス記載のモデル ID(例: grok-4.6)をプレフィックスなしで指定します。
xAI モデルはキャッシュ読込で最大 -75% の削減に対応しています。1 モデルは入力トークンしきい値超過時に長文ティア単価が適用されます。
はい。全 17 プロバイダー・88 モデルを 1 つの API キーと共通残高で併用でき、ゼロデータ保持によりプロンプトや生成物は保存されません。