xai/grok-4.7
xAI의 플래그십 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 |
API 호출 시 어떤 ID든 사용할 수 있습니다.
xai/grok-4.7You can use these names directly in the request model field.
ONEHOP_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.7",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)