xAI

Grok 4.7 API

US xAI | 출시일 2026-10
Playground에서 사용해보기 → API 키 받기

Grok 4.7 is the xAI flagship for code writing, agentic tasks and knowledge work, iterating on Grok 4.6 with standout long-horizon software engineering performance. Available through MeshTok’s unified API with a 500K context window.

코드추론도구플래그십

가격 (공식 목록, 100만 토큰 기준)

입력
$1.60/M
출력
$4.80/M

사양

컨텍스트 창500K 토큰 입력 모달리티텍스트 스트리밍예 APIOpenAI 호환

Grok 4.7 사용 방법

OpenAI를 바로 대체할 수 있습니다. base_url과 model만 변경하세요.

# Python - pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://meshtok.com/v1",
    api_key="sk-your-MeshTok-key",
)

resp = client.chat.completions.create(
    model="x-ai/grok-4.7",
    messages=[{"role":"user","content":"Hello!"}],
)
print(resp.choices[0].message.content)
# cURL
curl https://meshtok.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-MeshTok-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-4.7","messages":[{"role":"user","content":"Hello!"}]}'

관련 모델

고려해볼 만한 다른 모델입니다.