xai/grok-4.6
Grok 4.6, am 12. August 2026 von xAI veröffentlicht und inzwischen durch Grok 4.7 abgelöst. Stark in Reasoning, Agent-Coding und Tool-Aufrufen, mit Kontext von 500K Token und Anbindung über das OpenAI-kompatible Protokoll.
Cache-Lesezugriff $0.075/M · Cache-Schreibzugriff —/M
| Stufe | Eingabe | Cache-Lesezugriff | Cache-Schreibzugriff | Ausgabe |
|---|---|---|---|---|
| Standard ≤200K | $0.3 | $0.075 | — | $0.9 |
| Standard >200K | $0.6 | $0.15 | — | $1.8 |
Zum API-Aufruf kann jede der IDs verwendet werden.
xai/grok-4.6Ersetzen Sie den Platzhalter ONEHOP_KEY durch Ihren API key. Erstellen →
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)