xai/grok-4.6
xAI が 2026 年 8 月 12 日にリリースした Grok 4.6 で、現在は Grok 4.7 が後継です。推論、Agent コーディング、ツール呼び出しに優れ、500K token のコンテキストと OpenAI 互換プロトコルに対応します。
キャッシュ読み取り $0.075/M · キャッシュ書き込み —/M
| ティア | 入力 | キャッシュ読み取り | キャッシュ書き込み | 出力 |
|---|---|---|---|---|
| Standard ≤200K | $0.3 | $0.075 | — | $0.9 |
| Standard >200K | $0.6 | $0.15 | — | $1.8 |
どちらの ID を使っても API でこのモデルを呼び出せます。
xai/grok-4.6ONEHOP_KEY プレースホルダーをご自身の API Key に置き換えてください。 作成する →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="xai/grok-4.6",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)