xai/grok-4.7
xAI'ın amiral gemisi Grok 4.7 modelidir. Akıl yürütme, Agent kodlama ve araç çağırmada güçlüdür; görsel girişi kabul eder, 500K token bağlamı ve OpenAI uyumlu protokol üzerinden bağlantıyı destekler.
Cache okuma $0.075/M · Cache yazma —/M
| Kademe | Girdi | Cache okuma | Cache yazma | Çıktı |
|---|---|---|---|---|
| Standard ≤200K | $0.3 | $0.075 | — | $0.9 |
| Standard >200K | $0.6 | $0.15 | — | $1.8 |
API çağrısında her iki ID de kullanılabilir.
xai/grok-4.7You can use these names directly in the request model field.
ONEHOP_KEY yer tutucusunu API key'inizle değiştirin. Oluşturun →
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.7",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)